Spaces:
Paused
Paused
Update app_quant_latent.py
Browse files- app_quant_latent.py +0 -6
app_quant_latent.py
CHANGED
|
@@ -248,12 +248,6 @@ log_system_stats("AFTER PIPELINE BUILD")
|
|
| 248 |
|
| 249 |
@spaces.GPU
|
| 250 |
def generate_image(prompt, height, width, steps, seed, guidance_scale=0.0, return_latents=False):
|
| 251 |
-
"""
|
| 252 |
-
Generate an image from a prompt.
|
| 253 |
-
Tries advanced latent-based method; falls back to standard pipeline if anything fails.
|
| 254 |
-
"""
|
| 255 |
-
|
| 256 |
-
|
| 257 |
|
| 258 |
try:
|
| 259 |
generator = torch.Generator(device).manual_seed(int(seed))
|
|
|
|
| 248 |
|
| 249 |
@spaces.GPU
|
| 250 |
def generate_image(prompt, height, width, steps, seed, guidance_scale=0.0, return_latents=False):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 251 |
|
| 252 |
try:
|
| 253 |
generator = torch.Generator(device).manual_seed(int(seed))
|