Spaces:
Runtime error
Runtime error
Commit
·
139a6a5
1
Parent(s):
931b5a4
hf cuda issue
Browse files- .gitignore +4 -1
- app.py +2 -2
.gitignore
CHANGED
|
@@ -7,4 +7,7 @@ diffusion/__pycache__/
|
|
| 7 |
DINO_EMA_11M_b50_lr1e-5_epoch6_step320k.ckpt
|
| 8 |
sam_vit_h_4b8939.pth
|
| 9 |
vae-ft-mse-840000-ema-pruned.ckpt
|
| 10 |
-
how_to_videos/
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
DINO_EMA_11M_b50_lr1e-5_epoch6_step320k.ckpt
|
| 8 |
sam_vit_h_4b8939.pth
|
| 9 |
vae-ft-mse-840000-ema-pruned.ckpt
|
| 10 |
+
how_to_videos/
|
| 11 |
+
debug.png
|
| 12 |
+
debug*.png
|
| 13 |
+
*.pem
|
app.py
CHANGED
|
@@ -724,7 +724,7 @@ def ready_sample(img_cropped, img_original, ex_mask, inpaint_mask, keypts, keypt
|
|
| 724 |
img,
|
| 725 |
keypts,
|
| 726 |
hand_mask,
|
| 727 |
-
device=
|
| 728 |
target_size=(256, 256),
|
| 729 |
latent_size=(32, 32),
|
| 730 |
):
|
|
@@ -760,7 +760,7 @@ def ready_sample(img_cropped, img_original, ex_mask, inpaint_mask, keypts, keypt
|
|
| 760 |
img,
|
| 761 |
keypts,
|
| 762 |
hand_mask * (1 - inpaint_mask),
|
| 763 |
-
device=pre_device,
|
| 764 |
target_size=opts.image_size,
|
| 765 |
latent_size=opts.latent_size,
|
| 766 |
)
|
|
|
|
| 724 |
img,
|
| 725 |
keypts,
|
| 726 |
hand_mask,
|
| 727 |
+
device="cuda",
|
| 728 |
target_size=(256, 256),
|
| 729 |
latent_size=(32, 32),
|
| 730 |
):
|
|
|
|
| 760 |
img,
|
| 761 |
keypts,
|
| 762 |
hand_mask * (1 - inpaint_mask),
|
| 763 |
+
# device=pre_device,
|
| 764 |
target_size=opts.image_size,
|
| 765 |
latent_size=opts.latent_size,
|
| 766 |
)
|