open-mmlab / mmagic

OpenMMLab Multimodal Advanced, Generative, and Intelligent Creation Toolbox. Unlock the magic 🪄: Generative-AI (AIGC), easy-to-use APIs, awsome model zoo, diffusion models, for text-to-image generation, image/video restoration/enhancement, etc.
https://mmagic.readthedocs.io/en/latest/
Apache License 2.0
6.89k stars 1.06k forks source link

[Fix] Powerpaint to load safetensors #2088

Closed sdbds closed 9 months ago

sdbds commented 9 months ago

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.

Motivation

huggingface delete .bin instead of .safetensors,so i fix to load safetensors

Modification

fix to load safetensors

BC-breaking (Optional)

None

Use cases (Optional)

None

Checklist

Submitting this pull request means that,

Before PR:

After PR:

CLAassistant commented 9 months ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

:white_check_mark: zengyh1900
:x: sdbds
You have signed the CLA already but the status is still pending? Let us recheck it.

sdbds commented 9 months ago

@zengyh1900 simple fix