Instructions to use Claquasse/Anima-Control-Pose with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Claquasse/Anima-Control-Pose with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Claquasse/Anima-Control-Pose", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
preview2 workflow have size of tensor issue
[ERROR] !!! Exception during processing !!! The size of tensor a (74) must match the size of tensor b (48) at non-singleton dimension 3
[ERROR] Traceback (most recent call last):
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\execution.py", line 548, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\execution.py", line 353, in get_output_data
return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Lora-Manager\py\metadata_collector\metadata_hook.py", line 177, in async_map_node_over_list_with_metadata
results = await original_map_node_over_list(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<2 lines>...
)
^
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\execution.py", line 327, in _async_map_node_over_list
await process_inputs(input_dict, i)
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\execution.py", line 315, in process_inputs
result = f(**inputs)
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1633, in sample
return common_ksampler(model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=denoise)
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1597, in common_ksampler
samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image,
denoise=denoise, disable_noise=disable_noise, start_step=start_step, last_step=last_step,
force_full_denoise=force_full_denoise, noise_mask=noise_mask, callback=callback, disable_pbar=disable_pbar, seed=seed)
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\sample.py", line 82, 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 "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 1463, 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 "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 1353, in sample
return cfg_guider.sample(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 1335, in sample
output = executor.execute(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed, latent_shapes=latent_shapes)
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\patcher_extension.py", line 113, in execute
return self.original(*args, **kwargs)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 1262, in outer_sample
output = self.inner_sample(noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed, latent_shapes=latent_shapes)
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 1237, in inner_sample
samples = executor.execute(self, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar)
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\patcher_extension.py", line 113, in execute
return self.original(*args, **kwargs)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 1005, in sample
samples = self.sampler_function(model_k, noise, sigmas, extra_args=extra_args, callback=k_callback, disable=disable_pbar, **self.extra_options)
File "L:\Comfyui_Portable\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils_contextlib.py", line 124, in decorate_context
return func(*args, **kwargs)
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\k_diffusion\sampling.py", line 1381, in sample_euler_cfg_pp
return sample_euler_ancestral_cfg_pp(model, x, sigmas, extra_args=extra_args, callback=callback, disable=disable, eta=0.0, s_noise=0.0, noise_sampler=None)
File "L:\Comfyui_Portable\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils_contextlib.py", line 124, in decorate_context
return func(*args, **kwargs)
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\k_diffusion\sampling.py", line 1356, in sample_euler_ancestral_cfg_pp
denoised = model(x, sigmas[i] * s_in, **extra_args)
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 640, in call
out = self.inner_model(x, sigma, model_options=model_options, seed=seed)
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 1208, in call
return self.outer_predict_noise(*args, **kwargs)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 1215, in outer_predict_noise
).execute(x, timestep, model_options, seed)
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\patcher_extension.py", line 113, in execute
return self.original(*args, **kwargs)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 1218, 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 "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 620, in sampling_function
out = calc_cond_batch(model, conds, x, timestep, model_options)
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 211, in calc_cond_batch
return _calc_cond_batch_outer(model, conds, x_in, timestep, model_options)
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 219, in _calc_cond_batch_outer
return executor.execute(model, conds, x_in, timestep, model_options)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\patcher_extension.py", line 113, in execute
return self.original(*args, **kwargs)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 335, in calc_cond_batch
output = model.apply_model(input_x, timestep, **c).chunk(batch_chunks)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\model_base.py", line 210, in apply_model
return comfy.patcher_extension.WrapperExecutor.new_class_executor(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...<2 lines>...
comfy.patcher_extension.get_all_wrappers(comfy.patcher_extension.WrappersMP.APPLY_MODEL, transformer_options)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
).execute(x, t, c_concat, c_crossattn, control, transformer_options, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\patcher_extension.py", line 113, in execute
return self.original(*args, **kwargs)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\model_base.py", line 254, in _apply_model
model_output = self.diffusion_model(xc, t, context=context, control=control, transformer_options=transformer_options, **extra_conds)
File "L:\Comfyui_Portable\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1778, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "L:\Comfyui_Portable\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1789, in call_impl
return forward_call(*args, **kwargs)
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\ldm\anima\model.py", line 214, in forward
return super().forward(x, timesteps, context, **kwargs)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\ldm\cosmos\predict2.py", line 853, in forward
return comfy.patcher_extension.WrapperExecutor.new_class_executor(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...<2 lines>...
comfy.patcher_extension.get_all_wrappers(comfy.patcher_extension.WrappersMP.DIFFUSION_MODEL, kwargs.get("transformer_options", {}))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
).execute(x, timesteps, context, fps, padding_mask, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\patcher_extension.py", line 114, in execute
return self.wrappers[self.idx](self, *args, **kwargs)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\custom_nodes\anima_control_lora_init.py", line 63, in wrapper
return executor(*args, **kwargs)
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\patcher_extension.py", line 106, in call
return new_executor.execute(*args, **kwargs)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\patcher_extension.py", line 113, in execute
return self.original(*args, **kwargs)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\ldm\cosmos\predict2.py", line 879, in _forward
x_B_T_H_W_D, rope_emb_L_1_1_D, extra_pos_emb_B_T_H_W_D_or_T_H_W_B_D = self.prepare_embedded_sequence(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
x_B_C_T_H_W,
^^^^^^^^^^^^
fps=fps,
^^^^^^^^
padding_mask=padding_mask,
^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\comfy\ldm\cosmos\predict2.py", line 822, in prepare_embedded_sequence
x_B_T_H_W_D = self.x_embedder(x_B_C_T_H_W)
File "L:\Comfyui_Portable\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1778, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "L:\Comfyui_Portable\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1884, in call_impl
return inner()
File "L:\Comfyui_Portable\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1845, in inner
hook_result = hook(self, args, result)
File "L:\Comfyui_Portable\ComfyUI_windows_portable\ComfyUI\custom_nodes\anima_control_lora_init.py", line 59, in add_control
return output + control_tokens.to(output.device, output.dtype)
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RuntimeError: The size of tensor a (74) must match the size of tensor b (48) at non-singleton dimension 3