kijai / ComfyUI-DynamiCrafterWrapper

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

Error when executing TooncrafterDecode, "no Xformers" even though I do have it. #43

Closed FemBoxbrawl closed 1 month ago

FemBoxbrawl commented 1 month ago

I already had xformers installed, i reinstalled it too, but it gives me this error.

For info: I am running this on an rtx4050 laptop gpu 6gb, LoadDynamicCrafter model: Tooncrafter fp16 dtpe bf16 Fp8 Unet: enabled

Image size: 384x216

first generation makes it to the Tooncrafterinterpolation, but then when it goes to Tooncrafter decode it gives me this:

Screenshot 2024-06-02 135733

Error occurred when executing ToonCrafterDecode:

XFormers not available, it is required for ToonCrafter decoder. Alternatively you can use a standard VAE Decode -node instead, but this has a negative effect on the image quality though.

File "H:\AI\StableSwarmUI\dlbackend\comfy\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "H:\AI\StableSwarmUI\dlbackend\comfy\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 "H:\AI\StableSwarmUI\dlbackend\comfy\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "H:\AI\StableSwarmUI\dlbackend\comfy\ComfyUI\custom_nodes\ComfyUI-DynamiCrafterWrapper\nodes.py", line 670, in process raise Exception("XFormers not available, it is required for ToonCrafter decoder. Alternatively you can use a standard VAE Decode -node instead, but this has a negative effect on the image quality though.")

FemBoxbrawl commented 1 month ago

Okay, for apparently I had to do "pip3 install xformers" and then it worked. But i am happy i can sort of run this on 6gb vram ;D

(well, i have to restart everytime I want to do a generation, but better than nothing)