Skip to content

Commit de8f130

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 77881b6 commit de8f130

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

modules/omniverse/omniverse_integration.ipynb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,13 +245,13 @@
245245
" \"spacing_xy\": 1.5,\n",
246246
" \"spacing_z\": 1.5,\n",
247247
" \"autoencoder_def#num_splits\": 16,\n",
248-
" \"mask_generation_autoencoder_def#num_splits\": 16\n",
248+
" \"mask_generation_autoencoder_def#num_splits\": 16,\n",
249249
"}\n",
250250
"workflow = create_workflow(\n",
251251
" config_file=os.path.join(bundle_root, \"configs/inference.json\"),\n",
252252
" workflow_type=\"inference\",\n",
253253
" bundle_root=bundle_root,\n",
254-
" **override\n",
254+
" **override,\n",
255255
")\n",
256256
"\n",
257257
"# uncomment this line to run the inference workflow\n",
@@ -459,12 +459,13 @@
459459
" },\n",
460460
"}\n",
461461
"\n",
462+
"\n",
462463
"def nii_to_mesh(input_nii_path, output_nii_path, output_obj_path):\n",
463464
" \"\"\"\n",
464465
" This function converts each organ into a separate OBJ file and generates a GLTF file\n",
465466
" containing all organs with hierarchical structure.\n",
466467
" It processes the input NIfTI file and groups 140 labels into 17 categories.\n",
467-
" \n",
468+
"\n",
468469
" Args:\n",
469470
" input_nii_path: path to the nii file\n",
470471
" output_nii_path: path to save the obj files\n",
@@ -516,6 +517,7 @@
516517
" )\n",
517518
" print(f\"Saved whole segmentation {all_organ_filename}\")\n",
518519
"\n",
520+
"\n",
519521
"input_nii_path = f\"{bundle_root}/datasets/IntegrationTest-AbdomenCT.nii.gz\"\n",
520522
"output_nii_path = f\"{bundle_root}/datasets/monai/nii\"\n",
521523
"output_obj_path = f\"{bundle_root}/datasets/monai/obj\"\n",

0 commit comments

Comments
 (0)