|
741 | 741 | " ) # we only add noise to the segmentation mask\n",
|
742 | 742 | " combined = torch.cat(\n",
|
743 | 743 | " (images, noisy_seg), dim=1\n",
|
744 |
| - " # we concatenate the brain MR image with the noisy segmenatation mask, to condition the generation process\n", |
| 744 | + " # we concatenate the brain MR image with the noisy segmenatation mask\n", |
| 745 | + " # to condition the generation process\n", |
745 | 746 | " )\n",
|
746 | 747 | " prediction = model(x=combined, timesteps=timesteps)\n",
|
747 | 748 | " # Get model prediction\n",
|
|
1244 | 1245 | " chain = torch.cat((chain, current_img.cpu()), dim=-1)\n",
|
1245 | 1246 | " combined = torch.cat(\n",
|
1246 | 1247 | " (input_img, current_img), dim=1\n",
|
1247 |
| - " # in every step during the denoising process, the brain MR image is concatenated to add anatomical information\n", |
| 1248 | + " # in every step during the denoising process\n", |
| 1249 | + " # the brain MR image is concatenated to add anatomical information\n", |
1248 | 1250 | " )\n",
|
1249 | 1251 | "\n",
|
1250 | 1252 | " plt.style.use(\"default\")\n",
|
|
0 commit comments