banodoco / Steerable-Motion

A ComfyUI node for driving videos using batches of images.
Other
763 stars 41 forks source link

Error: AutocastCPU only support Bfloat16 as the autocast_cpu_dtype #35

Closed maximseshuk closed 5 months ago

maximseshuk commented 5 months ago

CleanShot 2024-01-31 at 5  35 19@2x

I am testing this on a MacBook Pro, M2.

Error occurred when executing BatchCreativeInterpolation:

Currently, AutocastCPU only support Bfloat16 as the autocast_cpu_dtype

File "/Users/maxim/Projects/ComfyUI/execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "/Users/maxim/Projects/ComfyUI/execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "/Users/maxim/Projects/ComfyUI/execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "/Users/maxim/Projects/ComfyUI/custom_nodes/steerable-motion/SteerableMotion.py", line 429, in combined_function
embed, = ipadapter_encoder.preprocess(clip_vision, prepped_image, True, 0.0, 1.0)
File "/Users/maxim/Projects/ComfyUI/custom_nodes/steerable-motion/imports/IPAdapterPlus.py", line 718, in preprocess
clip_embed_zeroed = zeroed_hidden_states(clip_vision, image.shape[0])
File "/Users/maxim/Projects/ComfyUI/custom_nodes/steerable-motion/imports/IPAdapterPlus.py", line 169, in zeroed_hidden_states
with precision_scope(comfy.model_management.get_autocast_device(clip_vision.load_device), torch.float32):
File "/Users/maxim/Projects/ComfyUI/venv/lib/python3.10/site-packages/torch/amp/autocast_mode.py", line 329, in __enter__
torch.set_autocast_cpu_dtype(self.fast_dtype) # type: ignore[arg-type]

ComfyUI workflow.json

peteromallet commented 5 months ago

I think this is probably due to IP-Adapter in Comfy not supporting MacBook's unfortunately

maximseshuk commented 5 months ago

I think this is probably due to IP-Adapter in Comfy not supporting MacBook's unfortunately

No, the same problem was discussed in the IP-Adapter repo and the developer solved it with recent updates.

https://github.com/cubiq/ComfyUI_IPAdapter_plus/issues/108#issuecomment-1837101535

maximseshuk commented 5 months ago

@peteromallet

peteromallet commented 5 months ago

Ah, i haven't implemented the latest version yet but will soon and will follow up here once I do