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

[PSA] New ComfyUI commit changed ModelPatcher init function (AttributeError: 'MotionModelPatcher' object has no attribute 'current_device') #439

Open
Kosinkadink opened this issue Aug 6, 2024 · 11 comments · Fixed by #440
Labels
PSA Public service announcement - info update your comfy/nodes Updating will fix the issue

Comments

@Kosinkadink
Copy link
Owner

Kosinkadink commented Aug 6, 2024

I'll work on a patch shortly to resolve it.

image

The commit from ComfyUI that introduced the change: comfyanonymous/ComfyUI@b334605

@Kosinkadink Kosinkadink added bug Something isn't working PSA Public service announcement - info labels Aug 6, 2024
@BaNZaY777666
Copy link

Same problem

@Kosinkadink Kosinkadink pinned this issue Aug 6, 2024
@dreamlogic-X
Copy link

Same issue on my side. Thanks so much Kosinkadink!

--

Error occurred when executing ADE_ApplyAnimateDiffModelSimple: 'MotionModelPatcher' object has no attribute 'current_device' File "/notebooks/ComfyUI/execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/notebooks/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 "/notebooks/ComfyUI/execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/notebooks/ComfyUI/custom_nodes/ComfyUI-AnimateDiff-Evolved/animatediff/nodes_gen2.py", line 156, in apply_motion_model return ApplyAnimateDiffModelNode.apply_motion_model(self, motion_model, motion_lora=motion_lora, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/notebooks/ComfyUI/custom_nodes/ComfyUI-AnimateDiff-Evolved/animatediff/nodes_gen2.py", line 113, in apply_motion_model motion_model = motion_model.clone() ^^^^^^^^^^^^^^^^^^^^ File "/notebooks/ComfyUI/custom_nodes/ComfyUI-AnimateDiff-Evolved/animatediff/model_injection.py", line 1019, in clone n = MotionModelPatcher(self.model, self.load_device, self.offload_device, self.size, self.current_device, weight_inplace_update=self.weight_inplace_update) ^^^^^^^^^^^^^^^^^^^

@Kosinkadink Kosinkadink added update your comfy/nodes Updating will fix the issue and removed bug Something isn't working labels Aug 6, 2024
@Kosinkadink
Copy link
Owner Author

Fix is now live for both AnimateDiff-Evolved and Advanced-ControlNet (SparseCtrl).

@Kosinkadink Kosinkadink linked a pull request Aug 6, 2024 that will close this issue
@BaNZaY777666
Copy link

Fix is now live for both AnimateDiff-Evolved and Advanced-ControlNet (SparseCtrl).

Kosinkadink u are the best))) everything is working fine

@Gamebropro
Copy link

Gamebropro commented Aug 7, 2024

Uploading Screenshot 2024-08-14 022045.png…
!!! Exception during processing!!! Promotion for Float8 Types is not supported, attempted to promote Float and Float8_e5m2
Traceback (most recent call last):
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\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 "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1382, in sample
return common_ksampler(model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=denoise)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1352, in common_ksampler
samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack\modules\impact\sample_error_enhancer.py", line 22, in informative_sample
raise e
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack\modules\impact\sample_error_enhancer.py", line 9, in informative_sample
return original_sample(*args, **kwargs) # This code helps interpret error messages that occur within exceptions but does not have any impact on other operations.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\sampling.py", line 525, in motion_sample
latents = orig_comfy_sample(model, noise, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\sampling.py", line 92, in acn_sample
return orig_comfy_sample(model, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\utils.py", line 112, in uncond_multiplier_check_cn_sample
return orig_comfy_sample(model, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\comfy\sample.py", line 43, in sample
samples = sampler.sample(noise, positive, negative, cfg=cfg, latent_image=latent_image, start_step=start_step, last_step=last_step, force_full_denoise=force_full_denoise, denoise_mask=noise_mask, sigmas=sigmas, callback=callback, disable_pbar=disable_pbar, seed=seed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 829, in sample
return sample(self.model, noise, positive, negative, cfg, self.device, sampler, sigmas, self.model_options, latent_image=latent_image, denoise_mask=denoise_mask, callback=callback, disable_pbar=disable_pbar, seed=seed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 729, in sample
return cfg_guider.sample(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 716, in sample
output = self.inner_sample(noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 695, in inner_sample
samples = sampler.sample(self, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 600, in sample
samples = self.sampler_function(model_k, noise, sigmas, extra_args=extra_args, callback=k_callback, disable=disable_pbar, **self.extra_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\comfy\k_diffusion\sampling.py", line 771, in sample_ddpm
return generic_step_sampler(model, x, sigmas, extra_args, callback, disable, noise_sampler, DDPMSampler_step)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\comfy\k_diffusion\sampling.py", line 760, in generic_step_sampler
denoised = model(x, sigmas[i] * s_in, **extra_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 299, in call
out = self.inner_model(x, sigma, model_options=model_options, seed=seed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 682, in call
return self.predict_noise(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 685, in predict_noise
return sampling_function(self.inner_model, x, timestep, self.conds.get("negative", None), self.conds.get("positive", None), self.cfg, model_options=model_options, seed=seed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\sampling.py", line 630, in evolved_sampling_function
cond_pred, uncond_pred = calc_cond_uncond_batch_wrapper(model, [cond, uncond_], x, timestep, model_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\sampling.py", line 909, in calc_cond_uncond_batch_wrapper
return comfy.samplers.calc_cond_batch(model, conds, x_in, timestep, model_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 228, in calc_cond_batch
output = model.apply_model(input_x, timestep_, **c).chunk(batch_chunks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\utils.py", line 64, in apply_model_uncond_cleanup_wrapper
return orig_apply_model(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\comfy\model_base.py", line 124, in apply_model
model_output = self.diffusion_model(xc, t, context=context, control=control, transformer_options=transformer_options, **extra_conds).float()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\SeargeSDXL\modules\custom_sdxl_ksampler.py", line 71, in new_unet_forward
x0 = old_unet_forward(self, x, timesteps, context, y, control, transformer_options, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\FreeU_Advanced\nodes.py", line 176, in __temp__forward
h = forward_timestep_embed(module, h, emb, context, transformer_options, time_context=time_context, num_video_frames=num_video_frames, image_only_indicator=image_only_indicator)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\comfy\ldm\modules\diffusionmodules\openaimodel.py", line 50, in forward_timestep_embed
x = layer(x)
^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\motion_module_ad.py", line 751, in forward
return self.temporal_transformer(input_tensor, encoder_hidden_states, attention_mask, self.view_options, mm_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\motion_module_ad.py", line 969, in forward
hidden_states = block(
^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\motion_module_ad.py", line 1080, in forward
attention_block(
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\motion_module_ad.py", line 1263, in forward
hidden_states = self.pos_encoder(hidden_states).to(hidden_states.dtype)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD WEB UI\api\NEW COMFY\ComfyUI_windows_portable_nvidia_cu124_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\motion_module_ad.py", line 1190, in forward
x = x + self.pe[:, : x.size(1)]
~~^~~~~~~~~~~~~~~~~~~~~~~~~
RuntimeError: Promotion for Float8 Types is not supported, attempted to promote Float and Float8_e5m2

Prompt executed in 468.51 seconds

how to fix? ALL UPDATE

@Kosinkadink
Copy link
Owner Author

@Gamebropro create a new issue report, as it is not related to what this PSA is about, thank you for the report though

@Lanzrong
Copy link

Lanzrong commented Aug 8, 2024

[AnimateDiffEvo] - INFO - Loading motion module mm_sd_v15_v2.ckpt
Model doesn't have a device attribute.
!!! Exception during processing!!! 'ModelPatcher' object has no attribute 'current_device'
Traceback (most recent call last):
File "D:\PR\ComfyUI-aki-v1.3\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "D:\PR\ComfyUI-aki-v1.3\execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "D:\PR\ComfyUI-aki-v1.3\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "D:\PR\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\nodes_gen1.py", line 160, in load_mm_and_inject_params
model = ModelPatcherAndInjector(model)
File "D:\PR\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\model_injection.py", line 29, in init
super().init(m.model, m.load_device, m.offload_device, m.size, m.current_device, weight_inplace_update=m.weight_inplace_update)
AttributeError: 'ModelPatcher' object has no attribute 'current_device'


Have updated to the latest version, but still wrong?

@Kosinkadink
Copy link
Owner Author

@Lanzrong looking at your error call stack, your AnimateDiff-Evolved is outdated by a few months (your version is likely from before even May). Update AnimateDiff-Evolved and your error will go away.

@Lanzrong
Copy link

Lanzrong commented Aug 9, 2024

Problem solved. Thank you very much

@Lanzrong looking at your error call stack, your AnimateDiff-Evolved is outdated by a few months (your version is likely from before even May). Update AnimateDiff-Evolved and your error will go away.

@zboing
Copy link

zboing commented Aug 13, 2024

Problem solved only by deleting AnimateDiff-Evolved folder and installed it as new. The update procedure didn't worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PSA Public service announcement - info update your comfy/nodes Updating will fix the issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants
@Kosinkadink @zboing @BaNZaY777666 @dreamlogic-X @Gamebropro @Lanzrong and others