comfy_mtb: [bug] Several Nodes will not install

Describe the bug

image As always thanks for you great nodes! Sadly I’m having trouble getting several of them to install. They are: Face Swap, Face Enhance, Mask, Image Interpolation Fun

I have tried installation through Manager in CompyUI as well a with git clone in CMD. I’ve run the install bats, basically I’ve done everything that I know to do.

I really need to use Face swap for a project that I’m working on, so any help would be awesome!

see attached output

Reproduction

  1. Click on install in Custom Nodes in Manager
  2. Restart ComfyUI
  3. Read the error message, scream swear and cry.
  4. Delete the folder and do a “git clone” from the MTB github
  5. Restart ComfyUI and get the same error message
  6. Do a “git pull” and get the “up to date” response
  7. try the exact set of steps on your other installation of ComfyUI
  8. Have the same results, and decide that it is a bug.
  9. Make a bug report and hope that it will get answered.

Expected behavior

Ummm that the nodes would install and load.

Platform and versions

-Windows 10
-ComfyUIBackend on Stable Swarm, but same issue on ComfyUI portable
-Everything is updated to current version as of right now.

Console output

No response

Additional context

I really Love you nodes! At least the ones that I can get to work. Please offer some instruction for you suite! Also I am a YouTube creator, if you will help me get these figured out I will happily post tutorials! -Ava

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 32 (12 by maintainers)

Most upvoted comments

Your last comment was really misunderstandable. Not only by me but be the OP too.

I was forming a general opinion what I experience lately online. I had a guy asking for help on discord, I helped him in video editing, then next day he came for more, asking to do it form him. etc. Then was totally angry when I told him he should educate on the matter and try it on his own.

If you are the exception then I apologise. You have to admit that your comment was weird. Maybe a smiley next time helps.

Loving that my app broke is interesting approach too. Hope you will work out with mtb nodes and can progress with your work. #Mel keep up the good work! Have a nice day guys!

On Wed, Aug 9, 2023 at 5:49 PM AIMusicExperiment @.***> wrote:

Mel, I have been nothing but complimentary to you, I simply expressed that I was frustrated that I couldn’t get the app to work. You have indeed offered a lot of help, but I have not been able to make your guidance work, When I finally had what looked like success, the entire comphy failed. If you reread my earlier comment, you will see that it had nothing to do with you. I was doubly frustrated when I saw that you simply closed the issue, rather than responding. I think if you reread my comments here and also on the previous conversation you will remember that I have been very complimentary of you and your work. As we have discussed earlier, I am a YouTube content creator and I am working on a video that highlights your nodes for animation.

Your level expertise can make it difficult for you to understand that regular users like myself don’t have any idea what a python embedded environment is, or how that is affecting the install process. Many don’t even understand how to use the command prompt, and have never heard of window shell. Not understanding your advice is not ignoring your advice. My experience with other custom nodes is that I click install on the manager and then when I restart CompyUI it works. I think that many others are of that mindset. Bottom line, my frustration is not and should not be seen as a reflection on you .

GraphiTom, this is none of your fucking business! You jumped on to my issue and though welcomed, did nothing to help. I will not be judged by you as you have no understanding of me, my position, nor my background. I don’t have the attitude of entitlement, but I do need for these nodes to work in order to do my work. It is immaterial as to the cost of the software, as I and my colleagues routinely compensate developers through Patreon, or “buy me a coffee.” My best advice to you is to mind your own business. BTW I love that Karma stepped in and broke you app!

— Reply to this email directly, view it on GitHub https://github.com/melMass/comfy_mtb/issues/52#issuecomment-1671666973, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJKYRMTKNAUJ3T6E4SOWSHLXUOWQ7ANCNFSM6AAAAAA3FL4J4M . You are receiving this because you were mentioned.Message ID: @.***>

Mel, I have been nothing but complimentary to you, I simply expressed that I was frustrated that I couldn’t get the app to work. You have indeed offered a lot of help, but I have not been able to make your guidance work, When I finally had what looked like success, the entire comphy failed. If you reread my earlier comment, you will see that it had nothing to do with you. I was doubly frustrated when I saw that you simply closed the issue, rather than responding. I think if you reread my comments here and also on the previous conversation you will remember that I have been very complimentary of you and your work. As we have discussed earlier, I am a YouTube content creator and I am working on a video that highlights your nodes for animation.

Your level expertise can make it difficult for you to understand that regular users like myself don’t have any idea what a python embedded environment is, or how that is affecting the install process. Many don’t even understand how to use the command prompt, and have never heard of window shell. Not understanding your advice is not ignoring your advice. My experience with other custom nodes is that I click install on the manager and then when I restart CompyUI it works. I think that many others are of that mindset. Bottom line, my frustration is not and should not be seen as a reflection on you .

GraphiTom, this is none of your fucking business! You jumped on to my issue and though welcomed, did nothing to help. I will not be judged by you as you have no understanding of me, my position, nor my background. I don’t have the attitude of entitlement, but I do need for these nodes to work in order to do my work. It is immaterial as to the cost of the software, as I and my colleagues routinely compensate developers through Patreon, or “buy me a coffee.” My best advice to you is to mind your own business. BTW I love that Karma stepped in and broke you app!

Thanks for abandoning us!

I will now be slashing my veins, so feel free to read my obituary. . . in spite of vowing that I wasn’t going to mess with this any more, I did a new install from a git clone using the parameters that you discussed, and I also installed the models again using the parameters that you discussed. The install log said that all dependencies were successfully installed, and all the modals said that they correctly installed.

when I started ComfyUI the log showed the exact crap that I’ve been looking at for days now.

When I opened the GUI ComfyUI was completely broken. The only way to make it work is to remove you folder. This has become a complete nightmare, now I cannot only not us the nodes in question, but I can’t use any of your nodes.

This has basically fucked my world, as I’m working on a workflow that uses a bunch of your other nodes and they don’t work either. Frankly, I should have just been happy and not tried to swap faces. So lifes a bitch!

@melMass btw, great work!

(For others finding this as a related issue.)

Mine also failed to install fully through the ComfyUI Manager:

[comfy_mtb] | INFO -> Some nodes failed to load:
        Failed to import module faceenhance because ModuleNotFoundError: No module named 'basicsr'
        Failed to import module faceswap because ModuleNotFoundError: No module named 'insightface'
        Failed to import module fun because ModuleNotFoundError: No module named 'qrcode'
        Failed to import module image_interpolation because ModuleNotFoundError: No module named 'tensorflow'

Check that you properly installed the dependencies.

But installing from cli cleared it up:

./python_embeded/python.exe ComfyUI/custom_nodes/comfy_mtb/install.py -w


Update 1:

Spoke to soon - that seems to have broke my comfyui:

AssertionError: Torch not compiled with CUDA enabled


Update 2:

Ok, had to reinstall torch (which meant I had to figure out how to run pip in the embedded python). This worked:

(pip commands are from comfyui readme manual install section, but modified to run in the embedded python)


./python_embeded/python.exe -m pip uninstall torch

./python_embeded/python.exe -m pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu118 xformers

Now, ComfyUI is working and I can run the FILM workflow

Note: The FILM model didn’t auto install, so resolving that (according to mtb readme):

./python_embeded/python.exe ComfyUI/custom_nodes/comfy_mtb/scripts/download_models.py -y

Also one node still didn’t install:

[comfy_mtb] | INFO -> Some nodes failed to load:
        Failed to import module faceswap because ModuleNotFoundError: No module named 'insightface'

but closer.

Hi,

Thanks again for the report and the kind words, If you can check and provide the log of the install it should help a lot, I tried to give meaningful feedback to what the issues might be.

That being said, the install script also has a “CLI” mode with arguments:

/path/to/comfy_embedded/python.exe ComfyUI/custom_nodes/comfy_mtb/install.py --help

usage: install.py [-h] [--path PATH] [--wheels] [--requirements] [--dry]

Comfy_mtb install script

options:
  -h, --help            show this help message and exit
  --path PATH, -p PATH  Path to clone the repository to (i.e the absolute path to ComfyUI/custom_nodes)
  --wheels, -w          Install wheel dependencies
  --requirements, -r    Install requirements.txt
  --dry                 Print what will happen without doing it (still making requests to the GH Api)

If this doesn’t sound too complex you can try the following:

/path/to/comfy_embedded/python.exe ComfyUI/custom_nodes/comfy_mtb/install.py -w