Commit
·
40e4bc2
1
Parent(s):
147ff5d
Debug diffusion
Browse files
app.py
CHANGED
|
@@ -41,8 +41,9 @@ def text2image_vqgan(text,width,height,style,steps,flavor):
|
|
| 41 |
def text2image_diffusion(text,steps_diff, images_diff, weight, clip):
|
| 42 |
results = diffusion(text, steps_diff, images_diff, weight, clip)
|
| 43 |
image_paths = []
|
| 44 |
-
|
| 45 |
for image in results:
|
|
|
|
| 46 |
image_str = image
|
| 47 |
image_str = image_str.replace("data:image/png;base64,","")
|
| 48 |
decoded_bytes = base64.decodebytes(bytes(image_str, "utf-8"))
|
|
|
|
| 41 |
def text2image_diffusion(text,steps_diff, images_diff, weight, clip):
|
| 42 |
results = diffusion(text, steps_diff, images_diff, weight, clip)
|
| 43 |
image_paths = []
|
| 44 |
+
print(results)
|
| 45 |
for image in results:
|
| 46 |
+
print('how many')
|
| 47 |
image_str = image
|
| 48 |
image_str = image_str.replace("data:image/png;base64,","")
|
| 49 |
decoded_bytes = base64.decodebytes(bytes(image_str, "utf-8"))
|