kijai / ComfyUI-DynamiCrafterWrapper

Wrapper to use DynamiCrafter models in ComfyUI
Other
489 stars 15 forks source link

DynamiCrafterI2V went wrong "Input type (float) and bias type (c10::BFloat16) should be the same" #52

Open yorkane opened 4 weeks ago

yorkane commented 4 weeks ago

Using latest commit 6d2b666b7fc20c9fe3389d9b889091f4274e3961 Error occurred when executing DynamiCrafterI2V:

Input type (float) and bias type (c10::BFloat16) should be the same

File "/home/aigc/ComfyUI/execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "/home/aigc/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/aigc/ComfyUI/custom_nodes/ComfyUI-0246/utils.py", line 381, in new_func res_value = old_func(final_args, kwargs) File "/home/aigc/ComfyUI/execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) File "/home/aigc/ComfyUI/custom_nodes/ComfyUI-DynamiCrafterWrapper/nodes.py", line 372, in process z = get_latent_z(self.model, image.unsqueeze(2)) #bc,1,hw File "/home/aigc/ComfyUI/custom_nodes/ComfyUI-DynamiCrafterWrapper/scripts/evaluation/funcs.py", line 66, in get_latent_z z = model.encode_first_stage(x) File "/home/aigc/ComfyUI/venv/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context return func(args, kwargs) File "/home/aigc/ComfyUI/custom_nodes/ComfyUI-DynamiCrafterWrapper/lvdm/models/ddpm3d.py", line 504, in encode_first_stage frame_batch = self.first_stage_model.encode(x[index:index+1,:,:,:]) File "/home/aigc/ComfyUI/custom_nodes/ComfyUI-DynamiCrafterWrapper/lvdm/models/autoencoder_old.py", line 99, in encode h = self.encoder(x) File "/home/aigc/ComfyUI/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl return self._call_impl(*args, *kwargs) File "/home/aigc/ComfyUI/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl return forward_call(args, kwargs) File "/home/aigc/ComfyUI/custom_nodes/ComfyUI-DynamiCrafterWrapper/lvdm/modules/networks/ae_modules.py", line 436, in forward hs = [self.conv_in(x)] File "/home/aigc/ComfyUI/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl return self._call_impl(*args, *kwargs) File "/home/aigc/ComfyUI/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl return forward_call(args, **kwargs) File "/home/aigc/ComfyUI/venv/lib/python3.10/site-packages/torch/nn/modules/conv.py", line 460, in forward return self._conv_forward(input, self.weight, self.bias) File "/home/aigc/ComfyUI/venv/lib/python3.10/site-packages/torch/nn/modules/conv.py", line 456, in _conv_forward return F.conv2d(input, weight, bias, self.stride, QQ截图20240604151605