Skip to content

Commit 62b497c

Browse files
[Docs] Correct docs (huggingface#1554)
1 parent 922d56a commit 62b497c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/diffusers/models/unet_2d_condition.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def forward(
309309
Args:
310310
sample (`torch.FloatTensor`): (batch, channel, height, width) noisy inputs tensor
311311
timestep (`torch.FloatTensor` or `float` or `int`): (batch) timesteps
312-
encoder_hidden_states (`torch.FloatTensor`): (batch, channel, height, width) encoder hidden states
312+
encoder_hidden_states (`torch.FloatTensor`): (batch, sequence_length, feature_dim) encoder hidden states
313313
return_dict (`bool`, *optional*, defaults to `True`):
314314
Whether or not to return a [`models.unet_2d_condition.UNet2DConditionOutput`] instead of a plain tuple.
315315

src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def forward(
387387
Args:
388388
sample (`torch.FloatTensor`): (batch, channel, height, width) noisy inputs tensor
389389
timestep (`torch.FloatTensor` or `float` or `int`): (batch) timesteps
390-
encoder_hidden_states (`torch.FloatTensor`): (batch, channel, height, width) encoder hidden states
390+
encoder_hidden_states (`torch.FloatTensor`): (batch, sequence_length, feature_dim) encoder hidden states
391391
return_dict (`bool`, *optional*, defaults to `True`):
392392
Whether or not to return a [`models.unet_2d_condition.UNet2DConditionOutput`] instead of a plain tuple.
393393

0 commit comments

Comments
 (0)