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
53377ef8
Unverified
Commit
53377ef8
authored
Mar 28, 2023
by
Nipun Jindal
Committed by
GitHub
Mar 28, 2023
Browse files
[2761]: Add documentation for extra_in_channels UNet1DModel (#2817)
Co-authored-by:
njindal
<
njindal@adobe.com
>
parent
4d0f412d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/diffusers/models/unet_1d.py
src/diffusers/models/unet_1d.py
+3
-0
No files found.
src/diffusers/models/unet_1d.py
View file @
53377ef8
...
@@ -47,6 +47,9 @@ class UNet1DModel(ModelMixin, ConfigMixin):
...
@@ -47,6 +47,9 @@ class UNet1DModel(ModelMixin, ConfigMixin):
sample_size (`int`, *optional*): Default length of sample. Should be adaptable at runtime.
sample_size (`int`, *optional*): Default length of sample. Should be adaptable at runtime.
in_channels (`int`, *optional*, defaults to 2): Number of channels in the input sample.
in_channels (`int`, *optional*, defaults to 2): Number of channels in the input sample.
out_channels (`int`, *optional*, defaults to 2): Number of channels in the output.
out_channels (`int`, *optional*, defaults to 2): Number of channels in the output.
extra_in_channels (`int`, *optional*, defaults to 0):
Number of additional channels to be added to the input of the first down block. Useful for cases where the
input data has more channels than what the model is initially designed for.
time_embedding_type (`str`, *optional*, defaults to `"fourier"`): Type of time embedding to use.
time_embedding_type (`str`, *optional*, defaults to `"fourier"`): Type of time embedding to use.
freq_shift (`float`, *optional*, defaults to 0.0): Frequency shift for fourier time embedding.
freq_shift (`float`, *optional*, defaults to 0.0): Frequency shift for fourier time embedding.
flip_sin_to_cos (`bool`, *optional*, defaults to :
flip_sin_to_cos (`bool`, *optional*, defaults to :
...
...
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