Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Got it fixed and it's working now, I was correct and it was due to not having InsightFace installed which I had to do manually. What got it to work for me:

1. Using the terminal (I used VSCode Terminal) find the folder path where ComfyUI stores the virtual environment (.venv) folder, it will be the same folder that has the models. output, custom_nodes folder. 

2. Start the virtual environment. Should be like ./venv/Scripts/Activate

3. run the command "python -m pip install * " where the * is "insightface" then "onnxruntime" "opencv-python" and "numpy"

4. verify it installed correctly with the command "python -c "import insightface; print('InsightFace installed')""

Next time you open ComfyUI and check it should show no errors with the ComfyUI_FaceAnalysis node and it should work making portraits in game. This is what worked for me and I could of forgotten a step or two, ChatGPT was great in troubleshooting some stuff.

This was on a Windows 11 desktop for the platform.

Fantastic mod though it's very well implemented!

I'm glad you got it working, but manually installing packages into Comfy's venv is not ideal.

I'm looking into other options for face detection and cropping so people will potentially have alternate options.

I managed to get past the previous error, but I still get the same as Farquisian.

I think I'll wait for the mod next version to try again. It's taking to much brain power after a day of work. ^^

Thanks for the great mod. :-)