Spaces:
Paused
Paused
Commit
·
64f5677
1
Parent(s):
81a1b56
image.open
Browse files
app.py
CHANGED
@@ -1516,7 +1516,8 @@ def run(user_input,num_steps, template, width,height):
|
|
1516 |
import shutil
|
1517 |
import os
|
1518 |
|
1519 |
-
image_data = Image.open(args2.image_file)
|
|
|
1520 |
return(image_data)
|
1521 |
|
1522 |
except KeyboardInterrupt:
|
@@ -2300,16 +2301,7 @@ def run(user_input,num_steps, template, width,height):
|
|
2300 |
mh.setup_model(x)
|
2301 |
last_iter = mh.run(x)
|
2302 |
x = x + 1
|
2303 |
-
|
2304 |
-
#if batch_size != 1:
|
2305 |
-
# clear_output()
|
2306 |
-
# print("===============================================================================")
|
2307 |
-
#q = 0
|
2308 |
-
#while q < batch_size:
|
2309 |
-
#display(Image("/content/" + folder_name + "/" + str(q) + ".png"))
|
2310 |
-
# print("Image" + str(q) + '.png')
|
2311 |
-
#q += 1
|
2312 |
-
|
2313 |
if zoom:
|
2314 |
files = os.listdir(steps_path)
|
2315 |
for index, file in enumerate(files):
|
|
|
1516 |
import shutil
|
1517 |
import os
|
1518 |
|
1519 |
+
image_data = Image.open(args2.image_file)
|
1520 |
+
print(image_data)
|
1521 |
return(image_data)
|
1522 |
|
1523 |
except KeyboardInterrupt:
|
|
|
2301 |
mh.setup_model(x)
|
2302 |
last_iter = mh.run(x)
|
2303 |
x = x + 1
|
2304 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2305 |
if zoom:
|
2306 |
files = os.listdir(steps_path)
|
2307 |
for index, file in enumerate(files):
|