Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(safetensor) - sort a list before checking
When I used your script in my project https://github.com/rodjjo/diffusion-expert, It was unable to convert safetensor files. I spend a little time and discovery that it imports if I sort the output_block_list values: This fix the error: ```Missing key(s) in state_dict: "up_blocks.0.upsamplers.0.conv.weight", "up_blocks.0.upsamplers.0.conv.bias", "up_blocks.1.upsamplers.0.conv.weight", "up_blocks.1.upsamplers.0.conv.bias", "up_blocks.2.upsamplers.0.conv.weight", "up_blocks.2.upsamplers.0.conv.bias" ````
- Loading branch information