Spaces:
Runtime error
Runtime error
EnigmaOfTheWorld
commited on
Commit
β’
8701e7e
1
Parent(s):
cd02866
Updated image to sketch
Browse files
app.py
CHANGED
@@ -144,6 +144,7 @@ except:
|
|
144 |
|
145 |
##################
|
146 |
def transform(init_image,prompt,n_prompt):
|
|
|
147 |
if cuda_error2==0:
|
148 |
try:
|
149 |
image1 = pipe1(prompt=prompt, image=init_image, negative_prompt=n_prompt, strength=0.8).images[0]
|
|
|
144 |
|
145 |
##################
|
146 |
def transform(init_image,prompt,n_prompt):
|
147 |
+
init_image = init_image.resize((256,256), Image.ANTIALIAS)
|
148 |
if cuda_error2==0:
|
149 |
try:
|
150 |
image1 = pipe1(prompt=prompt, image=init_image, negative_prompt=n_prompt, strength=0.8).images[0]
|