diff --git a/src/diffusers/configuration_utils.py b/src/diffusers/configuration_utils.py index 44364453..61a80ff1 100644 --- a/src/diffusers/configuration_utils.py +++ b/src/diffusers/configuration_utils.py @@ -225,11 +225,11 @@ class ConfigMixin: text = reader.read() return json.loads(text) - # def __eq__(self, other): - # return self.__dict__ == other.__dict__ + def __eq__(self, other): + return self.__dict__ == other.__dict__ - # def __repr__(self): - # return f"{self.__class__.__name__} {self.to_json_string()}" + def __repr__(self): + return f"{self.__class__.__name__} {self.to_json_string()}" @property def config(self) -> Dict[str, Any]: