ShineChen1024/MagicClothing

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

algorithmconquer opened this issue · 6 comments

When I run "python inference.py --cloth_path ${clothPath} --model_path ${checkpointPath}"
or "python gradio_generate.py --model_path ${checkpointPath} --enable_cloth_guidance", I get the same error with "images, cloth_mask_image = full_net.generate(cloth_image, cloth_mask_image, prompt, a_prompt, num_samples, n_prompt, seed, scale, cloth_guidance_scale, sample_steps, height, width) ........................
return forward_call(*args, **kwargs)
TypeError: Linear.forward() takes 2 positional arguments but 3 were given", why???

Facing the same issue

I solved by changing diffusers as 0.24.0 version, you can try.

can you send your pip freeze output? I changed that, and got a different error this time

@divya-soni-14 were you able to fix the issue?

the same issue, who can help me?

r.txt
@CrazyBuddha-Max you can try to update your packages as the r.txt, I provided.