|
67 | 67 | "name": "stdout", |
68 | 68 | "output_type": "stream", |
69 | 69 | "text": [ |
70 | | - "MONAI version: 1.4.1rc1+31.g90de55b1\n", |
| 70 | + "MONAI version: 1.4.1rc1+32.g34f37973\n", |
71 | 71 | "Numpy version: 1.26.4\n", |
72 | 72 | "Pytorch version: 2.5.0+cu124\n", |
73 | 73 | "MONAI flags: HAS_EXT = False, USE_COMPILED = False, USE_META_DICT = False\n", |
74 | | - "MONAI rev id: 90de55b1340ffc8eccf960d111229535bcb2f81d\n", |
| 74 | + "MONAI rev id: 34f379735c5e18e7f809453eb1b3606c225c788b\n", |
75 | 75 | "MONAI __file__: /localhome/<username>/.local/lib/python3.10/site-packages/monai/__init__.py\n", |
76 | 76 | "\n", |
77 | 77 | "Optional dependencies:\n", |
|
141 | 141 | "name": "stderr", |
142 | 142 | "output_type": "stream", |
143 | 143 | "text": [ |
144 | | - "[2025-03-12 22:27:22.838][ INFO](notebook) - MAISI version is maisi3d-ddpm, whether to use body_region is True\n" |
| 144 | + "[2025-03-14 16:29:13.938][ INFO](notebook) - MAISI version is maisi3d-rflow, whether to use body_region is False\n" |
145 | 145 | ] |
146 | 146 | } |
147 | 147 | ], |
148 | 148 | "source": [ |
149 | | - "maisi_version = \"maisi3d-ddpm\"\n", |
| 149 | + "maisi_version = \"maisi3d-rflow\"\n", |
150 | 150 | "if maisi_version == \"maisi3d-ddpm\":\n", |
151 | 151 | " model_def_path = \"./configs/config_maisi3d-ddpm.json\"\n", |
152 | 152 | "elif maisi_version == \"maisi3d-rflow\":\n", |
|
248 | 248 | "name": "stderr", |
249 | 249 | "output_type": "stream", |
250 | 250 | "text": [ |
251 | | - "[2025-03-12 22:27:25.046][ INFO](notebook) - Generated simulated images.\n", |
252 | | - "[2025-03-12 22:27:25.047][ INFO](notebook) - img_emb shape: (64, 64, 32, 4)\n", |
253 | | - "[2025-03-12 22:27:25.048][ INFO](notebook) - label shape: (256, 256, 128)\n" |
| 251 | + "[2025-03-14 16:29:13.952][ INFO](notebook) - Save data list json file to ./temp_work_dir_controlnet_train_demo/sim_datalist.json\n", |
| 252 | + "[2025-03-14 16:29:16.033][ INFO](notebook) - Generated simulated images.\n", |
| 253 | + "[2025-03-14 16:29:16.034][ INFO](notebook) - img_emb shape: (64, 64, 32, 4)\n", |
| 254 | + "[2025-03-14 16:29:16.035][ INFO](notebook) - label shape: (256, 256, 128)\n" |
254 | 255 | ] |
255 | 256 | } |
256 | 257 | ], |
|
266 | 267 | "datalist_file = os.path.join(work_dir, \"sim_datalist.json\")\n", |
267 | 268 | "with open(datalist_file, \"w\") as f:\n", |
268 | 269 | " json.dump(sim_datalist, f, indent=4)\n", |
| 270 | + "logger.info(f\"Save data list json file to {datalist_file}\")\n", |
269 | 271 | "\n", |
270 | 272 | "for d in sim_datalist[\"training\"]:\n", |
271 | 273 | " # The image embedding is downsampled twice by Autoencoder.\n", |
|
322 | 324 | "name": "stderr", |
323 | 325 | "output_type": "stream", |
324 | 326 | "text": [ |
325 | | - "[2025-03-12 22:27:25.062][ INFO](notebook) - files and folders under work_dir: ['config_maisi.json', 'models', 'config_maisi_controlnet_train.json', 'outputs', 'sim_dataroot', 'environment_maisi_controlnet_train.json', 'sim_datalist.json'].\n", |
326 | | - "[2025-03-12 22:27:25.063][ INFO](notebook) - number of GPUs: 1.\n" |
| 327 | + "[2025-03-14 16:29:16.049][ INFO](notebook) - files and folders under work_dir: ['config_maisi.json', 'models', 'config_maisi_controlnet_train.json', 'outputs', 'sim_dataroot', '.ipynb_checkpoints', 'environment_maisi_controlnet_train.json', 'sim_datalist.json'].\n", |
| 328 | + "[2025-03-14 16:29:16.050][ INFO](notebook) - number of GPUs: 1.\n" |
327 | 329 | ] |
328 | 330 | } |
329 | 331 | ], |
|
468 | 470 | "name": "stderr", |
469 | 471 | "output_type": "stream", |
470 | 472 | "text": [ |
471 | | - "[2025-03-12 22:27:25.074][ INFO](notebook) - Training the model...\n" |
| 473 | + "[2025-03-14 16:29:16.061][ INFO](notebook) - Training the model...\n" |
472 | 474 | ] |
473 | 475 | }, |
474 | 476 | { |
475 | 477 | "name": "stdout", |
476 | 478 | "output_type": "stream", |
477 | 479 | "text": [ |
478 | | - "[2025-03-12 22:27:33.707][ INFO](maisi.controlnet.training) - Number of GPUs: 8\n", |
479 | | - "[2025-03-12 22:27:33.708][ INFO](maisi.controlnet.training) - World_size: 1\n", |
480 | | - "[2025-03-12 22:27:35.410][ INFO](maisi.controlnet.training) - trained diffusion model is not loaded.\n", |
481 | | - "[2025-03-12 22:27:35.410][ INFO](maisi.controlnet.training) - set scale_factor -> 1.0.\n", |
482 | | - "2025-03-12 22:27:35,902 - INFO - 'dst' model updated: 158 of 206 variables.\n", |
483 | | - "[2025-03-12 22:27:35.907][ INFO](maisi.controlnet.training) - train controlnet model from scratch.\n", |
484 | | - "[2025-03-12 22:27:35.930][ INFO](maisi.controlnet.training) - total number of training steps: 4.0.\n", |
485 | | - "[2025-03-12 22:27:38.006][ INFO](maisi.controlnet.training) -\n", |
486 | | - "[Epoch 1/2] [Batch 1/2] [LR: 0.00000563] [loss: 0.7976] ETA: 0:00:02.073507\n", |
487 | | - "[2025-03-12 22:27:38.147][ INFO](maisi.controlnet.training) -\n", |
488 | | - "[Epoch 1/2] [Batch 2/2] [LR: 0.00000250] [loss: 0.7985] ETA: 0:00:00\n", |
489 | | - "[2025-03-12 22:27:38.683][ INFO](maisi.controlnet.training) - best loss -> 0.7980280518531799.\n", |
490 | | - "[2025-03-12 22:27:39.955][ INFO](maisi.controlnet.training) -\n", |
491 | | - "[Epoch 2/2] [Batch 1/2] [LR: 0.00000063] [loss: 0.7992] ETA: 0:00:01.807460\n", |
492 | | - "[2025-03-12 22:27:40.086][ INFO](maisi.controlnet.training) -\n", |
493 | | - "[Epoch 2/2] [Batch 2/2] [LR: 0.00000000] [loss: 0.7980] ETA: 0:00:00\n", |
| 480 | + "[2025-03-14 16:29:23.336][ INFO](maisi.controlnet.training) - Number of GPUs: 8\n", |
| 481 | + "[2025-03-14 16:29:23.336][ INFO](maisi.controlnet.training) - World_size: 1\n", |
| 482 | + "[2025-03-14 16:29:24.771][ INFO](maisi.controlnet.training) - trained diffusion model is not loaded.\n", |
| 483 | + "[2025-03-14 16:29:24.771][ INFO](maisi.controlnet.training) - set scale_factor -> 1.0.\n", |
| 484 | + "2025-03-14 16:29:25,271 - INFO - 'dst' model updated: 180 of 231 variables.\n", |
| 485 | + "[2025-03-14 16:29:25.277][ INFO](maisi.controlnet.training) - train controlnet model from scratch.\n", |
| 486 | + "[2025-03-14 16:29:25.300][ INFO](maisi.controlnet.training) - total number of training steps: 4.0.\n", |
| 487 | + "[2025-03-14 16:29:26.826][ INFO](maisi.controlnet.training) -\n", |
| 488 | + "[Epoch 1/2] [Batch 1/2] [LR: 0.00000563] [loss: 0.8278] ETA: 0:00:01.523338\n", |
| 489 | + "[2025-03-14 16:29:26.974][ INFO](maisi.controlnet.training) -\n", |
| 490 | + "[Epoch 1/2] [Batch 2/2] [LR: 0.00000250] [loss: 0.8289] ETA: 0:00:00\n", |
| 491 | + "[2025-03-14 16:29:27.585][ INFO](maisi.controlnet.training) - best loss -> 0.8283329606056213.\n", |
| 492 | + "[2025-03-14 16:29:28.909][ INFO](maisi.controlnet.training) -\n", |
| 493 | + "[Epoch 2/2] [Batch 1/2] [LR: 0.00000063] [loss: 0.8288] ETA: 0:00:01.934548\n", |
| 494 | + "[2025-03-14 16:29:29.052][ INFO](maisi.controlnet.training) -\n", |
| 495 | + "[Epoch 2/2] [Batch 2/2] [LR: 0.00000000] [loss: 0.8277] ETA: 0:00:00\n", |
| 496 | + "[2025-03-14 16:29:29.716][ INFO](maisi.controlnet.training) - best loss -> 0.8282470703125.\n", |
494 | 497 | "\n" |
495 | 498 | ] |
496 | 499 | } |
|
533 | 536 | "name": "stderr", |
534 | 537 | "output_type": "stream", |
535 | 538 | "text": [ |
536 | | - "[2025-03-12 22:27:42.632][ INFO](notebook) - Inference...\n" |
| 539 | + "[2025-03-14 16:29:32.229][ INFO](notebook) - Inference...\n" |
537 | 540 | ] |
538 | 541 | }, |
539 | 542 | { |
540 | 543 | "name": "stdout", |
541 | 544 | "output_type": "stream", |
542 | 545 | "text": [ |
543 | | - "[2025-03-12 22:27:53.399][ INFO](maisi.controlnet.infer) - Number of GPUs: 8\n", |
544 | | - "[2025-03-12 22:27:53.400][ INFO](maisi.controlnet.infer) - World_size: 1\n", |
545 | | - "[2025-03-12 22:27:54.101][ INFO](maisi.controlnet.infer) - trained autoencoder model is not loaded.\n", |
546 | | - "[2025-03-12 22:27:55.286][ INFO](maisi.controlnet.infer) - trained diffusion model is not loaded.\n", |
547 | | - "[2025-03-12 22:27:55.286][ INFO](maisi.controlnet.infer) - set scale_factor -> 1.0.\n", |
548 | | - "2025-03-12 22:27:55,756 - INFO - 'dst' model updated: 158 of 206 variables.\n", |
549 | | - "[2025-03-12 22:27:55.761][ INFO](maisi.controlnet.infer) - trained controlnet is not loaded.\n", |
550 | | - "[2025-03-12 22:27:56.340][ INFO](root) - `controllable_anatomy_size` is not provided.\n", |
551 | | - "[2025-03-12 22:27:56.344][ INFO](root) - ---- Start generating latent features... ----\n", |
552 | | - "[2025-03-12 22:27:58.065][ INFO](root) - ---- Latent features generation time: 1.7215001583099365 seconds ----\n", |
553 | | - "[2025-03-12 22:27:58.066][ INFO](root) - ---- Start decoding latent features into images... ----\n", |
554 | | - "[2025-03-12 22:27:58.838][ INFO](root) - ---- Image decoding time: 0.7712326049804688 seconds ----\n", |
555 | | - "2025-03-12 22:27:59,142 INFO image_writer.py:197 - writing: temp_work_dir_controlnet_train_demo/outputs/sample_20250312_222759_124463_image.nii.gz\n", |
556 | | - "2025-03-12 22:27:59,487 INFO image_writer.py:197 - writing: temp_work_dir_controlnet_train_demo/outputs/sample_20250312_222759_124463_label.nii.gz\n", |
| 546 | + "[2025-03-14 16:29:39.519][ INFO](maisi.controlnet.infer) - Number of GPUs: 8\n", |
| 547 | + "[2025-03-14 16:29:39.519][ INFO](maisi.controlnet.infer) - World_size: 1\n", |
| 548 | + "[2025-03-14 16:29:39.990][ INFO](maisi.controlnet.infer) - trained autoencoder model is not loaded.\n", |
| 549 | + "[2025-03-14 16:29:41.213][ INFO](maisi.controlnet.infer) - trained diffusion model is not loaded.\n", |
| 550 | + "[2025-03-14 16:29:41.213][ INFO](maisi.controlnet.infer) - set scale_factor -> 1.0.\n", |
| 551 | + "2025-03-14 16:29:41,716 - INFO - 'dst' model updated: 180 of 231 variables.\n", |
| 552 | + "[2025-03-14 16:29:41.721][ INFO](maisi.controlnet.infer) - trained controlnet is not loaded.\n", |
| 553 | + "[2025-03-14 16:29:42.102][ INFO](root) - `controllable_anatomy_size` is not provided.\n", |
| 554 | + "[2025-03-14 16:29:42.104][ INFO](root) - ---- Start generating latent features... ----\n", |
| 555 | + "[2025-03-14 16:29:42.670][ INFO](root) - ---- DM/ControlNet Latent features generation time: 0.565190315246582 seconds ----\n", |
| 556 | + "[2025-03-14 16:29:42.672][ INFO](root) - ---- Start decoding latent features into images... ----\n", |
| 557 | + "[2025-03-14 16:29:43.314][ INFO](root) - ---- Image VAE decoding time: 0.6416211128234863 seconds ----\n", |
| 558 | + "2025-03-14 16:29:43,602 INFO image_writer.py:197 - writing: temp_work_dir_controlnet_train_demo/outputs/sample_20250314_162943_586788_image.nii.gz\n", |
| 559 | + "2025-03-14 16:29:43,940 INFO image_writer.py:197 - writing: temp_work_dir_controlnet_train_demo/outputs/sample_20250314_162943_586788_label.nii.gz\n", |
557 | 560 | "\n", |
558 | 561 | "\n", |
559 | 562 | " 0%| | 0/1 [00:00<?, ?it/s]\n", |
560 | | - "100%|██████████| 1/1 [00:01<00:00, 1.62s/it]\n", |
561 | | - "100%|██████████| 1/1 [00:01<00:00, 1.62s/it]\n", |
| 563 | + "100%|██████████| 1/1 [00:00<00:00, 2.02it/s]\n", |
| 564 | + "100%|██████████| 1/1 [00:00<00:00, 2.02it/s]\n", |
562 | 565 | "\n" |
563 | 566 | ] |
564 | 567 | } |
|
0 commit comments