comfyanonymous / ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
https://www.comfy.org/
GNU General Public License v3.0
57.48k stars 6.09k forks source link

invalid style model flux1-redux-dev.safetensors #5718

Open currenttime opened 8 hours ago

currenttime commented 8 hours ago

Expected Behavior

None

Actual Behavior

flux1-redux is invalid style model

Steps to Reproduce

微信图片_20241122150030

Debug Logs

2024-11-22T08:55:39.889556 - !!! Exception during processing !!! invalid style model /ai/brx/ComfyUI/models/style_models/flux1-redux-dev.safetensors
2024-11-22T08:55:39.890883 - Traceback (most recent call last):
  File "/ai/brx/ComfyUI/execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
  File "/ai/brx/ComfyUI/execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
  File "/ai/brx/ComfyUI/execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "/ai/brx/ComfyUI/execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
  File "/ai/brx/ComfyUI/nodes.py", line 994, in load_style_model
    style_model = comfy.sd.load_style_model(style_model_path)
  File "/ai/brx/ComfyUI/comfy/sd.py", line 437, in load_style_model
    keys = model_data.keys()
Exception: invalid style model /ai/brx/ComfyUI/models/style_models/flux1-redux-dev.safetensors

2024-11-22T08:55:39.891680 - Prompt executed in 0.07 seconds
2024-11-22T08:55:40.606976 - No pending upload

Other

No response

ltdrdata commented 7 hours ago

Make sure your ComfyUI is latest version.

currenttime commented 7 hours ago

Make sure your ComfyUI is latest version.

yes, i am sure.

[ComfyUI v0.3.1-1-g2fd9c13]

currenttime commented 7 hours ago

OS posix Python Version 3.10.14 (main, May 6 2024, 19:42:50) [GCC 11.2.0] Embedded Python false Pytorch Version 2.5.1+cu121 Arguments main.py --listen 0.0.0.0 RAM Total 31.34 GB RAM Free 10.67 GB

Name cuda:0 NVIDIA GeForce RTX 3090 : cudaMallocAsync Type cuda VRAM Total 23.48 GB VRAM Free 16.34 GB Torch VRAM Total 6.75 GB Torch VRAM Free 8.96 MB

ltdrdata commented 4 hours ago

2fd9c13

In that case, you need to check whether the model file was downloaded correctly. The file may have been downloaded incorrectly or corrupted during the download process.