Skip to content

Commit

Permalink
fix timesteps
Browse files Browse the repository at this point in the history
  • Loading branch information
lldacing committed Jan 20, 2025
1 parent b3e2ebf commit 05da865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PulidFluxHook.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def add(self, callback, **kwargs):
def __call__(self, input_args, extra_options):
transformer_options = extra_options["transformer_options"]
pulid_temp_attrs = transformer_options.get(PatchKeys.pulid_patch_key_attrs, {})
sigma = pulid_temp_attrs["timesteps"].detach().cpu().item()
sigma = pulid_temp_attrs["timesteps"][0].detach().cpu().item()
out = extra_options["original_block"](input_args)
img = out['img']
temp_img = img
Expand Down

0 comments on commit 05da865

Please sign in to comment.