Gourieff / comfyui-reactor-node

Fast and Simple Face Swap Extension Node for ComfyUI
GNU General Public License v3.0
1.4k stars 133 forks source link

AttributeError: 'NoneType' object has no attribute 'reshape' #398

Open vrgamegirl19 opened 3 weeks ago

vrgamegirl19 commented 3 weeks ago

First, confirm

What happened?

when i try and run the fast face swap it goes through the process and finishes but the image is still the main input image. It does not swap the face. see attached snippet with settings. image

Edit*** when i change the detect gender both to NO, i get this error: (I have tried many faces and none work.) image

Steps to reproduce the problem

workflowMyFaceSwap.json

Sysinfo

windows 11, rtx 3080ti

Relevant console log

no logs

Additional information

No response

gamaraala666 commented 3 weeks ago

Hi first of all, in my personal experience, the gender detection is notoriously fickle, or maybe I'm also missing something. But I just downloaded your flow changed both to no, and it works as it should. To my eyes that last line of the error log indicates somethings wrong with insightface. So, till someone more knowledgeable comes along, I would advice you to look into your insightface installation. If you already had a working build and this just cropped up all of a sudden, probably a recent update got you. in that case roll back or wait for the next update.

vrgamegirl19 commented 3 weeks ago

or the next update.

I have never been able to get it to work. Today I even got a new hard drive, did a fresh install of comfyUI and it still won't work!! I have tried reinstalling insight face over and over again and still can't get it working. gah.

gamaraala666 commented 3 weeks ago

Have you tried using the prebuilt wheels? https://github.com/Gourieff/comfyui-reactor-node?tab=readme-ov-file#troubleshooting

embasy commented 2 weeks ago

Have you tried using the prebuilt wheels? https://github.com/Gourieff/comfyui-reactor-node?tab=readme-ov-file#troubleshooting

When it says to place the prebuilt wheel into the ComfyUI root folder, which address exactly is it referring to? Just want to make sure I'm putting in the right directory. (Newbie here)

gamaraala666 commented 1 week ago

If you are using the portable version, root folder

This is the root folder. Heres a simplified version of the guide for your use case. (Again, I'm assuming you have the portable version)

  1. Right click in the root folder and open a terminal, or navigate to the root folder using the terminal. Check your python version from here using... python_embeded\python.exe -V

  2. Download the appropriate wheel. Then copy it into the root folder.

  3. Upgrade PIP using... python_embeded\python.exe -m pip install -U pip

  4. Install insightface using the correct command for your python version... python_embeded\python.exe -m pip install insightface-0.7.3-cp310-cp310-win_amd64.whl (for python 3.10) or python_embeded\python.exe -m pip install insightface-0.7.3-cp311-cp311-win_amd64.whl (for python 3.11) or python_embeded\python.exe -m pip install insightface-0.7.3-cp312-cp312-win_amd64.whl (for python 3.12).

vrgamegirl19 commented 1 week ago

Have you tried using the prebuilt wheels? https://github.com/Gourieff/comfyui-reactor-node?tab=readme-ov-file#troubleshooting

Yes. I have tried this so many times. I even did a fresh install and tried it all over again. Still won't work.

vrgamegirl19 commented 1 week ago

If you are using the portable version, root folder

This is the root folder. Heres a simplified version of the guide for your use case. (Again, I'm assuming you have the portable version)

  1. Right click in the root folder and open a terminal, or navigate to the root folder using the terminal. Check your python version from here using... python_embeded\python.exe -V
  2. Download the appropriate wheel. Then copy it into the root folder.
  3. Upgrade PIP using... python_embeded\python.exe -m pip install -U pip
  4. Install insightface using the correct command for your python version... python_embeded\python.exe -m pip install insightface-0.7.3-cp310-cp310-win_amd64.whl (for python 3.10) or python_embeded\python.exe -m pip install insightface-0.7.3-cp311-cp311-win_amd64.whl (for python 3.11) or python_embeded\python.exe -m pip install insightface-0.7.3-cp312-cp312-win_amd64.whl (for python 3.12).

I have tried these exact steps many times. Even on a fresh install of comfy on a brand new hard drive. I keep getting the "reshape" error no matter what. I have friends that got it working and walked me through how they did it and It still won't work for me. I'm guessing there is something in the background that might be causing insight face to not work correctly but I have no idea what it is.

Gourieff commented 1 day ago

Please show python_embeded\python.exe -m pip list