https://github.com/pkpkTech/ComfyUI-TemporaryLoader
https://github.com/pkpkTech/ComfyUI-TemporaryLoader
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pkpkTech/ComfyUI-TemporaryLoader
- Owner: pkpkTech
- Created: 2024-02-02T02:04:03.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-22T22:19:44.000Z (over 1 year ago)
- Last Synced: 2024-12-19T03:04:15.965Z (about 1 year ago)
- Language: Python
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-comfyui - **ComfyUI-TemporaryLoader**
- awesome-comfyui - **ComfyUI-TemporaryLoader**
README
# ComfyUI-TemporaryLoader
This is a custom node of ComfyUI that downloads and loads models from the input URL. The model is temporarily downloaded into memory and not saved to storage.
This could be useful when trying out models or when using various models on machines with limited storage.
## Installation
1. Use `git clone https://github.com/pkpkTech/ComfyUI-TemporaryLoader` in your ComfyUI custom_nodes directory
1. Use `pip install -r requirements.txt` in ComfyUI-TemporaryLoader directory
## Nodes
The "Load Checkpoint (Temporary)" and "Load LoRA (Temporary)" nodes will be added to the temporary_loader category.
In addition to the standard Load node, the following items are added
- ckpt_url: URL of the model
- ckpt_type: With `auto`, it looks at the file extension of the downloaded file.
- download_split: Specify the number of splits for parallel downloading.
In addition to these, a "Load Multi LoRA (Temporary)" node is also added.
This is a node for loading multiple LoRAs.
It can be loaded by URL or by specifying a filename in the same way as the standard LoRA Loader.
Follow the format below
`{LoRA URL}` or `file:{LoRA file name}`
- e.g.) `https://example.com/anylora.safetensors` or `file:anylora.safetensors`
`{strength_model}:{strength_clip}:{LoRA URL} or file:{LoRA file name}`
- e.g.) `0.4:1.0:https://example.com/anylora.safetensors`
`{strength_model}:{strength_clip}:{ckpt_type}:{LoRA URL} or file:{LoRA file name}`
- e.g.) `0.4:1.0:other:https://example.com/anylora.pt`
LoRAs for which strength_model, strength_clip and ckpt_type are not specified in text will reflect the node's set values.
You can also specify only a part.
- e.g.) `0.1::https://example.com/anylora.safetensors` (strength_model is 0.1, strength_clip and ckpt_type follow node settings).
To avoid confusion as to what LoRA it is, you can also write a comment.
Comments should start the line with `#`.
e.g.)
```
#thatLoRA
https://example.com/anylora.safetensors
#The LoRA of the super landscape
0.3::https://example.com/superlora.safetensors
#The usual LoRA
0.5:0.8:file:favorite_lora_v6.safetensors
```