- Click to enter the required model storage location in filebrowser, such as ComfyUI/models/checkpoints
- Click the three dots in the upper right corner, click toggle shell to open the command line
- Confirm the current directory through pwd, ls
- Download the corresponding model through the wget command and specify the name
- Get the model connection
- civitai.com, make sure the link has the type=xxx&format=xxx in it. If it doesn't, then check if you are copying the right link (the one in file section with button "Download").
- Huggingface, RIGHT click on the download button and select “Copy Link Address”
- check `wget-log` for download progress
- Once the download is done, make sure you refresh the browser to see the new models in ComfyUI interface.
Sometime it is couple of cells down,
b. Use wget to download the model
This is the basic usage. For more information, please refer to https://www.gnu.org/software/wget/manual/.
MAKE SURE YOU READ ALL NOTE #1, #2, #3 before you run the following wget command.
# make sure THE_FILE_NAME_YOU_WANT_TO_SAVE only contains alphanumerical, dot, underscore and hyphen
# make sure you don't have space in the THE_FILE_NAME_YOU_WANT_TO_SAVE
wget -b "PUT_LINK_HERE" -O THE_FILE_NAME_YOU_WANT_TO_SAVE
# For example
wget -b "https://civitai.com/api/download/models/344398?type=Model&format=SafeTensor&size=pruned&fp=fp16" -O photonLCM_v10.safetensors
Note #1
Make sure to use -b with wget to run it in the background, otherwise there may be timeout issues.
Note #2
For Civitai models, please make sure your link looks like this, double quoted, "https://civitai.com/api/download/models/261911?type=Model&format=SafeTensor", make sure it has the type=Model&format=SafeTensor in it. If it doesn't, then check if you are copying the right address (the one in file section with button "Download")
Note #3
For certain models/loras, Civitai will require an token in the download link. You will notice an error in the wget-log file like “HTTP request sent, awaiting response... 401 Unauthorized Username/Password Authentication Failed.”. Please follow the Civitai token guide to get an API token and run the following command one more time,
# replace the following xxxx with your token
wget -b "PUT_LINK_HERE&token=xxxx" -O THE_FILE_NAME_YOU_WANT_TO_SAVE
# for example, replace the "xxxx" with your token
wget -b "https://civitai.com/api/download/models/344398?type=Model&format=SafeTensor&size=pruned&fp=fp16&token=xxxx" -O photonLCM_v10.safetensors
Example
civitai.com
huggingface
Enter the directory where you downloaded the model and look for `wget-log` to check the progress (double click on it to open, command + down_arrow to go to the bottom of the file).
Example