Skip to content

Commit a9c95de

Browse files
committed
fix ci
Signed-off-by: YunLiu <[email protected]>
1 parent df0af78 commit a9c95de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generation/image_to_image_translation/tutorial_segmentation_with_ddpm.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@
582582
" progress_bar = tqdm(scheduler.timesteps)\n",
583583
" chain = torch.zeros(current_img.shape)\n",
584584
" for t in progress_bar: # go through the noising process\n",
585-
" with autocast(enabled=False):\n",
585+
" with autocast(\"cuda\", enabled=False):\n",
586586
" with torch.no_grad():\n",
587587
" model_output = model(combined, timesteps=torch.Tensor((t,)).to(current_img.device))\n",
588588
" current_img, _ = scheduler.step(\n",

0 commit comments

Comments
 (0)