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_sample: Allocation on device #150

Open
Zhonggao727 opened this issue Jul 30, 2024 · 3 comments
Open

Comments

@Zhonggao727
Copy link

Error occurred when executing SUPIR_sample:

Allocation on device

File "D:\ai\ComfyUI-aki\ComfyUI-aki-v1.3\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "D:\ai\ComfyUI-aki\ComfyUI-aki-v1.3\execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "D:\ai\ComfyUI-aki\ComfyUI-aki-v1.3\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "D:\ai\ComfyUI-aki\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-SUPIR\nodes_v2.py", line 473, in sample
SUPIR_model.model.control_model.to(device)
File "D:\ai\ComfyUI-aki\ComfyUI-aki-v1.3\python\lib\site-packages\torch\nn\modules\module.py", line 1173, in to
return self._apply(convert)
File "D:\ai\ComfyUI-aki\ComfyUI-aki-v1.3\python\lib\site-packages\torch\nn\modules\module.py", line 779, in _apply
module._apply(fn)
File "D:\ai\ComfyUI-aki\ComfyUI-aki-v1.3\python\lib\site-packages\torch\nn\modules\module.py", line 779, in _apply
module._apply(fn)
File "D:\ai\ComfyUI-aki\ComfyUI-aki-v1.3\python\lib\site-packages\torch\nn\modules\module.py", line 779, in _apply
module._apply(fn)
[Previous line repeated 4 more times]
File "D:\ai\ComfyUI-aki\ComfyUI-aki-v1.3\python\lib\site-packages\torch\nn\modules\module.py", line 804, in _apply
param_applied = fn(param)
File "D:\ai\ComfyUI-aki\ComfyUI-aki-v1.3\python\lib\site-packages\torch\nn\modules\module.py", line 1159, in convert
return t.to(

@LeeSin-Su
Copy link

我也遇到了这个问题,请问有解决吗

@Zhonggao727
Copy link
Author

我也遇到了这个问题,请问有解决吗

好像是显存爆了

@LeeSin-Su
Copy link

我也遇到了这个问题,请问有解决吗

好像是显存爆了

貌似是原图尺寸太大导致的爆显存,你换个小图试试,我刚刚试过没问题了

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

2 participants