Skip to content

Commit

Permalink
update configs and add blender parameter to snakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
philippa1812 committed Feb 25, 2023
1 parent 3f82847 commit ce3f923
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 11 deletions.
3 changes: 2 additions & 1 deletion VesselExpress/configs/bladder_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
"segmentation": "segmentation3D",
"3D": 1,
"render": 0,
"marching_cubes": 0,
"small_RAM_mode": 0,
"segmentation3D": {
"small_RAM_mode": 0,
"smoothing": 1,
"core_threshold": 3.0,
"core_vessel_1": 1,
Expand Down
3 changes: 2 additions & 1 deletion VesselExpress/configs/bone_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
"segmentation": "segmentation3D",
"3D": 1,
"render": 0,
"marching_cubes": 0,
"small_RAM_mode": 0,
"segmentation3D": {
"small_RAM_mode": 0,
"smoothing": 1,
"core_threshold": 3.0,
"core_vessel_1": 1,
Expand Down
3 changes: 2 additions & 1 deletion VesselExpress/configs/ear_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
"segmentation": "segmentation3D",
"3D": 1,
"render": 0,
"marching_cubes": 0,
"small_RAM_mode": 0,
"segmentation3D": {
"small_RAM_mode": 0,
"smoothing": 1,
"core_threshold": 2,
"core_vessel_1": 1,
Expand Down
3 changes: 2 additions & 1 deletion VesselExpress/configs/heart_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
"segmentation": "segmentation3D",
"3D": 1,
"render": 0,
"marching_cubes": 0,
"small_RAM_mode": 0,
"segmentation3D": {
"small_RAM_mode": 0,
"smoothing": 1,
"core_threshold": 3.0,
"core_vessel_1": 1,
Expand Down
3 changes: 2 additions & 1 deletion VesselExpress/configs/liver_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
"segmentation": "segmentation3D",
"3D": 1,
"render": 0,
"marching_cubes": 0,
"small_RAM_mode": 0,
"segmentation3D": {
"small_RAM_mode": 0,
"smoothing": 1,
"core_threshold": 3.0,
"core_vessel_1": 1,
Expand Down
3 changes: 2 additions & 1 deletion VesselExpress/configs/muscle_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
"segmentation": "segmentation3D",
"3D": 1,
"render": 0,
"marching_cubes": 0,
"small_RAM_mode": 0,
"segmentation3D": {
"small_RAM_mode": 0,
"smoothing": 1,
"core_threshold": 3.5,
"core_vessel_1": 1,
Expand Down
1 change: 0 additions & 1 deletion VesselExpress/configs/spinal_cord_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"3D": 1,
"render": 0,
"segmentation3D": {
"small_RAM_mode": 0,
"smoothing": 1,
"core_threshold": 3.0,
"core_vessel_1": 1,
Expand Down
3 changes: 2 additions & 1 deletion VesselExpress/configs/tongue_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
"segmentation": "segmentation3D",
"3D": 1,
"render": 0,
"marching_cubes": 0,
"small_RAM_mode": 0,
"segmentation3D": {
"small_RAM_mode": 0,
"smoothing": 1,
"core_threshold": 4.0,
"core_vessel_1": 1,
Expand Down
4 changes: 2 additions & 2 deletions VesselExpress/workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ rule renderBinary:
shell:
BLENDER_PATH + " --background --python " + SCRIPT_PATH + "/render_object.py -- -model_file_path \"{input}\" -out_dir \"{PATH}/{wildcards.img}/\" \
-save_raw {config[rendering][save_raw]} -save_glb {config[rendering][save_glb]} -render_device {config[rendering][render_device]} \
-render_distance {config[rendering][render_distance]} \
-background_transparent {config[rendering][background_transparent]} -render_distance {config[rendering][render_distance]} \
-image_resolution_x {config[rendering][image_resolution_x]} \
-image_resolution_y {config[rendering][image_resolution_y]} \
-image_compression {config[rendering][image_compression]} \
Expand All @@ -206,7 +206,7 @@ rule renderSkeleton:
shell:
BLENDER_PATH + " --background --python " + SCRIPT_PATH + "/render_object.py -- -model_file_path \"{input}\" -out_dir \"{PATH}/{wildcards.img}/\" \
-save_raw {config[rendering][save_raw]} -save_glb {config[rendering][save_glb]} -render_device {config[rendering][render_device]} \
-render_distance {config[rendering][render_distance]} \
-background_transparent {config[rendering][background_transparent]} -render_distance {config[rendering][render_distance]} \
-image_resolution_x {config[rendering][image_resolution_x]} \
-image_resolution_y {config[rendering][image_resolution_y]} \
-image_compression {config[rendering][image_compression]} \
Expand Down
2 changes: 1 addition & 1 deletion VesselExpress/workflow/envs/Linux/Pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Segmentation
name: Pipeline
channels:
- defaults
dependencies:
Expand Down

0 comments on commit ce3f923

Please sign in to comment.