Use correct key to get the number of layers, I accidentally used a layer with a 'final' layer giving me an out by one error
This commit is contained in:
@@ -17,7 +17,7 @@ conversion_map_ms = [ # for multi_scale_train (MS)
|
||||
]
|
||||
|
||||
def get_depth(state_dict):
|
||||
return sum(key.endswith('.scale_shift_table') for key in state_dict.keys())
|
||||
return sum(key.endswith('cross_attn.proj.weight') for key in state_dict.keys())
|
||||
|
||||
def get_conversion_map(state_dict):
|
||||
conversion_map = [ # main SD conversion map (PixArt reference, HF Diffusers)
|
||||
|
||||
Reference in New Issue
Block a user