pseudotheos
commited on
Commit
·
7d7dadd
1
Parent(s):
acdd046
Update app.py
Browse files
app.py
CHANGED
@@ -137,10 +137,6 @@ def inference(
|
|
137 |
start_time_formatted = time.strftime("%H:%M:%S", start_time_struct)
|
138 |
logger.info(f"Inference started at {start_time_formatted}")
|
139 |
|
140 |
-
|
141 |
-
# Generate the initial image
|
142 |
-
#init_image = init_pipe(prompt).images[0]
|
143 |
-
|
144 |
# Rest of your existing code
|
145 |
control_image_small = center_crop_resize(control_image)
|
146 |
control_image_large = center_crop_resize(control_image, (1024, 1024))
|
@@ -180,8 +176,8 @@ def inference(
|
|
180 |
end_time_formatted = time.strftime("%H:%M:%S", end_time_struct)
|
181 |
print(f"Inference ended at {end_time_formatted}, taking {end_time-start_time}s")
|
182 |
logger.debug("Output Types: generated_image=%s", type(None))
|
183 |
-
logger.debug("
|
184 |
-
|
185 |
return out_image["images"][0]
|
186 |
|
187 |
|
|
|
137 |
start_time_formatted = time.strftime("%H:%M:%S", start_time_struct)
|
138 |
logger.info(f"Inference started at {start_time_formatted}")
|
139 |
|
|
|
|
|
|
|
|
|
140 |
# Rest of your existing code
|
141 |
control_image_small = center_crop_resize(control_image)
|
142 |
control_image_large = center_crop_resize(control_image, (1024, 1024))
|
|
|
176 |
end_time_formatted = time.strftime("%H:%M:%S", end_time_struct)
|
177 |
print(f"Inference ended at {end_time_formatted}, taking {end_time-start_time}s")
|
178 |
logger.debug("Output Types: generated_image=%s", type(None))
|
179 |
+
logger.debug("Content of out_image: %s", out_image)
|
180 |
+
logger.debug("Structure of out_image: %s", dir(out_image))
|
181 |
return out_image["images"][0]
|
182 |
|
183 |
|