This is a small script to help you batch upload your models like LoRAs or whatever to HuggingFace.
- Create your own HF access token: https://huggingface.co/settings/tokens
- With the following permissions: Fine-grained (custom)
- Allow the
Read access to all collections under your personal namespace
setting - Allow the
Write access to all collections under your personal namespace
setting - Enter your token in the script, or environment variable before running the script, or otherwise sign in to HuggingFace in the CLI where you are running the script.
- Edit the
model_info
list with the local path to your model, the base model (follow the base model list below for linking to base models), as well as a repo-name, a pretty-name and any information you would like to add. - Make sure that you have the
.preview.png
and the.civitai.info
file with the same name as your model, in the same directory, for the script to work. - Run the script, and it should create and upload the files for you.
https://github.com/zixaphir/Stable-Diffusion-Webui-Civitai-Helper
Use this extension in A1111 and press the Scan
-button to download it all from CivitAI automatically.