Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -368,7 +368,7 @@ def generate(text_list, image_list, max_new_tokens, force_boi, force_bbox, force
|
|
368 |
|
369 |
torch.cuda.empty_cache()
|
370 |
|
371 |
-
service.vae_pipe = service.vae_pipe.to(
|
372 |
|
373 |
init_image = generated_image.resize((1024, 1024))
|
374 |
prompt = ""
|
|
|
368 |
|
369 |
torch.cuda.empty_cache()
|
370 |
|
371 |
+
service.vae_pipe = service.vae_pipe.to(service.vit_sd_device)
|
372 |
|
373 |
init_image = generated_image.resize((1024, 1024))
|
374 |
prompt = ""
|