Replies: 3 comments
|
I think it could make sense default |
0 replies
|
Thank you for commenting. I will make a pull request tomorrow, because it can run test. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I've been exploring the
ResnetBlock2Dclass within thediffuserslibrary, specifically located atdiffusers/src/diffusers/models/resnet.py, and I noticed something that might warrant a discussion or clarification.The constructor of
ResnetBlock2Dhas an argumentpre_normthat is fixed toTrue:https://github.com/huggingface/diffusers/blob/9cc59ba0891c3ccbebfcbb6784f4dde2d5bd8556/src/diffusers/models/resnet.py#L259C9-L259C29
I think the code should becomes
self.pre_norm = pre_norm, and test result didn't change even if I change code.If this modification is correct, I would like to send a pull request, but I am not familiar with the structure of models, and there is a possibility that it has some meaning and is fixed, so I posted this because I wanted to know about it.
All reactions