kijai / ComfyUI-DynamiCrafterWrapper

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

AttributeError: 'NoneType' object has no attribute 'to' when using DynamicCraftBatchProcessor #62

Open SSA4 opened 3 weeks ago

SSA4 commented 3 weeks ago

Hi,

everytime I try to use the DynamicCraftBatchProcessor with the "dynamicrafter_512_interp_v1_bf16.safetensors" model I get this error:

Prompt executed in 8.15 seconds got prompt VAE using dtype: torch.bfloat16 !!! Exception during processing!!! 'NoneType' object has no attribute 'to' Traceback (most recent call last): File "C:\Stable Diffusion\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Stable Diffusion\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\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 "C:\Stable Diffusion\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Stable Diffusion\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-DynamiCrafterWrapper\nodes.py", line 863, in process self.model.cond_stage_model.to(device) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'to'

Prompt executed in 1.77 seconds

That is is my Comfy workflow:

error

brad12d3 commented 3 weeks ago

I'm having the exact same issue, did you find a fix? The regular image to video workflow works great but when I decided to try the Interpolation workflow I get the same error you're getting. image

kijai commented 3 weeks ago

That particular node is currently not functional, you can use the DynamicrafterI2V -node instead, but I recommend just using Tooncrafter, it works fine for realistic images as well.