Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -285,7 +285,7 @@ def generate_30(
|
|
285 |
seed = int(randomize_seed_fn(seed, randomize_seed))
|
286 |
generator = torch.Generator(device='cuda').manual_seed(seed)
|
287 |
if latent_file is not None: # Check if a latent file is provided
|
288 |
-
sd_image_a = Image.open(latent_file.name)
|
289 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
290 |
filename= f'rv_IP_{timestamp}.png'
|
291 |
print("-- using image file --")
|
@@ -338,7 +338,7 @@ def generate_60(
|
|
338 |
seed = int(randomize_seed_fn(seed, randomize_seed))
|
339 |
generator = torch.Generator(device='cuda').manual_seed(seed)
|
340 |
if latent_file is not None: # Check if a latent file is provided
|
341 |
-
sd_image_a = Image.open(latent_file.name)
|
342 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
343 |
filename= f'rv_IP_{timestamp}.png'
|
344 |
print("-- using image file --")
|
@@ -391,7 +391,7 @@ def generate_90(
|
|
391 |
seed = int(randomize_seed_fn(seed, randomize_seed))
|
392 |
generator = torch.Generator(device='cuda').manual_seed(seed)
|
393 |
if latent_file is not None: # Check if a latent file is provided
|
394 |
-
sd_image_a = Image.open(latent_file.name)
|
395 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
396 |
filename= f'rv_IP_{timestamp}.png'
|
397 |
print("-- using image file --")
|
|
|
285 |
seed = int(randomize_seed_fn(seed, randomize_seed))
|
286 |
generator = torch.Generator(device='cuda').manual_seed(seed)
|
287 |
if latent_file is not None: # Check if a latent file is provided
|
288 |
+
sd_image_a = Image.open(latent_file.name)
|
289 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
290 |
filename= f'rv_IP_{timestamp}.png'
|
291 |
print("-- using image file --")
|
|
|
338 |
seed = int(randomize_seed_fn(seed, randomize_seed))
|
339 |
generator = torch.Generator(device='cuda').manual_seed(seed)
|
340 |
if latent_file is not None: # Check if a latent file is provided
|
341 |
+
sd_image_a = Image.open(latent_file.name)
|
342 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
343 |
filename= f'rv_IP_{timestamp}.png'
|
344 |
print("-- using image file --")
|
|
|
391 |
seed = int(randomize_seed_fn(seed, randomize_seed))
|
392 |
generator = torch.Generator(device='cuda').manual_seed(seed)
|
393 |
if latent_file is not None: # Check if a latent file is provided
|
394 |
+
sd_image_a = Image.open(latent_file.name)
|
395 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
396 |
filename= f'rv_IP_{timestamp}.png'
|
397 |
print("-- using image file --")
|