Skip to content

Commit

Permalink
fix typo in EMAModel's load_state_dict() (huggingface#2151)
Browse files Browse the repository at this point in the history
Possible typo introduced in 7c82a16
  • Loading branch information
dasayan05 authored Jan 29, 2023
1 parent fdf70cb commit 125d783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diffusers/training_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def load_state_dict(self, state_dict: dict) -> None:
if not isinstance(self.inv_gamma, (float, int)):
raise ValueError("Invalid inv_gamma")

self.power = state_dict["power"].get("power", self.power)
self.power = state_dict.get("power", self.power)
if not isinstance(self.power, (float, int)):
raise ValueError("Invalid power")

Expand Down

0 comments on commit 125d783

Please sign in to comment.