ComfyUI-TemporaryLoader

ComfyUI-TemporaryLoader
★ 2

临时加载模型下载内存加载节省磁盘空间
从URL下载并在内存中临时加载模型,不写入磁盘,便于试用或在存储受限机器上使用,但会增加内存占用。
💡 在存储受限或试用模型时临时加载远程模型进行测试。
🍴 3 Forks💻 Python🔄 2024-05-22
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/2df45d172dc1
📦 requirements.txt
requests
📄 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

  • Use git clone https://github.com/pkpkTech/ComfyUI-TemporaryLoader in your ComfyUI custom_nodes directory
  • 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