Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -216,7 +216,6 @@ def generate_30(
|
|
216 |
if use_resolution_binning:
|
217 |
options["use_resolution_binning"] = True
|
218 |
images = []
|
219 |
-
uploadNote(prompt,num_inference_steps,guidance_scale,timestamp)
|
220 |
batch_options = options.copy()
|
221 |
rv_image = pipe(**batch_options).images
|
222 |
options = {
|
@@ -236,6 +235,7 @@ def generate_30(
|
|
236 |
rv_image = refiner(**batch_options).images[0]
|
237 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
238 |
sd_image_path = f"rv50_G_{timestamp}.png"
|
|
|
239 |
rv_image.save(sd_image_path,optimize=False,compress_level=0)
|
240 |
upload_to_ftp(sd_image_path)
|
241 |
unique_name = str(uuid.uuid4()) + ".png"
|
@@ -274,7 +274,6 @@ def generate_60(
|
|
274 |
if use_resolution_binning:
|
275 |
options["use_resolution_binning"] = True
|
276 |
images = []
|
277 |
-
uploadNote(prompt,num_inference_steps,guidance_scale,timestamp)
|
278 |
batch_options = options.copy()
|
279 |
rv_image = pipe(**batch_options).images
|
280 |
options = {
|
@@ -294,6 +293,7 @@ def generate_60(
|
|
294 |
rv_image = refiner(**batch_options).images[0]
|
295 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
296 |
sd_image_path = f"rv50_G_{timestamp}.png"
|
|
|
297 |
rv_image.save(sd_image_path,optimize=False,compress_level=0)
|
298 |
upload_to_ftp(sd_image_path)
|
299 |
unique_name = str(uuid.uuid4()) + ".png"
|
@@ -332,7 +332,6 @@ def generate_90(
|
|
332 |
if use_resolution_binning:
|
333 |
options["use_resolution_binning"] = True
|
334 |
images = []
|
335 |
-
uploadNote(prompt,num_inference_steps,guidance_scale,timestamp)
|
336 |
batch_options = options.copy()
|
337 |
rv_image = pipe(**batch_options).images
|
338 |
options = {
|
@@ -352,6 +351,7 @@ def generate_90(
|
|
352 |
rv_image = refiner(**batch_options).images[0]
|
353 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
354 |
sd_image_path = f"rv50_G_{timestamp}.png"
|
|
|
355 |
rv_image.save(sd_image_path,optimize=False,compress_level=0)
|
356 |
upload_to_ftp(sd_image_path)
|
357 |
unique_name = str(uuid.uuid4()) + ".png"
|
|
|
216 |
if use_resolution_binning:
|
217 |
options["use_resolution_binning"] = True
|
218 |
images = []
|
|
|
219 |
batch_options = options.copy()
|
220 |
rv_image = pipe(**batch_options).images
|
221 |
options = {
|
|
|
235 |
rv_image = refiner(**batch_options).images[0]
|
236 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
237 |
sd_image_path = f"rv50_G_{timestamp}.png"
|
238 |
+
uploadNote(prompt,num_inference_steps,guidance_scale,timestamp)
|
239 |
rv_image.save(sd_image_path,optimize=False,compress_level=0)
|
240 |
upload_to_ftp(sd_image_path)
|
241 |
unique_name = str(uuid.uuid4()) + ".png"
|
|
|
274 |
if use_resolution_binning:
|
275 |
options["use_resolution_binning"] = True
|
276 |
images = []
|
|
|
277 |
batch_options = options.copy()
|
278 |
rv_image = pipe(**batch_options).images
|
279 |
options = {
|
|
|
293 |
rv_image = refiner(**batch_options).images[0]
|
294 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
295 |
sd_image_path = f"rv50_G_{timestamp}.png"
|
296 |
+
uploadNote(prompt,num_inference_steps,guidance_scale,timestamp)
|
297 |
rv_image.save(sd_image_path,optimize=False,compress_level=0)
|
298 |
upload_to_ftp(sd_image_path)
|
299 |
unique_name = str(uuid.uuid4()) + ".png"
|
|
|
332 |
if use_resolution_binning:
|
333 |
options["use_resolution_binning"] = True
|
334 |
images = []
|
|
|
335 |
batch_options = options.copy()
|
336 |
rv_image = pipe(**batch_options).images
|
337 |
options = {
|
|
|
351 |
rv_image = refiner(**batch_options).images[0]
|
352 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
353 |
sd_image_path = f"rv50_G_{timestamp}.png"
|
354 |
+
uploadNote(prompt,num_inference_steps,guidance_scale,timestamp)
|
355 |
rv_image.save(sd_image_path,optimize=False,compress_level=0)
|
356 |
upload_to_ftp(sd_image_path)
|
357 |
unique_name = str(uuid.uuid4()) + ".png"
|