#Facetools installation - ReActor disappearing on startup

1 messages · Page 1 of 1 (latest)

teal lintel
#

Hello - new to swarm, so I apologize if this is a dumb question but I am trying to get facetools/ReActor installed, and I am having a time getting it to run in my workflow properly. The installation seems to go ok - go to the extensions, click on install for Facetools, install seems to go alright, wait until installed, close terminal and browser, relaunch... but then this warning pops up:
00:23:38.715 [Info] Creating new session 'local' for 127.0.0.1
00:23:44.451 [Warning] [ComfyUI-0/STDERR] Traceback (most recent call last):
00:23:44.451 [Warning] [ComfyUI-0/STDERR] File "C:\SD-Zluda\SwarmUI\dlbackend\comfy\ComfyUI\nodes.py", line 2141, in load_custom_node
00:23:44.452 [Warning] [ComfyUI-0/STDERR] module_spec.loader.exec_module(module)
00:23:44.452 [Warning] [ComfyUI-0/STDERR] File "<frozen importlib._bootstrap_external>", line 883, in exec_module
00:23:44.452 [Warning] [ComfyUI-0/STDERR] File "<frozen importlib._bootstrap>", line 241, in call_with_frames_removed
00:23:44.453 [Warning] [ComfyUI-0/STDERR] File "C:\SD-Zluda\SwarmUI\dlbackend\comfy\ComfyUI\custom_nodes\comfyui_facetools_init
.py", line 1, in <module>
00:23:44.453 [Warning] [ComfyUI-0/STDERR] from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
00:23:44.453 [Warning] [ComfyUI-0/STDERR] File "C:\SD-Zluda\SwarmUI\dlbackend\comfy\ComfyUI\custom_nodes\comfyui_facetools\nodes.py", line 3, in <module>
00:23:44.453 [Warning] [ComfyUI-0/STDERR] from .utils import *
00:23:44.454 [Warning] [ComfyUI-0/STDERR] File "C:\SD-Zluda\SwarmUI\dlbackend\comfy\ComfyUI\custom_nodes\comfyui_facetools\utils.py", line 6, in <module>
00:23:44.454 [Warning] [ComfyUI-0/STDERR] import mediapipe as mp
00:23:44.454 [Warning] [ComfyUI-0/STDERR] ModuleNotFoundError: No module named 'mediapipe'
00:23:44.455 [Warning] [ComfyUI-0/STDERR]
00:23:45.161 [Warning] [ComfyUI-0/STDERR] Traceback (most recent call last):
00:23:45.162 [Warning] [ComfyUI-0/STDERR] File "C:\SD-Zluda\SwarmUI\dlbackend\comfy\ComfyUI\nodes.py", line 2141, in load_custom_node
00:23:45.162 [Warning] [ComfyUI-0/STDERR] module_spec.loader.exec_module(module)
00:23:45.163 [Warning] [ComfyUI-0/STDERR] File "<frozen importlib._bootstrap_external>", line 883, in exec_module
00:23:45.163 [Warning] [ComfyUI-0/STDERR] File "<frozen importlib._bootstrap>", line 241, in call_with_frames_removed
00:23:45.164 [Warning] [ComfyUI-0/STDERR] File "C:\SD-Zluda\SwarmUI\src\BuiltinExtensions\ComfyUIBackend\DLNodes\ComfyUI-ReActor_init
.py", line 23, in <module>
00:23:45.164 [Warning] [ComfyUI-0/STDERR] from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
00:23:45.165 [Warning] [ComfyUI-0/STDERR] File "C:\SD-Zluda\SwarmUI\src\BuiltinExtensions\ComfyUIBackend\DLNodes\ComfyUI-ReActor\nodes.py", line 16, in <module>
00:23:45.165 [Warning] [ComfyUI-0/STDERR] from segment_anything import sam_model_registry
00:23:45.166 [Warning] [ComfyUI-0/STDERR] ModuleNotFoundError: No module named 'segment_anything'
00:23:45.166 [Warning] [ComfyUI-0/STDERR]
00:23:46.762 [Init] Self-Start ComfyUI-0 on port 7821 started.

Ok - just warnings, no big deal... i see on the left part of the interface: IP ADAPTER - has an install button - install that.
I see ReActor has an install button... install that.

restart swarm, reactor shows up in the UI, and suddenly just... disappears.

Close out, restart the workflow, let it load up, and I see ReActor show up, UI buttons are there, and then... disappears again. Since terminal is up the whole time, I see those warnings, and the ui elements disappear immediately after those warnings pop. First response - go to web and search the error mesages - get a lot of information about needing to download those specific modules to the Comfy root folder - I go there and do pythong.exe -m pip install "mediapipe" and "segement_anything" - and I get "Requirement already satisfied:" messages for both...

https://paste.denizenscript.com/View/131995

#

Additional info:

  • running on windows 11
  • running with zluda and AMD
  • I have deleted the module and attempted a manual install as per quaggles readme
  • I have ready through the troubleshooting on quaggles github,
  • I have deleted the module and tried to peform a manual install from both gourieff's github and the codeberg repos, trying both the standard install and the non-VS C++ methods (for the record vs community and C++ build tools are installed...)
  • I have tried to perform an install from comfy manager - which seems to not work because config.ini needed to be modified to allow install from third party repos... which I can try, I just wanted to ask the question before messing with configs.
warm horizon
#

One thing I noticed is that when you ran pip install you were using powershell but did not use a relative path (./python.exe) to run embedded python in the working directory and instead it installed those packages to the python on your system path which ComfyUI won't see.

Try running ./python.exe -m pip install "segment_anything" "mediapipe"

teal lintel
#

I will try that! thank yoU!

teal lintel
#

Aah - I think I found it - running the above fixed the segment_anything warnings, btu the mediapipe warnings were still popping up.

#

I realized before installing, I had run the comfyfui updater script - I went back and re-ran that and noticed the following:
" ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
mediapipe 0.10.21 requires numpy<2, but you have numpy 2.2.4 which is incompatible.
numba 0.61.0 requires numpy<2.2,>=1.24, but you have numpy 2.2.4 which is incompatible."

#

So I think, in an effort to head off installation issues with React, i ran the comfyui updater, which pushed me into numpy 2+, which doesn't work with mediapipe

warm horizon
#

Yeah the new ComfyUI releases have numpy 2, ReActor will downgrade it to numpy 1.x when you install it but if something else upgrades it back to 2 later it can break things.

So it's all working now?

teal lintel
#

So, kinda?
No warning message for segment_anything after running the command with ./ (idiot move forgetting i had put ps7 as my terminal).

Still the same warning messagefor mediapipe, even though pip says requirements satisfurd. Am i needing to install to a different location than python_embeded? Or since i installed globally the first time, could that be screwing with things?

Reactor no longer disappears, although it works in some workflows, but not others.
From. The swarm webui, it will run through a full generation, then it will crash and restart the server.

Using the unet loader/separate clip/vae from the comfy backed works with the default schnell fp8 model, runs through and generates, although it look like a picture taken during a snowstorm....

#

now... interestingly enough... after different searches online, I did find this stack exchange article, which gets me thinking that the version of python visual studio community is using might be different from 3.10.11 - i will look into this in futher detail tonight

warm horizon
#

Now I look at it I don't think ReActor depends on mediapipe, it's not in the requirements.txt and I did a fresh install of SwarmUI with ReActor and it wasn't installed as part of that.

teal lintel
warm horizon
#

ComfyUI_FaceTools is something completely unrelated to my SwarmUI-FaceTools, it's not a dependency.

I should have looked around more before I picked a name lol.

#

The only node the extension installs and requires is ComfyUI-ReActor

teal lintel
#

weird - because as far as I know I only installed from the swarmui extensions tab...

#

uninstalling the facetools from swarm, deleting the folder from comfy and swarm - any gotcha's I should worry about?

#

ooooh - you know what?

#

when i was troubleshooting I think I tried installing facetools from comfy manager thinking it was the same

warm horizon
teal lintel
#

So that seems to have worked! Thank you so much for you assistance!