Skip to content

LoadLoraFromUrl node cannot be used #328

Description

@oto-tatsuu

Problem description

In my ComfyUI workflow, I am using the LoadLoraFromUrl node provided by
https://github.com/glifxyz/ComfyUI-GlifNodes.

When running the workflow, the node fails to download a LoRA file from HuggingFace.

Reproduction steps

  1. Clone the cog-comfy repository:

    git clone --recurse-submodules https://github.com/replicate/cog-comfyui.git
    
  2. Build and run the project following the repository instructions

  3. Install ComfyUI-GlifNodes

  4. Use the most basic FLUX workflow (no custom logic, only standard FLUX nodes)

  5. Add a LoadLoraFromUrl node from ComfyUI-GlifNodes

  6. Provide a valid HuggingFace LoRA .safetensors URL

  7. Execute the workflow

  "1": {
    "inputs": {
      "unet_name": "flux1-dev-fp8-e4m3fn.safetensors",
      "weight_dtype": "default"
    },
    "class_type": "UNETLoader",
    "_meta": { "title": "UNet加载器" }
  },
  "2": {
    "inputs": {
      "clip_name1": "clip_l.safetensors",
      "clip_name2": "t5xxl_fp8_e4m3fn.safetensors",
      "device": "default",
      "type": "flux"
    },
    "class_type": "DualCLIPLoader",
    "_meta": { "title": "双CLIP加载器" }
  },
  "3": {
    "inputs": { "vae_name": "ae.safetensors" },
    "class_type": "VAELoader",
    "_meta": { "title": "加载VAE" }
  },
  "4": {
    "inputs": {
      "clip": ["15", 1],
      "text": "The image shows a cartoon character standing in a sunflower field, the sunny character exudes childlike charm. The character wears a yellow dress with a white collar and a yellow-brown belt, yellow shoes, and a beaming smile, with a yellow hair accessory on the left side of their head. The background features a vast expanse of blooming sunflowers, creating a warm and joyful atmosphere.,Wool_felt_FLUX,Litishijie"
    },
    "class_type": "CLIPTextEncode",
    "_meta": { "title": "CLIP文本编码" }
  },
  "5": {
    "inputs": { "conditioning": ["4", 0], "guidance": 3.5 },
    "class_type": "FluxGuidance",
    "_meta": { "title": "Flux引导" }
  },
  "6": {
    "inputs": { "noise_seed": 528640789 },
    "class_type": "RandomNoise",
    "_meta": { "title": "随机噪波" }
  },
  "7": {
    "inputs": { "conditioning": ["5", 0], "model": ["15", 0] },
    "class_type": "BasicGuider",
    "_meta": { "title": "基本引导器" }
  },
  "8": {
    "inputs": { "sampler_name": "euler" },
    "class_type": "KSamplerSelect",
    "_meta": { "title": "K采样器选择" }
  },
  "9": {
    "inputs": { "pixels": ["17", 0], "vae": ["3", 0] },
    "class_type": "VAEEncode",
    "_meta": { "title": "VAE Encode" }
  },
  "10": {
    "inputs": {
      "denoise": 0.8,
      "model": ["15", 0],
      "scheduler": "simple",
      "steps": 28
    },
    "class_type": "BasicScheduler",
    "_meta": { "title": "基本调度器" }
  },
  "11": {
    "inputs": {
      "guider": ["7", 0],
      "latent_image": ["9", 0],
      "noise": ["6", 0],
      "sampler": ["8", 0],
      "sigmas": ["10", 0]
    },
    "class_type": "SamplerCustomAdvanced",
    "_meta": { "title": "自定义采样器(高级)" }
  },
  "12": {
    "inputs": { "samples": ["11", 0], "vae": ["3", 0] },
    "class_type": "VAEDecode",
    "_meta": { "title": "VAE解码" }
  },
  "13": {
    "inputs": { "filename_prefix": "ComfyUI", "images": ["12", 0] },
    "class_type": "SaveImage",
    "_meta": { "title": "保存图像" }
  },
  "14": {
    "inputs": {
      "clip": ["2", 0],
      "lora_name": "https://huggingface.co/q654517651/lib_model/resolve/main/FLUX_wool_felt_1.0.safetensors",
      "model": ["1", 0],
      "strength_clip": 1,
      "strength_model": 0.8
    },
    "class_type": "LoraLoader",
    "_meta": { "title": "LoRA加载器(仅模型)" }
  },
  "15": {
    "inputs": {
      "clip": ["14", 1],
      "lora_name": "https://huggingface.co/q654517651/lib_model/resolve/main/Flux_e_commerce_3d_v1.safetensors",
      "model": ["14", 0],
      "strength_clip": 1,
      "strength_model": 0.8
    },
    "class_type": "LoraLoader",
    "_meta": { "title": "LoRA加载器(仅模型)" }
  },
  "16": {
    "inputs": {
      "image": "https://ai-design-test.micoplatform.com/data/control_image/processed_control_491d1ff2-d75b-44e2-9ca3-b3e43eed9b33.png",
      "upload": "image"
    },
    "class_type": "LoadImage",
    "_meta": { "title": "Load Image" }
  },
  "17": {
    "inputs": {
      "image": ["16", 0],
      "megapixels": 1,
      "resolution_steps": 1,
      "upscale_method": "nearest-exact"
    },
    "class_type": "ImageScaleToTotalPixels",
    "_meta": { "title": "缩放图像(像素)" }
  }
}

Screenshot

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions