Replies: 3 comments
-
Cc: @yiyixuxu |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think it could make sense default |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you for commenting. I will make a pull request tomorrow, because it can run test. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been exploring the
ResnetBlock2D
class within thediffusers
library, specifically located atdiffusers/src/diffusers/models/resnet.py
, and I noticed something that might warrant a discussion or clarification.The constructor of
ResnetBlock2D
has an argumentpre_norm
that 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.
Beta Was this translation helpful? Give feedback.
All reactions