Can't get Hyper-SDXL-Nsteps-lora-workflow.json working

#9
by carbonox-infernox - opened

Trying to run this as-is, but I get this error:

Prompt outputs failed validation
LoraLoaderModelOnly:

  • Value not in list: lora_name: 'Hyper-SDXL-2steps-lora.safetensors' not in []

I can't select any lora_name; it's stuck on undefined. The file Hyper-SDXL-2steps-lora.safetensors is in ComfyUI\models\checkpoints, so I don't understand why it's not found. I don't know if this is related, but I tried putting in the custom node, but I get errors from the ComfyUI terminal:

Traceback (most recent call last):
  File "A:\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1864, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "A:\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_ComfyUI-HyperSDXL1StepUnetScheduler___init__.py", line 1, in <module>
    from .node import NODE_CLASS_MAPPINGS
ImportError: attempted relative import with no known parent package

Cannot import A:\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_ComfyUI-HyperSDXL1StepUnetScheduler___init__.py module for custom nodes: attempted relative import with no known parent package

Import times for custom nodes:
   0.0 seconds: A:\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_ComfyUI-HyperSDXL1StepUnetScheduler_node.py
   0.0 seconds: A:\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py
   0.0 seconds (IMPORT FAILED): A:\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_ComfyUI-HyperSDXL1StepUnetScheduler___init__.py
ByteDance org

Hi, @carbonox-infernox
For LoRA weights, you should put them under ComfyUI\models\loras.
Good luck πŸ‘

renyuxi changed discussion status to closed

Sign up or log in to comment