We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ab805a commit 79a1d31Copy full SHA for 79a1d31
scripts/convert_sd3_to_diffusers.py
@@ -251,7 +251,7 @@ def get_add_attn2_layers(state_dict):
251
# Extract the layer number from the key
252
layer_num = int(key.split(".")[1])
253
add_attn2_layers.append(layer_num)
254
- return tuple(sorted(add_attn2_layers))
+ return tuple(sorted(set(add_attn2_layers)))
255
256
257
def get_pos_embed_max_size(state_dict):
0 commit comments