frankchieng / ComfyUI_MagicClothing

unofficial implementation of Comfyui magic clothing
Other
499 stars 42 forks source link

Linear.forward() takes 2 positional arguments but 3 were given #31

Open HSJDZNM opened 5 months ago

HSJDZNM commented 5 months ago

屏幕截图 2024-04-28 161130 屏幕截图 2024-04-28 161143

ubuntu anaconda python3.11

xpluscal commented 5 months ago

same issue

xpluscal commented 5 months ago

This seems to happen even on the basic workflow. See attached configuration:

Screenshot 2024-05-02 at 14 00 35
frankchieng commented 5 months ago

just following exactly the library version in requirements.txt,especially the pytorch version,i've not tested the other one

mishirokn commented 4 months ago

can someone tell me how to fix it ? thanks

kkde73 commented 4 months ago

To ensure compatibility with other nodes, I modified the requirements file to include diffusers==0.27.2 and accelerate>=0.29.2. However, this possibly resulted in issues similar to those described in the main post.

Error occurred when executing MagicClothing_Generate:

Linear.forward() takes 2 positional arguments but 3 were given

Is there a way to resolve this?

frankchieng commented 4 months ago

Double check numpy,be exactly with the same version in requirements.txt

kkde73 commented 4 months ago

Double check numpy,be exactly with the same version in requirements.txt

I have checked the numpy version, and it is Version: 1.25.1, which matches the version specified in the requirements.txt file.

And my PyTorch version matches the requirement in requirements.txt, specifically 2.1.1+cu118.

fredzhang2008 commented 6 days ago

相同的问题,如何解决这个问题