Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -287,7 +287,7 @@ def generate_30(
|
|
| 287 |
generator = torch.Generator(device='cuda').manual_seed(seed)
|
| 288 |
if latent_file.any(): # Check if a latent file is provided
|
| 289 |
#sd_image_a = torch.load(latent_file.name) # Load the latent
|
| 290 |
-
sd_image_a = Image.open(latent_file)
|
| 291 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
| 292 |
filename= f'rv_IP_{timestamp}.txt'
|
| 293 |
print("-- using image file --")
|
|
@@ -341,7 +341,7 @@ def generate_60(
|
|
| 341 |
generator = torch.Generator(device='cuda').manual_seed(seed)
|
| 342 |
if latent_file.any(): # Check if a latent file is provided
|
| 343 |
#sd_image_a = torch.load(latent_file.name) # Load the latent
|
| 344 |
-
sd_image_a = Image.open(latent_file)
|
| 345 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
| 346 |
filename= f'rv_IP_{timestamp}.txt'
|
| 347 |
print("-- using image file --")
|
|
@@ -395,7 +395,7 @@ def generate_90(
|
|
| 395 |
generator = torch.Generator(device='cuda').manual_seed(seed)
|
| 396 |
if latent_file.any(): # Check if a latent file is provided
|
| 397 |
#sd_image_a = torch.load(latent_file.name) # Load the latent
|
| 398 |
-
sd_image_a = Image.open(latent_file)
|
| 399 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
| 400 |
filename= f'rv_IP_{timestamp}.txt'
|
| 401 |
print("-- using image file --")
|
|
|
|
| 287 |
generator = torch.Generator(device='cuda').manual_seed(seed)
|
| 288 |
if latent_file.any(): # Check if a latent file is provided
|
| 289 |
#sd_image_a = torch.load(latent_file.name) # Load the latent
|
| 290 |
+
sd_image_a = latent_file #Image.open(latent_file)
|
| 291 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
| 292 |
filename= f'rv_IP_{timestamp}.txt'
|
| 293 |
print("-- using image file --")
|
|
|
|
| 341 |
generator = torch.Generator(device='cuda').manual_seed(seed)
|
| 342 |
if latent_file.any(): # Check if a latent file is provided
|
| 343 |
#sd_image_a = torch.load(latent_file.name) # Load the latent
|
| 344 |
+
sd_image_a = latent_file #Image.open(latent_file)
|
| 345 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
| 346 |
filename= f'rv_IP_{timestamp}.txt'
|
| 347 |
print("-- using image file --")
|
|
|
|
| 395 |
generator = torch.Generator(device='cuda').manual_seed(seed)
|
| 396 |
if latent_file.any(): # Check if a latent file is provided
|
| 397 |
#sd_image_a = torch.load(latent_file.name) # Load the latent
|
| 398 |
+
sd_image_a = latent_file #Image.open(latent_file)
|
| 399 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
| 400 |
filename= f'rv_IP_{timestamp}.txt'
|
| 401 |
print("-- using image file --")
|