Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -371,9 +371,9 @@ def generate_30(
|
|
371 |
pyx.upload_to_ftp(filename)
|
372 |
#uploadNote(prompt,num_inference_steps,guidance_scale,timestamp)
|
373 |
batch_options = options.copy()
|
374 |
-
with torch.no_grad():
|
375 |
#torch.compiler.cudagraph_mark_step_begin()
|
376 |
-
|
377 |
sd_image_path = f"rv_C_{timestamp}.png"
|
378 |
rv_image.save(sd_image_path,optimize=False,compress_level=0)
|
379 |
pyx.upload_to_ftp(sd_image_path)
|
@@ -421,9 +421,9 @@ def generate_60(
|
|
421 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
422 |
uploadNote(prompt,num_inference_steps,guidance_scale,timestamp)
|
423 |
batch_options = options.copy()
|
424 |
-
with torch.no_grad():
|
425 |
#torch.compiler.cudagraph_mark_step_begin()
|
426 |
-
|
427 |
sd_image_path = f"rv_C_{timestamp}.png"
|
428 |
rv_image.save(sd_image_path,optimize=False,compress_level=0)
|
429 |
upload_to_ftp(sd_image_path)
|
@@ -464,9 +464,9 @@ def generate_90(
|
|
464 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
465 |
uploadNote(prompt,num_inference_steps,guidance_scale,timestamp)
|
466 |
batch_options = options.copy()
|
467 |
-
with torch.no_grad():
|
468 |
#torch.compiler.cudagraph_mark_step_begin()
|
469 |
-
|
470 |
sd_image_path = f"rv_C_{timestamp}.png"
|
471 |
rv_image.save(sd_image_path,optimize=False,compress_level=0)
|
472 |
upload_to_ftp(sd_image_path)
|
|
|
371 |
pyx.upload_to_ftp(filename)
|
372 |
#uploadNote(prompt,num_inference_steps,guidance_scale,timestamp)
|
373 |
batch_options = options.copy()
|
374 |
+
#with torch.no_grad():
|
375 |
#torch.compiler.cudagraph_mark_step_begin()
|
376 |
+
rv_image = pipe(**batch_options).images[0]
|
377 |
sd_image_path = f"rv_C_{timestamp}.png"
|
378 |
rv_image.save(sd_image_path,optimize=False,compress_level=0)
|
379 |
pyx.upload_to_ftp(sd_image_path)
|
|
|
421 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
422 |
uploadNote(prompt,num_inference_steps,guidance_scale,timestamp)
|
423 |
batch_options = options.copy()
|
424 |
+
#with torch.no_grad():
|
425 |
#torch.compiler.cudagraph_mark_step_begin()
|
426 |
+
rv_image = pipe(**batch_options).images[0]
|
427 |
sd_image_path = f"rv_C_{timestamp}.png"
|
428 |
rv_image.save(sd_image_path,optimize=False,compress_level=0)
|
429 |
upload_to_ftp(sd_image_path)
|
|
|
464 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
465 |
uploadNote(prompt,num_inference_steps,guidance_scale,timestamp)
|
466 |
batch_options = options.copy()
|
467 |
+
#with torch.no_grad():
|
468 |
#torch.compiler.cudagraph_mark_step_begin()
|
469 |
+
rv_image = pipe(**batch_options).images[0]
|
470 |
sd_image_path = f"rv_C_{timestamp}.png"
|
471 |
rv_image.save(sd_image_path,optimize=False,compress_level=0)
|
472 |
upload_to_ftp(sd_image_path)
|