Uh oh!
There was an error while loading. Please reload this page.
add self.use_ada_layer_norm_* params back to BasicTransformerBlock - #6841
Conversation
HuggingFaceDocBuilderDev
commented
Feb 4, 2024
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. |
| return hidden_states, output_states | ||
| def hacked_DownBlock2D_forward(self, hidden_states, temb=None): | ||
| def hacked_DownBlock2D_forward(self, hidden_states, temb=None, **kwargs): |
There was a problem hiding this comment.
hacked_DownBlock2D_forward is a function they wrote to replace the forward method of the DownBlock2D ,hence the signature has to match. We added a new argument scale for the lora refactor and causes an error here without **kwargs
I think they should write their custom blocks instead
| def hacked_UpBlock2D_forward(self, hidden_states, res_hidden_states_tuple, temb=None, upsample_size=None): | ||
| def hacked_UpBlock2D_forward( | ||
| self, hidden_states, res_hidden_states_tuple, temb=None, upsample_size=None, **kwargs |
| self.use_ada_layer_norm_zero = (num_embeds_ada_norm is not None) and norm_type == "ada_norm_zero" | ||
| self.use_ada_layer_norm = (num_embeds_ada_norm is not None) and norm_type == "ada_norm" | ||
| self.use_ada_layer_norm_single = norm_type == "ada_norm_single" | ||
| self.use_layer_norm = norm_type == "layer_norm" | ||
| self.use_ada_layer_norm_continuous = norm_type == "ada_norm_continuous" |
There was a problem hiding this comment.
Sorry for the late reply. I'd maybe just add a comment to state that they are kept for back-compatibility reasons.
| def hacked_UpBlock2D_forward(self, hidden_states, res_hidden_states_tuple, temb=None, upsample_size=None): | ||
| def hacked_UpBlock2D_forward( | ||
| self, hidden_states, res_hidden_states_tuple, temb=None, upsample_size=None, **kwargs |
sayakpaul
left a comment
There was a problem hiding this comment.
Thanks for the swift action. Just a question.
#6841) fix sd reference community ppeline Co-authored-by: yiyixuxu <yixu310@gmail,com>
huggingface#6841) fix sd reference community ppeline Co-authored-by: yiyixuxu <yixu310@gmail,com>
fix#6838
I also fixed some other error in the sd reference community pipelines while I'm at it (so also fix#5028 (comment))
we should deprecate these params too