How to use Custom URL box?

NEW!

CUSTOM EXTENSION IS NOW SUPPORTED

Caution!

MEGA.nz is NOT supported. Only direct links, drive links, or drive paths is.

TLDR; Put any models, embeddings, configs, hypernetworks links and separate it with comma

This url box have a very powerful magic, you can put as many URLs as you wanted inside there as long they're separated by a comma, this url must be a direct link to the file that you want to download. The magic comes from how its handle the files, it will magically filter your downloaded files to the correct place without manually moving it. This means if you download a model, it will put it to model folder and so on.

To get the CORRECT links, right click on download button, then copy link address. (except google drive links)


Supported links:

  • Civitai links
    (example: https://civitai.com/api/download/models/89927 )
  • Huggingface links
    (example: https://huggingface.co/Linaqruf/anything-v3.0/resolve/main/Anything-V3.0-pruned.safetensors )
  • Google drive links
    (example: https://drive.google.com/file/d/11gXu_jm3oRDmClhBYQJVhHzuQeVjuyeI/view?usp=share_link)
  • Google drive ID
    (example: 11gXu_jm3oRDmClhBYQJVhHzuQeVjuyeI)
  • Google drive path
    For google drive path: /content/gdrive/MyDrive/<the rest here, type it in the box>
    For file, type the path. For folders, make sure to end it with /.. If it's in root folder, start it with ./
    (example: Nai/. or ./model.ckpt or myEmbeddings/bad-artists.pt)
  • Any direct links
    (example: https://example.com/embedding.pt)

Supported files type:

  • .yaml and .yml for config
  • .safetensors and .ckpt for models
  • .vae.pt and .ckpt for vae
  • .pt for hypernetworks and embeddings and lora

A full example:

https://huggingface.co/Linaqruf/anything-v3.0/resolve/main/Anything-V3.0-pruned.safetensors, https://huggingface.co/Linaqruf/anything-v3.0/resolve/main/Anything-V3.0.vae.pt, https://drive.google.com/file/d/11gXu_jm3oRDmClhBYQJVhHzuQeVjuyeI/view?usp=share_link, 11gXu_jm3oRDmClhBYQJVhHzuQeVjuyeI, myEmbeddings/bad-artists.pt, https://example.com/embedding.pt

From the example above, it will automatically do:

  • Download Anything model and put it to models folder
  • Download Anything Vae and put it to VAE folder
  • Download Embedding from google drive links and put it to embedding folder
  • Download another Embedding from google drive ID and put it to embedding folder
  • Move the file from /content/gdrive/MyDrive/myEmbeddings/bad-artists.pt and put it to embedding folder
  • Download another Embedding from example.com and put it to embedding folder

it's just example, not real urls


Manual Prefixes (NEW)

How to use?
Example, you want to download a LyCORIS but it got detected as lora instead
You use this in custom_urls : lycoris:https://links.com/lycoris.safetensors

Currently supported prefixes:

  • config: : Replaces config.json with custom file provided in url
  • ui-config: : Replaces ui-config.json with custom file provided in url
  • styles: : Replaces styles.csv with custom file provided in url
  • lora: : Download to lora folder
  • hypernetwork: : Download to hypernetwork folder
  • locon: : Same as lora
  • lycoris: : Download to lycoris folder
  • model: : Download to model folder
  • vae: : Download to vae folder
  • control: : Download to controlnet models folder
  • clone: : Clone the repo, then do an auto-sort
  • gfpgan: : Download to GFPGAN folder
  • ersgan: : Download to ERSGAN folder
  • swinr: : Download to SWINR folder
  • ldsr: : Download to LDSR folder
  • repo: : same as clone
  • embedding: : Download to repo folder
  • sam: : Download to sam model folder (requested by ZeroDuri#7380)
Edit
Pub: 18 Dec 2022 02:48 UTC
Edit: 10 Jun 2023 15:56 UTC
Views: 14762