forked from mrq/DL-Art-School
ugh
This commit is contained in:
parent
7440e43531
commit
5816a4595e
|
@ -197,7 +197,7 @@ class TransformerDiffusionWithPointConditioning(nn.Module):
|
|||
if custom_conditioning_fetcher is not None:
|
||||
cs, ce = custom_conditioning_fetcher(self.conditioning_encoder, time_emb)
|
||||
else:
|
||||
assert conditioning_input.shape[-1] - cond_start - N > 0, f'Some sort of conditioning misalignment, {conditioning_input.shape[-1], cond_start, N}'
|
||||
assert conditioning_input.shape[-1] - cond_start - N >= 0, f'Some sort of conditioning misalignment, {conditioning_input.shape[-1], cond_start, N}'
|
||||
cond_pre = conditioning_input[:,:,:cond_start]
|
||||
cond_aligned = conditioning_input[:,:,cond_start:N+cond_start]
|
||||
cond_post = conditioning_input[:,:,N+cond_start:]
|
||||
|
|
Loading…
Reference in New Issue
Block a user