Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 5, 2024
1 parent 77881b6 commit de8f130
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/omniverse/omniverse_integration.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -245,13 +245,13 @@
" \"spacing_xy\": 1.5,\n",
" \"spacing_z\": 1.5,\n",
" \"autoencoder_def#num_splits\": 16,\n",
" \"mask_generation_autoencoder_def#num_splits\": 16\n",
" \"mask_generation_autoencoder_def#num_splits\": 16,\n",
"}\n",
"workflow = create_workflow(\n",
" config_file=os.path.join(bundle_root, \"configs/inference.json\"),\n",
" workflow_type=\"inference\",\n",
" bundle_root=bundle_root,\n",
" **override\n",
" **override,\n",
")\n",
"\n",
"# uncomment this line to run the inference workflow\n",
Expand Down Expand Up @@ -459,12 +459,13 @@
" },\n",
"}\n",
"\n",
"\n",
"def nii_to_mesh(input_nii_path, output_nii_path, output_obj_path):\n",
" \"\"\"\n",
" This function converts each organ into a separate OBJ file and generates a GLTF file\n",
" containing all organs with hierarchical structure.\n",
" It processes the input NIfTI file and groups 140 labels into 17 categories.\n",
" \n",
"\n",
" Args:\n",
" input_nii_path: path to the nii file\n",
" output_nii_path: path to save the obj files\n",
Expand Down Expand Up @@ -516,6 +517,7 @@
" )\n",
" print(f\"Saved whole segmentation {all_organ_filename}\")\n",
"\n",
"\n",
"input_nii_path = f\"{bundle_root}/datasets/IntegrationTest-AbdomenCT.nii.gz\"\n",
"output_nii_path = f\"{bundle_root}/datasets/monai/nii\"\n",
"output_obj_path = f\"{bundle_root}/datasets/monai/obj\"\n",
Expand Down

0 comments on commit de8f130

Please sign in to comment.