Skip to content

Commit 4faaf15

Browse files
fix flake8
Signed-off-by: Yiheng Wang <[email protected]>
1 parent c7580d2 commit 4faaf15

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

generation/image_to_image_translation/tutorial_segmentation_with_ddpm.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,8 @@
741741
" ) # we only add noise to the segmentation mask\n",
742742
" combined = torch.cat(\n",
743743
" (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",
745746
" )\n",
746747
" prediction = model(x=combined, timesteps=timesteps)\n",
747748
" # Get model prediction\n",
@@ -1244,7 +1245,8 @@
12441245
" chain = torch.cat((chain, current_img.cpu()), dim=-1)\n",
12451246
" combined = torch.cat(\n",
12461247
" (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",
12481250
" )\n",
12491251
"\n",
12501252
" plt.style.use(\"default\")\n",

0 commit comments

Comments
 (0)