Spaces:
Runtime error
Runtime error
update
Browse files
omini_control/__pycache__/condition.cpython-310.pyc
CHANGED
|
Binary files a/omini_control/__pycache__/condition.cpython-310.pyc and b/omini_control/__pycache__/condition.cpython-310.pyc differ
|
|
|
omini_control/block.py
CHANGED
|
@@ -98,8 +98,6 @@ def attn_forward(
|
|
| 98 |
cond_key = attn.norm_k(cond_key)
|
| 99 |
|
| 100 |
if cond_rotary_emb is not None:
|
| 101 |
-
print("cond_query.shape", cond_query.shape)
|
| 102 |
-
print("cond_rotary_emb.shape", cond_rotary_emb[0].shape)
|
| 103 |
cond_query = apply_rotary_emb(cond_query, cond_rotary_emb)
|
| 104 |
cond_key = apply_rotary_emb(cond_key, cond_rotary_emb)
|
| 105 |
|
|
|
|
| 98 |
cond_key = attn.norm_k(cond_key)
|
| 99 |
|
| 100 |
if cond_rotary_emb is not None:
|
|
|
|
|
|
|
| 101 |
cond_query = apply_rotary_emb(cond_query, cond_rotary_emb)
|
| 102 |
cond_key = apply_rotary_emb(cond_key, cond_rotary_emb)
|
| 103 |
|
omini_control/condition.py
CHANGED
|
@@ -93,7 +93,6 @@ class Condition(object):
|
|
| 93 |
cond_img = (
|
| 94 |
cond_img - pipe.vae.config.shift_factor
|
| 95 |
) * pipe.vae.config.scaling_factor
|
| 96 |
-
print("Cond_img.shape", cond_img.shape)
|
| 97 |
cond_tokens = pipe._pack_latents(cond_img, *cond_img.shape)
|
| 98 |
cond_ids = pipe._prepare_latent_image_ids(
|
| 99 |
cond_img.shape[0],
|
|
@@ -102,8 +101,6 @@ class Condition(object):
|
|
| 102 |
pipe.device,
|
| 103 |
pipe.dtype,
|
| 104 |
)
|
| 105 |
-
print("Cond_tokens.shape", cond_tokens.shape)
|
| 106 |
-
print("Cond_ids.shape", cond_ids.shape)
|
| 107 |
return cond_tokens, cond_ids
|
| 108 |
|
| 109 |
def encode(self, pipe: FluxPipeline) -> Tuple[torch.Tensor, torch.Tensor, int]:
|
|
|
|
| 93 |
cond_img = (
|
| 94 |
cond_img - pipe.vae.config.shift_factor
|
| 95 |
) * pipe.vae.config.scaling_factor
|
|
|
|
| 96 |
cond_tokens = pipe._pack_latents(cond_img, *cond_img.shape)
|
| 97 |
cond_ids = pipe._prepare_latent_image_ids(
|
| 98 |
cond_img.shape[0],
|
|
|
|
| 101 |
pipe.device,
|
| 102 |
pipe.dtype,
|
| 103 |
)
|
|
|
|
|
|
|
| 104 |
return cond_tokens, cond_ids
|
| 105 |
|
| 106 |
def encode(self, pipe: FluxPipeline) -> Tuple[torch.Tensor, torch.Tensor, int]:
|