Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error occurred when executing SUPIR_conditioner: #135

Open
crockrocks opened this issue Jun 6, 2024 · 3 comments
Open

Error occurred when executing SUPIR_conditioner: #135

crockrocks opened this issue Jun 6, 2024 · 3 comments

Comments

@crockrocks
Copy link

Cannot copy out of meta tensor; no data! Please use torch.nn.Module.to_empty() instead of torch.nn.Module.to() when moving module from meta to a different device.

File "/home/ubuntu/harsh/ComfyUI/execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "/home/ubuntu/harsh/ComfyUI/execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "/home/ubuntu/harsh/ComfyUI/execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "/home/ubuntu/harsh/ComfyUI/custom_nodes/ComfyUI-SUPIR/nodes_v2.py", line 571, in condition
SUPIR_model.conditioner.to(device)
File "/home/ubuntu/harsh/ComfyUI/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1173, in to
return self._apply(convert)
File "/home/ubuntu/harsh/ComfyUI/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 779, in _apply
module._apply(fn)
File "/home/ubuntu/harsh/ComfyUI/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 779, in _apply
module._apply(fn)
File "/home/ubuntu/harsh/ComfyUI/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 779, in _apply
module._apply(fn)
File "/home/ubuntu/harsh/ComfyUI/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 804, in _apply
param_applied = fn(param)
File "/home/ubuntu/harsh/ComfyUI/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1166, in convert
raise NotImplementedError(

Never encountered any such issue , what is causing this issue ?

@crockrocks crockrocks changed the title Error occurred when executing ImageResize+: 'bool' object has no attribute 'startswith' Error occurred when executing SUPIR_conditioner: Jun 6, 2024
@cvar66
Copy link

cvar66 commented Jun 9, 2024

identical issue, used to work

@cvar66
Copy link

cvar66 commented Jun 9, 2024

I found the problem, I suspect you are having the same issue. The workflow I was using still had the legacy model loader. Switched it to v2 and it works now.

@ywang957
Copy link

I found the problem, I suspect you are having the same issue. The workflow I was using still had the legacy model loader. Switched it to v2 and it works now.

works for me too, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants