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
919e27d3
Commit
919e27d3
authored
Jul 20, 2022
by
Patrick von Platen
Browse files
re-add super.__init__ for all PyTorch modules
parent
ad9d2525
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
0 deletions
+4
-0
src/diffusers/models/unet_conditional.py
src/diffusers/models/unet_conditional.py
+1
-0
src/diffusers/models/unet_unconditional.py
src/diffusers/models/unet_unconditional.py
+1
-0
src/diffusers/models/vae.py
src/diffusers/models/vae.py
+2
-0
No files found.
src/diffusers/models/unet_conditional.py
View file @
919e27d3
...
...
@@ -65,6 +65,7 @@ class UNetConditionalModel(ModelMixin, ConfigMixin):
center_input_sample
=
False
,
resnet_num_groups
=
30
,
):
super
().
__init__
()
self
.
image_size
=
image_size
time_embed_dim
=
block_channels
[
0
]
*
4
...
...
src/diffusers/models/unet_unconditional.py
View file @
919e27d3
...
...
@@ -61,6 +61,7 @@ class UNetUnconditionalModel(ModelMixin, ConfigMixin):
center_input_sample
=
False
,
resnet_num_groups
=
32
,
):
super
().
__init__
()
self
.
image_size
=
image_size
time_embed_dim
=
block_channels
[
0
]
*
4
...
...
src/diffusers/models/vae.py
View file @
919e27d3
...
...
@@ -400,6 +400,7 @@ class VQModel(ModelMixin, ConfigMixin):
resamp_with_conv
=
True
,
give_pre_end
=
False
,
):
super
().
__init__
()
# pass init params to Encoder
self
.
encoder
=
Encoder
(
...
...
@@ -477,6 +478,7 @@ class AutoencoderKL(ModelMixin, ConfigMixin):
resamp_with_conv
=
True
,
give_pre_end
=
False
,
):
super
().
__init__
()
# pass init params to Encoder
self
.
encoder
=
Encoder
(
...
...
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