This script reads a list of file urls from the model_urls.txt file; then downloads them if they don't exist or are a different size. The default file has this list baked in if you just want to use a single script file.
- Place
dl_default_models.py
ORdl_models.py
andmodel_urls.txt
files into the controlnet models directory - From your a1111 base directory this is often found in [base_directory]/extensions/sd-webui-controlnet/models
- Run the script from the models directory with
python dl_default_models.py
orpython dl_models.py
This script requires the tqdm and requests packages
You can install it with pip install tqdm requests
. You may want to use your venv if needed as this might already contain some of these packages.