Open zhoobin021 opened 10 months ago
do a "pip install -r requirements.txt" in the CustomUI-PhotoMaker" folder
This will get you your missing nodes
do a "pip install -r requirements.txt" in the CustomUI-PhotoMaker" folder
This will get you your missing nodes
I did do that, it didn't work.
It's not working because you are using the portable version and it is installing the requirements in the wrong folders. Type this in the CustomUI-PhotoMaker folder and change the path to python embedded to the path on your pc
E:\SD\comfy2\ComfyUI_windows_portable\python_embeded\python.exe -s -m pip install -r ./requirements.txt
Am also getting this error, am using ComfyUI via Stability Matrix and ran through the steps as indicates but the nodes fail to load.
Yep the commits in the last 24 hours broke the nodes.
Just checkout to yesterdays commit 349f577 for now and use the v2.0 workflows: PhotoMaker_fromhub【Zho】.json PhotoMaker_locally【Zho】.json
cd custom_nodes/ComfyUI-PhotoMaker && git checkout 349f577
@ponponych
You've got something else going on, check your logs.
Traceback (most recent call last):
File "F:\ComfyUI\ComfyUI\nodes.py", line 1872, in load_custom_node
module_spec.loader.exec_module(module)
File "
Cannot import F:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-PhotoMaker module for custom nodes: No module named 'diffusers'
@ponponych
run pip install -r requirements.txt
inside F:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-PhotoMaker
Launched. All the same. ComfyUI portable Platform: Windows Python version: 3.11.6
So I also ran the pip command and it this is a snippet of where the dependencies installed. Is the path maybe the problem?
ofent@Prosper MINGW64 ~/AppData/Roaming/StabilityMatrix/Packages/ComfyUI/custom_nodes/ComfyUI-PhotoMaker (main)
$ pip install -r requirements.txt
Requirement already satisfied: diffusers==0.25.0 in c:\users\ofent\miniconda3\lib\site-packages (from -r requirements.txt (line 1)) (0.25.0)
Requirement already satisfied: transformers==4.36.2 in c:\users\ofent\miniconda3\lib\site-packages (from -r requirements.txt (line 2)) (4.36.2)
Requirement already satisfied: huggingface-hub==0.20.2 in c:\users\ofent\miniconda3\lib\site-packages (from -r requirements.txt (line 3)) (0.20.2)
https://github.com/ZHO-ZHO-ZHO/ComfyUI-PhotoMaker/issues/15#issuecomment-1898701609
This comment probably has the solution. It did for me. Hope that helps.
This comment probably has the solution. It did for me. Hope that helps.
Yes, thank you, this worked!
just to make sure everyone can do it:
-go to ComfyUI\custom_nodes directory and in the search bar of the folder type cmd and press enter. -paste this : git clone https://github.com/ZHO-ZHO-ZHO/ComfyUI-PhotoMaker.git -press enter -then go to ComfyUI_windows_portable\python_embeded directory and in the search bar of the folder type cmd and press enter. -paste this : python.exe -m pip install -r path_to_requirements -replace path_to_requirements with the directory of requirements.txt wherever your comfyui is installed, e.g. D:\ComfyUI\custom_nodes\ComfyUI-PhotoMaker\requirements.txt. together it should look similar like this :
python.exe -m pip install -r D:\ComfyUI\custom_nodes\ComfyUI-PhotoMaker\requirements.txt.
-press enter and wait a bit, -then restart comfyui and test to see if the nodes are activated.
I tried reinstalling, I did git clone https://github.com/ZHO-ZHO-ZHO/ComfyUI-PhotoMaker.git and also did 'pip install -r requirements.txt' inside 'custom_nodes/ComfyUI-PhotoMaker'
even did git pull in 'custom_nodes/ComfyUI-PhotoMaker' folder and It says it's already up to date. but still getting the '(IMPORT FAILED): \ComfyUI\custom_nodes\ComfyUI-PhotoMaker' error and the nodes inside the 'PhotoMaker_locally【Zho】.json' workflow are red and undefined.
please help. thank you.
same problem
Having the same problem
same problem
Check the comment right above yours
#15 (comment) This comment probably has the solution. It did for me. Hope that helps.
Yes, thank you, this worked!
just to make sure everyone can do it:
-go to ComfyUI\custom_nodes directory and in the search bar of the folder type cmd and press enter. -paste this : git clone https://github.com/ZHO-ZHO-ZHO/ComfyUI-PhotoMaker.git -press enter -then go to ComfyUI_windows_portable\python_embeded directory and in the search bar of the folder type cmd and press enter. -paste this : python.exe -m pip install -r path_to_requirements -replace path_to_requirements with the directory of requirements.txt wherever your comfyui is installed, e.g. D:\ComfyUI\custom_nodes\ComfyUI-PhotoMaker\requirements.txt. together it should look similar like this :
python.exe -m pip install -r D:\ComfyUI\custom_nodes\ComfyUI-PhotoMaker\requirements.txt.
-press enter and wait a bit, -then restart comfyui and test to see if the nodes are activated.
I tried that but the Photomaker Generation node is still missing. The problem must be for those (like me) with a portable version. Something isn't installing properly.
Anyone with this problem watch this video cause it helped me solve that problem.
#15 (comment) This comment probably has the solution. It did for me. Hope that helps.
Yes, thank you, this worked! just to make sure everyone can do it: -go to ComfyUI\custom_nodes directory and in the search bar of the folder type cmd and press enter. -paste this : git clone https://github.com/ZHO-ZHO-ZHO/ComfyUI-PhotoMaker.git -press enter -then go to ComfyUI_windows_portable\python_embeded directory and in the search bar of the folder type cmd and press enter. -paste this : python.exe -m pip install -r path_to_requirements -replace path_to_requirements with the directory of requirements.txt wherever your comfyui is installed, e.g. D:\ComfyUI\custom_nodes\ComfyUI-PhotoMaker\requirements.txt. together it should look similar like this : python.exe -m pip install -r D:\ComfyUI\custom_nodes\ComfyUI-PhotoMaker\requirements.txt. -press enter and wait a bit, -then restart comfyui and test to see if the nodes are activated.
I tried that but the Photomaker Generation node is still missing. The problem must be for those (like me) with a portable version. Something isn't installing properly.
yes, you just need to update the Photomaker (git pull) and then replace it with NEW Photomager Generation node
Anyone with this problem watch this video cause it helped me solve that problem.
Solved my problem, for those using Stability Matrix as your ComfyUI package manager, go to your custom_nodes/ComfyUI-PhotoMaker folder and pip install using
C:\Users[your username]\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\venv\Scripts\pip install -r requirments.txt
I tried reinstalling, I did git clone https://github.com/ZHO-ZHO-ZHO/ComfyUI-PhotoMaker.git and also did 'pip install -r requirements.txt' inside 'custom_nodes/ComfyUI-PhotoMaker'
even did git pull in 'custom_nodes/ComfyUI-PhotoMaker' folder and It says it's already up to date. but still getting the '(IMPORT FAILED): \ComfyUI\custom_nodes\ComfyUI-PhotoMaker' error and the nodes inside the 'PhotoMaker_locally【Zho】.json' workflow are red and undefined.
please help. thank you.