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
df8559a7
Unverified
Commit
df8559a7
authored
Mar 04, 2024
by
fpgaminer
Committed by
GitHub
Mar 04, 2024
Browse files
Fix: UNet2DModel::__init__ type hints; fixes issue #4806 (#7175)
Co-authored-by:
Sayak Paul
<
spsayakpaul@gmail.com
>
parent
8f206a58
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/diffusers/models/unets/unet_2d.py
src/diffusers/models/unets/unet_2d.py
+3
-3
No files found.
src/diffusers/models/unets/unet_2d.py
View file @
df8559a7
...
@@ -99,9 +99,9 @@ class UNet2DModel(ModelMixin, ConfigMixin):
...
@@ -99,9 +99,9 @@ class UNet2DModel(ModelMixin, ConfigMixin):
time_embedding_type
:
str
=
"positional"
,
time_embedding_type
:
str
=
"positional"
,
freq_shift
:
int
=
0
,
freq_shift
:
int
=
0
,
flip_sin_to_cos
:
bool
=
True
,
flip_sin_to_cos
:
bool
=
True
,
down_block_types
:
Tuple
[
str
]
=
(
"DownBlock2D"
,
"AttnDownBlock2D"
,
"AttnDownBlock2D"
,
"AttnDownBlock2D"
),
down_block_types
:
Tuple
[
str
,
...
]
=
(
"DownBlock2D"
,
"AttnDownBlock2D"
,
"AttnDownBlock2D"
,
"AttnDownBlock2D"
),
up_block_types
:
Tuple
[
str
]
=
(
"AttnUpBlock2D"
,
"AttnUpBlock2D"
,
"AttnUpBlock2D"
,
"UpBlock2D"
),
up_block_types
:
Tuple
[
str
,
...
]
=
(
"AttnUpBlock2D"
,
"AttnUpBlock2D"
,
"AttnUpBlock2D"
,
"UpBlock2D"
),
block_out_channels
:
Tuple
[
int
]
=
(
224
,
448
,
672
,
896
),
block_out_channels
:
Tuple
[
int
,
...
]
=
(
224
,
448
,
672
,
896
),
layers_per_block
:
int
=
2
,
layers_per_block
:
int
=
2
,
mid_block_scale_factor
:
float
=
1
,
mid_block_scale_factor
:
float
=
1
,
downsample_padding
:
int
=
1
,
downsample_padding
:
int
=
1
,
...
...
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