Spaces:
Runtime error
Runtime error
Commit
Β·
1cbf4b4
1
Parent(s):
dd8b624
Updated app.py
Browse files
app.py
CHANGED
@@ -83,7 +83,9 @@ def transform_ncuda(img,prompt,cfg=8.0,stps=30,sc=0.8):
|
|
83 |
except Exception as e:
|
84 |
print(f'Caught error: {e}')
|
85 |
logging.warn(f'Caught error: {e}')
|
86 |
-
|
|
|
|
|
87 |
return transform_ncuda(img,prompt)
|
88 |
# img2.save(str(artifact.seed)+ "-img2img.png") # Save our generated image with its seed number as the filename and the img2img suffix so that we know this is our transformed image.
|
89 |
|
|
|
83 |
except Exception as e:
|
84 |
print(f'Caught error: {e}')
|
85 |
logging.warn(f'Caught error: {e}')
|
86 |
+
|
87 |
+
img = img.resize((256,256), Image.ANTIALIAS)
|
88 |
+
print(f'Image resizing: (256,256)')
|
89 |
return transform_ncuda(img,prompt)
|
90 |
# img2.save(str(artifact.seed)+ "-img2img.png") # Save our generated image with its seed number as the filename and the img2img suffix so that we know this is our transformed image.
|
91 |
|