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

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

Open
SSA4 opened this issue Jun 6, 2024 · 2 comments

Comments

@SSA4
Copy link

SSA4 commented Jun 6, 2024

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
Copy link

brad12d3 commented Jun 8, 2024

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
Copy link
Owner

kijai commented Jun 8, 2024

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.

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

3 participants