diffusers icon indicating copy to clipboard operation
diffusers copied to clipboard

The argument down_intrablock_additional_residuals should not be changed inside the function UNet2DConditionModel.forward()

Open wzhgba opened this issue 3 years ago • 3 comments

I found the argument down_intrablock_additional_residuals is poped inside the UNet2DConditionModel.forward() function, and don't think it's a good design. This argument is the result of the adapter, and is repeatedly passed into the forward function during the denoising process. If the argument is changed by the function, the later function call will miss the information from the adapter.

wzhgba avatar Nov 10 '23 09:11 wzhgba

Hi @sayakpaul @yiyixuxu, can you please help me to work around this issue? Thanks

Bhavay-2001 avatar Nov 10 '23 14:11 Bhavay-2001

Can you please provide a reproducible code snippet?

patrickvonplaten avatar Nov 13 '23 18:11 patrickvonplaten

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.

github-actions[bot] avatar Dec 26 '23 15:12 github-actions[bot]