Spaces:
Running
on
Zero
Running
on
Zero
Study Face Object
Browse files
app.py
CHANGED
|
@@ -3,6 +3,7 @@ import torch
|
|
| 3 |
import random
|
| 4 |
import numpy as np
|
| 5 |
import spaces
|
|
|
|
| 6 |
|
| 7 |
import PIL
|
| 8 |
from PIL import Image
|
|
@@ -306,6 +307,8 @@ def generate_image(
|
|
| 306 |
progress=gr.Progress(track_tqdm=True),
|
| 307 |
):
|
| 308 |
|
|
|
|
|
|
|
| 309 |
if enable_LCM:
|
| 310 |
pipe.scheduler = diffusers.LCMScheduler.from_config(pipe.scheduler.config)
|
| 311 |
pipe.enable_lora()
|
|
|
|
| 3 |
import random
|
| 4 |
import numpy as np
|
| 5 |
import spaces
|
| 6 |
+
import time
|
| 7 |
|
| 8 |
import PIL
|
| 9 |
from PIL import Image
|
|
|
|
| 307 |
progress=gr.Progress(track_tqdm=True),
|
| 308 |
):
|
| 309 |
|
| 310 |
+
print(f"Recibí en generate image, éste face image path: {face_image_path} cuyo tipo es: {type(face_image_path)}.")
|
| 311 |
+
time.sleep(2)
|
| 312 |
if enable_LCM:
|
| 313 |
pipe.scheduler = diffusers.LCMScheduler.from_config(pipe.scheduler.config)
|
| 314 |
pipe.enable_lora()
|