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_first_stage: BFloat16 is not supported on MPS #154

Open
fusion-foo opened this issue Aug 20, 2024 · 0 comments

Comments

@fusion-foo
Copy link

just like the title say...
it look don't support running on macos ...

Error occurred when executing SUPIR_first_stage:

BFloat16 is not supported on MPS

File "/Users/richangfoo/Developer/ComfyUI/execution.py", line 316, 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 "/Users/richangfoo/Developer/ComfyUI/execution.py", line 191, 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 "/Users/richangfoo/Developer/ComfyUI/execution.py", line 168, in _map_node_over_list
process_inputs(input_dict, i)
File "/Users/richangfoo/Developer/ComfyUI/execution.py", line 157, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/richangfoo/Developer/ComfyUI/custom_nodes/ComfyUI-SUPIR/nodes_v2.py", line 335, in process
SUPIR_VAE.to(dtype).to(device)
File "/Users/richangfoo/miniconda3/lib/python3.12/site-packages/lightning_fabric/utilities/device_dtype_mixin.py", line 55, in to
return super().to(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/richangfoo/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1152, in to
return self._apply(convert)
^^^^^^^^^^^^^^^^^^^^
File "/Users/richangfoo/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 802, in _apply
module._apply(fn)
File "/Users/richangfoo/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 802, in _apply
module._apply(fn)
File "/Users/richangfoo/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 825, in _apply
param_applied = fn(param)
^^^^^^^^^
File "/Users/richangfoo/miniconda3/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1150, in convert
return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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

1 participant