Spaces:
Running
on
Zero
Running
on
Zero
Update src/condition.py
Browse files- src/condition.py +2 -2
src/condition.py
CHANGED
|
@@ -96,8 +96,8 @@ class Condition(object):
|
|
| 96 |
cond_tokens = pipe._pack_latents(cond_img, *cond_img.shape)
|
| 97 |
cond_ids = pipe._prepare_latent_image_ids(
|
| 98 |
cond_img.shape[0],
|
| 99 |
-
cond_img.shape[2],
|
| 100 |
-
cond_img.shape[3],
|
| 101 |
pipe.device,
|
| 102 |
pipe.dtype,
|
| 103 |
)
|
|
|
|
| 96 |
cond_tokens = pipe._pack_latents(cond_img, *cond_img.shape)
|
| 97 |
cond_ids = pipe._prepare_latent_image_ids(
|
| 98 |
cond_img.shape[0],
|
| 99 |
+
cond_img.shape[2]//2,
|
| 100 |
+
cond_img.shape[3]//2,
|
| 101 |
pipe.device,
|
| 102 |
pipe.dtype,
|
| 103 |
)
|