Allow image resolutions multiple of 8 instead of 64 in SVD pipeline#6646
Allow image resolutions multiple of 8 instead of 64 in SVD pipeline#6646hlky merged 2 commits intohuggingface:mainfrom
Conversation
|
@DN6 @patil-suraj can you check here? |
|
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
|
@DN6 could you give this a look? |
|
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
|
HI @mlfarinha sorry I missed this. PR looks good to me. Could we resolve the conflicts and we can merge. |
|
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
|
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
|
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
|
gentle pin @mlfarinha |
|
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
…6646) allow resolutions not multiple of 64 in SVD Co-authored-by: Miguel Farinha <mignha@CSL15958.local> Co-authored-by: hlky <hlky@hlky.ac>
Hello! This is my first time making a PR to diffusers so I apologise if I have missed something!
This PR implements the same behaviour from
unet_2d_condition.pyandunet_3d_condition.pyto allow generating images with height/width that are not multiples of 64 while still being multiples of 8 inunet_spatio_temporal_condition.py. To achieve this I changed the forward method of the UNetSpatioTemporalConditionModel upblocksUpBlockSpatioTemporalandCrossAttnUpBlockSpatioTemporalinunet_3d_blocks.py. This PR is related to the closed issue #255Code to reproduce the error:
Error:
RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 16 but got size 15 for tensor number 1 in the list.@patrickvonplaten and @sayakpaul