Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
d10441d8
Commit
d10441d8
authored
Jun 14, 2022
by
anton-l
Browse files
Revert config eq
parent
3979f6ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/diffusers/configuration_utils.py
src/diffusers/configuration_utils.py
+4
-4
No files found.
src/diffusers/configuration_utils.py
View file @
d10441d8
...
...
@@ -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
]:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment