Skip to content

deepratna-awale/CivitAI-Model-Downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CivitAI Batch Model Downloader

One click Multi-thread download solution for all Civit-Ai models.

Requirements

Installation

I. On Runpod

  1. Select the RunPod Fast Stable Diffusion Image from Runpod Templates and Deploy it.

  2. Adjust your Disk Volume if required from Customize Deployment.

Select RunPod Fast Stable Diffusion Image on runpod

  1. Connect to Jupyter Lab. Connect to Jupyter Lab Instance

  2. Open a terminal from launcher. Clone this repo and copy the contents of downloaded repo to the main folder.

git clone https://github.com/deepratnaawale/CivitAIBatchModelDownloader.git
  1. Done!

II. Local Install

  1. Open a terminal from launcher. Clone this repo using
git clone https://github.com/deepratnaawale/CivitAIBatchModelDownloader.git
  1. Done!

Using the Downloader

Note

The Downloader will Automatically download content from every CSV in the CSVs Directory to the default download location.

  1. Goto CivitAIBatchModelDownloader directory
cd CivitAIBatchModelDownloader/
  1. Use downloader to download files from the csvs by typing the following in the terminal.
python download.py
  1. Choose the option you want to use: 1 for Runpod, and 2 for any other systems. DO NOT TYPE THE BRACKETS, just the number.

Tweaks

  1. If needed, you can edit the default paths in the download.py file.
    model_path = {
        "checkpoint": Path("models", "Stable-diffusion"),
        "lora": Path("models", "Lora"),
        "locon": Path("models", "Lora"),
        "lycoris": Path("models", "Lora"),
        "controlnet": Path("models", "ControlNet"),
        "hypernetwork": Path("models", "hypernetworks"),
        "vae": Path("models", "VAE"),
        "poses": Path("models", "Poses"),
        "other": Path("models", "Other"),
        "textualinversion": Path("Embeddings"),
        "upscaler": Path("models", "ESRGAN"),
        "aestheticgradient": Path(r"extensions\stable-diffusion-webui-aesthetic-gradients\aesthetic_embeddings"),
        "motionmodule": Path(r"extensions\sd-webui-animatediff\model")
        
    }

The format is

model_type: Path(path/to/download/model/to/)

Don't forget to add the a , if your model isn't the last one. Do not use plural in dict key, i.e. lora NOT loras, lowercase necessary!

CSV Structure

Caution

All your models should be in their respective csvs. Ex: checkpoint.csv should have all checkpoint models.

  • All your CSVs are should be the following format
Sr.no Model ID Model Name Model URL
1 4201 Realistic Vision V4.0 https://civitai.com/api/download/models/114367
2 ... ... ...
3 ... ... ...

[!HINT] You can automatically create these CSVs using my CivitAI-DownloadLink-Extractor repository.

About

Parallely batch download Civit AI models !

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages