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
62b497c4
Unverified
Commit
62b497c4
authored
Dec 05, 2022
by
Patrick von Platen
Committed by
GitHub
Dec 05, 2022
Browse files
[Docs] Correct docs (#1554)
parent
922d56a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/diffusers/models/unet_2d_condition.py
src/diffusers/models/unet_2d_condition.py
+1
-1
src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py
...users/pipelines/versatile_diffusion/modeling_text_unet.py
+1
-1
No files found.
src/diffusers/models/unet_2d_condition.py
View file @
62b497c4
...
@@ -309,7 +309,7 @@ class UNet2DConditionModel(ModelMixin, ConfigMixin):
...
@@ -309,7 +309,7 @@ class UNet2DConditionModel(ModelMixin, ConfigMixin):
Args:
Args:
sample (`torch.FloatTensor`): (batch, channel, height, width) noisy inputs tensor
sample (`torch.FloatTensor`): (batch, channel, height, width) noisy inputs tensor
timestep (`torch.FloatTensor` or `float` or `int`): (batch) timesteps
timestep (`torch.FloatTensor` or `float` or `int`): (batch) timesteps
encoder_hidden_states (`torch.FloatTensor`): (batch,
channel, height, width
) encoder hidden states
encoder_hidden_states (`torch.FloatTensor`): (batch,
sequence_length, feature_dim
) encoder hidden states
return_dict (`bool`, *optional*, defaults to `True`):
return_dict (`bool`, *optional*, defaults to `True`):
Whether or not to return a [`models.unet_2d_condition.UNet2DConditionOutput`] instead of a plain tuple.
Whether or not to return a [`models.unet_2d_condition.UNet2DConditionOutput`] instead of a plain tuple.
...
...
src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py
View file @
62b497c4
...
@@ -387,7 +387,7 @@ class UNetFlatConditionModel(ModelMixin, ConfigMixin):
...
@@ -387,7 +387,7 @@ class UNetFlatConditionModel(ModelMixin, ConfigMixin):
Args:
Args:
sample (`torch.FloatTensor`): (batch, channel, height, width) noisy inputs tensor
sample (`torch.FloatTensor`): (batch, channel, height, width) noisy inputs tensor
timestep (`torch.FloatTensor` or `float` or `int`): (batch) timesteps
timestep (`torch.FloatTensor` or `float` or `int`): (batch) timesteps
encoder_hidden_states (`torch.FloatTensor`): (batch,
channel, height, width
) encoder hidden states
encoder_hidden_states (`torch.FloatTensor`): (batch,
sequence_length, feature_dim
) encoder hidden states
return_dict (`bool`, *optional*, defaults to `True`):
return_dict (`bool`, *optional*, defaults to `True`):
Whether or not to return a [`models.unet_2d_condition.UNet2DConditionOutput`] instead of a plain tuple.
Whether or not to return a [`models.unet_2d_condition.UNet2DConditionOutput`] instead of a plain tuple.
...
...
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