Skip to content

Commit 8ed1cd9

Browse files
authored
Update Stable_Diffusion2.ipynb
1 parent b65ae42 commit 8ed1cd9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Stable_Diffusion2.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@
122122
" init_image = init_image.resize((512, 512))\n",
123123
" init_image = preprocess(init_image)\n",
124124
" with autocast(\"cuda\"):\n",
125-
" images = pipeimg([prompt] * num_samples, init_image=init_image, strength=strength, guidance_scale=7.5)[\"sample\"]\n",
125+
" images = pipeimg([prompt] * num_samples, init_image=init_image, strength=strength, guidance_scale=7.5)[0]\n",
126126
" else: \n",
127127
" with autocast(\"cuda\"):\n",
128-
" images = pipe([prompt] * num_samples, guidance_scale=7.5)[\"sample\"]\n",
128+
" images = pipe([prompt] * num_samples, guidance_scale=7.5)[0]\n",
129129
"\n",
130130
" return images\n",
131131
"\n",
@@ -199,4 +199,4 @@
199199
},
200200
"nbformat": 4,
201201
"nbformat_minor": 0
202-
}
202+
}

0 commit comments

Comments
 (0)