Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/maxdiffusion/configuration_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,7 @@ def extract_init_dict(cls, config_dict, **kwargs):
diffusers_library = importlib.import_module(__name__.split(".")[0])

if cls.has_compatibles:
compatible_classes = [
c for c in cls._get_compatibles() if not isinstance(c, DummyObject) # type: ignore
]
compatible_classes = [c for c in cls._get_compatibles() if not isinstance(c, DummyObject)] # type: ignore
else:
compatible_classes = []

Expand Down
1 change: 1 addition & 0 deletions src/maxdiffusion/trainers/wan_trainer_2_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ def train_step_2_2(state_low, state_high, data, rng, scheduler_state, is_high_no
is_high_noise = jax.random.uniform(cond_rng) >= u_boundary
else:
_, new_rng, timestep_rng, dropout_rng, noise_rng = jax.random.split(rng, num=5)

def compute_loss_high(high_params, s_high):
u = jax.random.uniform(timestep_rng, (bsz,), minval=u_boundary, maxval=1.0)
t_shifted = (u * shift) / (1.0 + (shift - 1.0) * u)
Expand Down
Loading