aigc-apps / aigc-apps/VideoX-Fun
timesteps designed according to VAE compression
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.3k
- Forks
- 188
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 3
Description
if spatial_compression_ratio >= 16:
mask_conditions_bs = mask_conditions.size()[0]
mask_conditions[:, :, 1:, :, :] = 1
if not mask_conditions[:, :, 0, :, :].any():
noisy_latents = (1 - mask_conditions) * inpaint_latents[:, -vae.latent_channels:] + mask_conditions * noisy_latents
temp_ts = (mask_conditions[:, 0, :, ::2, ::2] * timesteps[:, None, None, None]).flatten(1)
timesteps = torch.cat([temp_ts, temp_ts.new_ones(mask_conditions_bs, seq_len - temp_ts.size(1)) * timesteps[:, None,]], dim = 1)
else:
timesteps = mask_conditions.new_ones(mask_conditions_bs, seq_len) * timesteps[:, None,]
The model code for training 5b has timesteps designed according to VAE compression, but no corresponding operation is seen during inference. Is this as expected?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the training model code for 5b and the corresponding inference entry point. Compare how timesteps are constructed with and without VAE compression, including the mask_conditions path shown in the issue. Done means establishing whether inference intentionally differs and, if not, identifying the matching behavior needed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100