DynamiCrafter icon indicating copy to clipboard operation
DynamiCrafter copied to clipboard

TypeError: set_module_tensor_to_device() got an unexpected keyword argument 'dtype'

Open willmurdoch opened this issue 1 year ago • 0 comments

Thanks for your awesome nodes! Getting the following error, anyone have any ideas?

LatentVisualDiffusion: Running in v-prediction mode
AE working on z of shape (1, 4, 32, 32) = 4096 dimensions.
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
vanilla
making attention of type 'vanilla' with 512 in_channels
memory-efficient-cross-attn-fusion
making attention of type 'memory-efficient-cross-attn-fusion' with 512 in_channels
memory-efficient-cross-attn-fusion
making attention of type 'memory-efficient-cross-attn-fusion' with 512 in_channels
!!! Exception during processing !!! set_module_tensor_to_device() got an unexpected keyword argument 'dtype'
Traceback (most recent call last):
  File "/notebooks/ComfyUI/execution.py", line 324, 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 "/notebooks/ComfyUI/execution.py", line 199, 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 "/notebooks/ComfyUI/execution.py", line 170, in _map_node_over_list
    process_inputs(input_dict, i)
  File "/notebooks/ComfyUI/execution.py", line 159, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/notebooks/ComfyUI/custom_nodes/ComfyUI-DynamiCrafterWrapper/nodes.py", line 134, in loadmodel
    self.model = load_model_checkpoint(self.model, model_path, precision, device)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/notebooks/ComfyUI/custom_nodes/ComfyUI-DynamiCrafterWrapper/scripts/evaluation/funcs.py", line 35, in load_model_checkpoint
    set_module_tensor_to_device(model, key, dtype=dtype, device=device, value=filtered_state_dict[key])
TypeError: set_module_tensor_to_device() got an unexpected keyword argument 'dtype'

willmurdoch avatar Dec 06 '24 21:12 willmurdoch