Skip to content

Commit

Permalink
fix micro cond gen in training
Browse files Browse the repository at this point in the history
  • Loading branch information
patil-suraj committed Aug 10, 2023
1 parent 46026a3 commit 85af31f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion training/train_muse.py
Original file line number Diff line number Diff line change
Expand Up @@ -940,8 +940,9 @@ def generate_images(
clip_embeds = None

if config.model.transformer.get("add_micro_cond_embeds", False):
resolution = config.dataset.preprocessing.resolution
micro_conds = torch.tensor(
[256, 256, 0, 0, 6], device=encoder_hidden_states.device, dtype=encoder_hidden_states.dtype
[resolution, resolution, 0, 0, 6], device=encoder_hidden_states.device, dtype=encoder_hidden_states.dtype
)
micro_conds = micro_conds.unsqueeze(0).repeat(encoder_hidden_states.shape[0], 1)

Expand Down

0 comments on commit 85af31f

Please sign in to comment.