Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
diffusers
Commits
5313aa62
Commit
5313aa62
authored
Oct 11, 2023
by
Patrick von Platen
Browse files
make style
parent
ea8364e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/diffusers/models/unet_2d_blocks.py
src/diffusers/models/unet_2d_blocks.py
+6
-3
No files found.
src/diffusers/models/unet_2d_blocks.py
View file @
5313aa62
...
@@ -467,15 +467,18 @@ def get_up_block(
...
@@ -467,15 +467,18 @@ def get_up_block(
class
AutoencoderTinyBlock
(
nn
.
Module
):
class
AutoencoderTinyBlock
(
nn
.
Module
):
"""
"""
Tiny Autoencoder block used in [`AutoencoderTiny`]. It is a mini residual module consisting of plain conv + ReLU blocks.
Tiny Autoencoder block used in [`AutoencoderTiny`]. It is a mini residual module consisting of plain conv + ReLU
blocks.
Args:
Args:
in_channels (`int`): The number of input channels.
in_channels (`int`): The number of input channels.
out_channels (`int`): The number of output channels.
out_channels (`int`): The number of output channels.
act_fn (`str`):` The activation function to use. Supported values are `"swish"`, `"mish"`, `"gelu"`, and `"relu"`.
act_fn (`str`):
` The activation function to use. Supported values are `"swish"`, `"mish"`, `"gelu"`, and `"relu"`.
Returns:
Returns:
`torch.FloatTensor`: A tensor with the same shape as the input tensor, but with the number of channels equal to `out_channels`.
`torch.FloatTensor`: A tensor with the same shape as the input tensor, but with the number of channels equal to
`out_channels`.
"""
"""
def
__init__
(
self
,
in_channels
:
int
,
out_channels
:
int
,
act_fn
:
str
):
def
__init__
(
self
,
in_channels
:
int
,
out_channels
:
int
,
act_fn
:
str
):
...
...
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