Code Monkey home page Code Monkey logo

comfyui-reactor-node's Introduction

logo

Version

!!! Important Update !!!
Don't forget to add the Node again in existing workflows

Support Me on Boosty
Support This Project

Commit activity Last commit Opened issues Closed issues License

English | Русский

ReActor Node for ComfyUI

The Fast and Simple Face Swap Extension Node for ComfyUI, based on ReActor SD-WebUI Face Swap Extension

This Node goes without NSFW filter (uncensored, use it on your own responsibility)

demo

0.5.1 ALPHA1

0.5.1-whatsnew-01

Full size demo preview

  • Some fixes and improvements
Previous versions
  • Spandrel lib support for GFPGAN

0.5.0 BETA3

  • Fixes: "RAM issue", "No detection" for MaskingHelper

0.5.0 BETA2

  • You can now build a blended face model from a batch of face models you already have, just add the "Make Face Model Batch" node to your workflow and connect several models via "Load Face Model"
  • Huge performance boost of the image analyzer's module! 10x speed up! Working with videos is now a pleasure!
0.5.0-whatsnew-05

0.5.0 BETA1

  • SWAPPED_FACE output for the Masking Helper Node
  • FIX: Empty A-channel for Masking Helper IMAGE output (causing errors with some nodes) was removed

0.5.0 ALPHA1

  • ReActorBuildFaceModel Node got "face_model" output to provide a blended face model directly to the main Node:

Basic workflow 💾

  • Face Masking feature is available now, just add the "ReActorMaskHelper" Node to the workflow and connect it as shown below:
0.5.0-whatsnew-01

If you don't have the "face_yolov8m.pt" Ultralytics model - you can download it from the Assets and put it into the "ComfyUI\models\ultralytics\bbox" directory
As well as "sam_vit_b_01ec64.pth" model - download (if you don't have it) and put it into the "ComfyUI\models\sams" directory;

Use this Node to gain the best results of the face swapping process:

0.5.0-whatsnew-02
  • ReActorImageDublicator Node - rather useful for those who create videos, it helps to duplicate one image to several frames to use them with VAE Encoder (e.g. live avatars):
0.5.0-whatsnew-03
  • ReActorFaceSwapOpt (a simplified version of the Main Node) + ReActorOptions Nodes to set some additional options such as (new) "input/source faces separate order". Yes! You can now set the order of faces in the index in the way you want ("large to small" goes by default)!
0.5.0-whatsnew-04
  • Little speed boost when analyzing target images (unfortunately it is still quite slow in compare to swapping and restoring...)
  • GPEN-BFR-512 and RestoreFormer_Plus_Plus face restoration models support

You can download models here: https://huggingface.co/datasets/Gourieff/ReActor/tree/main/models/facerestore_models
Put them into the ComfyUI\models\facerestore_models folder

0.4.2-whatsnew-04
  • Due to popular demand - you can now blend several images with persons into one face model file and use it with "Load Face Model" Node or in SD WebUI as well;

Experiment and create new faces or blend faces of one person to gain better accuracy and likeness!

Just add the ImpactPack's "Make Image Batch" Node as the input to the ReActor's one and load images you want to blend into one model:

0.4.2-whatsnew-01

Result example (the new face was created from 4 faces of different actresses):

0.4.2-whatsnew-02

Basic workflow 💾

  • CUDA 12 Support - don't forget to run (Windows) install.bat or (Linux/MacOS) install.py for ComfyUI's Python enclosure or try to install ORT-GPU for CU12 manually (https://onnxruntime.ai/docs/install/#install-onnx-runtime-gpu-cuda-12x)

  • Issue #173 fix

  • Separate Node for the Face Restoration postprocessing (FR #191), can be found inside ReActor's menu (RestoreFace Node)

  • (Windows) Installation can be done for Python from the System's PATH

  • Different fixes and improvements

  • Face Restore Visibility and CodeFormer Weight (Fidelity) options are now available! Don't forget to reload the Node in your existing workflow

0.4.1-whatsnew-01
  • Input "input_image" goes first now, it gives a correct bypass and also it is right to have the main input first;
  • You can now save face models as "safetensors" files (ComfyUI\models\reactor\faces) and load them into ReActor implementing different scenarios and keeping super lightweight face models of the faces you use:
0.4.0-whatsnew-01 0.4.0-whatsnew-02
  • Ability to build and save face models directly from an image:
0.4.0-whatsnew-03
  • Both the inputs are optional, just connect one of them according to your workflow; if both is connected - image has a priority.
  • Different fixes making this extension better.

Thanks to everyone who finds bugs, suggests new features and supports this project!

Installation

SD WebUI: AUTOMATIC1111 or SD.Next
  1. Close (stop) your SD-WebUI/Comfy Server if it's running
  2. (For Windows Users):
  3. Go to the extensions\sd-webui-comfyui\ComfyUI\custom_nodes
  4. Open Console or Terminal and run git clone https://github.com/Gourieff/comfyui-reactor-node
  5. Go to the SD WebUI root folder, open Console or Terminal and run (Windows users).\venv\Scripts\activate or (Linux/MacOS)venv/bin/activate
  6. python -m pip install -U pip
  7. cd extensions\sd-webui-comfyui\ComfyUI\custom_nodes\comfyui-reactor-node
  8. python install.py
  9. Please, wait until the installation process will be finished
  10. (From the version 0.3.0) Download additional facerestorers models from the link below and put them into the extensions\sd-webui-comfyui\ComfyUI\models\facerestore_models directory:
    https://huggingface.co/datasets/Gourieff/ReActor/tree/main/models/facerestore_models
  11. Run SD WebUI and check console for the message that ReActor Node is running:
console_status_running
  1. Go to the ComfyUI tab and find there ReActor Node inside the menu ReActor or by using a search:
webui-demo webui-demo
Standalone (Portable) ComfyUI for Windows
  1. Do the following:
  2. Choose between two options:
    • (ComfyUI Manager) Open ComfyUI Manager, click "Install Custom Nodes", type "ReActor" in the "Search" field and then click "Install". After ComfyUI will complete the process - please restart the Server.
    • (Manually) Go to ComfyUI\custom_nodes, open Console and run git clone https://github.com/Gourieff/comfyui-reactor-node
  3. Go to ComfyUI\custom_nodes\comfyui-reactor-node and run install.bat
  4. If you don't have the "face_yolov8m.pt" Ultralytics model - you can download it from the Assets and put it into the "ComfyUI\models\ultralytics\bbox" directory

As well as one or both of "Sams" models from [here](https://huggingface.co/datasets/Gourieff/ReActor/tree/main/models/sams) - download (if you don't have them) and put into the "ComfyUI\models\sams" directory 5. Run ComfyUI and find there ReActor Nodes inside the menu `ReActor` or by using a search

Usage

You can find ReActor Nodes inside the menu ReActor or by using a search (just type "ReActor" in the search field)

List of Nodes:

  • ••• Main Nodes •••
    • ReActorFaceSwap (Main Node)
    • ReActorFaceSwapOpt (Main Node with the additional Options input)
    • ReActorOptions (Options for ReActorFaceSwapOpt)
    • ReActorFaceBoost (Face Booster Node)
    • ReActorMaskHelper (Masking Helper)
  • ••• Operations with Face Models •••
    • ReActorSaveFaceModel (Save Face Model)
    • ReActorLoadFaceModel (Load Face Model)
    • ReActorBuildFaceModel (Build Blended Face Model)
    • ReActorMakeFaceModelBatch (Make Face Model Batch)
  • ••• Additional Nodes •••
    • ReActorRestoreFace (Face Restoration)
    • ReActorImageDublicator (Dublicate one Image to Images List)
    • ImageRGBA2RGB (Convert RGBA to RGB)

Connect all required slots and run the query.

Main Node Inputs

  • input_image - is an image to be processed (target image, analog of "target image" in the SD WebUI extension);
    • Supported Nodes: "Load Image", "Load Video" or any other nodes providing images as an output;
  • source_image - is an image with a face or faces to swap in the input_image (source image, analog of "source image" in the SD WebUI extension);
    • Supported Nodes: "Load Image" or any other nodes providing images as an output;
  • face_model - is the input for the "Load Face Model" Node or another ReActor node to provide a face model file (face embedding) you created earlier via the "Save Face Model" Node;
    • Supported Nodes: "Load Face Model", "Build Blended Face Model";

Main Node Outputs

  • IMAGE - is an output with the resulted image;
    • Supported Nodes: any nodes which have images as an input;
  • FACE_MODEL - is an output providing a source face's model being built during the swapping process;
    • Supported Nodes: "Save Face Model", "ReActor", "Make Face Model Batch";

Face Restoration

Since version 0.3.0 ReActor Node has a buil-in face restoration.
Just download the models you want (see Installation instruction) and select one of them to restore the resulting face(s) during the faceswap. It will enhance face details and make your result more accurate.

Face Indexes

By default ReActor detects faces in images from "large" to "small".
You can change this option by adding ReActorFaceSwapOpt node with ReActorOptions.

And if you need to specify faces, you can set indexes for source and input images.

Index of the first detected face is 0.

You can set indexes in the order you need.
E.g.: 0,1,2 (for Source); 1,0,2 (for Input).
This means: the second Input face (index = 1) will be swapped by the first Source face (index = 0) and so on.

Genders

You can specify the gender to detect in images.
ReActor will swap a face only if it meets the given condition.

Face Models

Since version 0.4.0 you can save face models as "safetensors" files (stored in ComfyUI\models\reactor\faces) and load them into ReActor implementing different scenarios and keeping super lightweight face models of the faces you use.

To make new models appear in the list of the "Load Face Model" Node - just refresh the page of your ComfyUI web application.
(I recommend you to use ComfyUI Manager - otherwise you workflow can be lost after you refresh the page if you didn't save it before that).

Troubleshooting

  1. (ComfyUI Portable) From the root folder check the version of Python:
    run CMD and type python_embeded\python.exe -V
  2. Download prebuilt Insightface package for Python 3.10 or for Python 3.11 (if in the previous step you see 3.11) or for Python 3.12 (if in the previous step you see 3.12) and put into the stable-diffusion-webui (A1111 or SD.Next) root folder (where you have "webui-user.bat" file) or into ComfyUI root folder if you use ComfyUI Portable
  3. From the root folder run:
    • (SD WebUI) CMD and .\venv\Scripts\activate
    • (ComfyUI Portable) run CMD
  4. Then update your PIP:
    • (SD WebUI) python -m pip install -U pip
    • (ComfyUI Portable) python_embeded\python.exe -m pip install -U pip
  5. Then install Insightface:
    • (SD WebUI) pip install insightface-0.7.3-cp310-cp310-win_amd64.whl (for 3.10) or pip install insightface-0.7.3-cp311-cp311-win_amd64.whl (for 3.11) or pip install insightface-0.7.3-cp312-cp312-win_amd64.whl (for 3.12)
    • (ComfyUI Portable) python_embeded\python.exe -m pip install insightface-0.7.3-cp310-cp310-win_amd64.whl (for 3.10) or python_embeded\python.exe -m pip install insightface-0.7.3-cp311-cp311-win_amd64.whl (for 3.11) or python_embeded\python.exe -m pip install insightface-0.7.3-cp312-cp312-win_amd64.whl (for 3.12)
  6. Enjoy!

II. "AttributeError: 'NoneType' object has no attribute 'get'"

This error may occur if there's smth wrong with the model file inswapper_128.onnx

Try to download it manually from here and put it to the ComfyUI\models\insightface replacing existing one

III. "reactor.execute() got an unexpected keyword argument 'reference_image'"

This means that input points have been changed with the latest update
Remove the current ReActor Node from your workflow and add it again

IV. ControlNet Aux Node IMPORT failed error when using with ReActor Node

  1. Close ComfyUI if it runs
  2. Go to the ComfyUI root folder, open CMD there and run:
    • python_embeded\python.exe -m pip uninstall -y opencv-python opencv-contrib-python opencv-python-headless
    • python_embeded\python.exe -m pip install opencv-python==4.7.0.72
  3. That's it!

reactor+controlnet

V. "ModuleNotFoundError: No module named 'basicsr'" or "subprocess-exited-with-error" during future-0.18.3 installation

VI. "fatal: fetch-pack: invalid index-pack output" when you try to git clone the repository"

Try to clone with --depth=1 (last commit only):

 git clone --depth=1 https://github.com/Gourieff/comfyui-reactor-node

Then retrieve the rest (if you need):

 git fetch --unshallow

Updating

Just put .bat or .sh script from this Repo to the ComfyUI\custom_nodes directory and run it when you need to check for updates

Disclaimer

This software is meant to be a productive contribution to the rapidly growing AI-generated media industry. It will help artists with tasks such as animating a custom character or using the character as a model for clothing etc.

The developers of this software are aware of its possible unethical applications and are committed to take preventative measures against them. We will continue to develop this project in the positive direction while adhering to law and ethics.

Users of this software are expected to use this software responsibly while abiding the local law. If face of a real person is being used, users are suggested to get consent from the concerned person and clearly mention that it is a deepfake when posting content online. Developers and Contributors of this software are not responsible for actions of end-users.

By using this extension you are agree not to create any content that:

  • violates any laws;
  • causes any harm to a person or persons;
  • propagates (spreads) any information (both public or personal) or images (both public or personal) which could be meant for harm;
  • spreads misinformation;
  • targets vulnerable groups of people.

This software utilizes the pre-trained models buffalo_l and inswapper_128.onnx, which are provided by InsightFace. These models are included under the following conditions:

From insighface license: The InsightFace’s pre-trained models are available for non-commercial research purposes only. This includes both auto-downloading models and manually downloaded models.

Users of this software must strictly adhere to these conditions of use. The developers and maintainers of this software are not responsible for any misuse of InsightFace’s pre-trained models.

Please note that if you intend to use this software for any commercial purposes, you will need to train your own models or find models that can be used commercially.

Models Hashsum

Safe-to-use models have the following hash:

inswapper_128.onnx

MD5:a3a155b90354160350efd66fed6b3d80
SHA256:e4a3f08c753cb72d04e10aa0f7dbe3deebbf39567d4ead6dce08e98aa49e16af

1k3d68.onnx

MD5:6fb94fcdb0055e3638bf9158e6a108f4
SHA256:df5c06b8a0c12e422b2ed8947b8869faa4105387f199c477af038aa01f9a45cc

2d106det.onnx

MD5:a3613ef9eb3662b4ef88eb90db1fcf26
SHA256:f001b856447c413801ef5c42091ed0cd516fcd21f2d6b79635b1e733a7109dbf

det_10g.onnx

MD5:4c10eef5c9e168357a16fdd580fa8371
SHA256:5838f7fe053675b1c7a08b633df49e7af5495cee0493c7dcf6697200b85b5b91

genderage.onnx

MD5:81c77ba87ab38163b0dec6b26f8e2af2
SHA256:4fde69b1c810857b88c64a335084f1c3fe8f01246c9a191b48c7bb756d6652fb

w600k_r50.onnx

MD5:80248d427976241cbd1343889ed132b3
SHA256:4c06341c33c2ca1f86781dab0e829f88ad5b64be9fba56e56bc9ebdefc619e43

Please check hashsums if you download these models from unverified (or untrusted) sources

Click to expand
file source license
buffalo_l.zip DeepInsight license
codeformer-v0.1.0.pth sczhou license
GFPGANv1.3.pth TencentARC license
GFPGANv1.4.pth TencentARC license
inswapper_128.onnx DeepInsight license
inswapper_128_fp16.onnx Hillobar license

BasicSR - @XPixelGroup
facexlib - @xinntao

@s0md3v, @henryruhs - the original Roop App
@ssitu - the first version of ComfyUI_roop extension

If you encounter any errors when you use ReActor Node - don't rush to open an issue, first try to remove current ReActor node in your workflow and add it again

ReActor Node gets updates from time to time, new functions appear and old node can work with errors or not work at all

comfyui-reactor-node's People

Contributors

aganoob avatar gourieff avatar haohaocreates avatar johndpope avatar kendalen avatar kvochko avatar lucaromanello avatar not-ski avatar ryanwalder avatar sayelr avatar scrivenerprime avatar storyicon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

comfyui-reactor-node's Issues

Scale Control

This works well, but the images are always tiny and when combined with the input image, a resolution change box is seen. Is there a recommended way to make this work with images that are closer to 1024 on a side?

The constant `IS_HIGH_VERSION` doesn't take into account dev versions

First, confirm

  • I have read the instruction carefully
  • I have searched the existing issues
  • I have updated the extension to the latest version

What happened?

This is a manually installed ComfyUI with its own venv. I did a fresh install of commit 9138e96 from this repo and tried to run ComfyUI, but I get the following error:

Traceback (most recent call last):
  File "F:\ComfyUI\nodes.py", line 1734, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "F:\ComfyUI\custom_nodes\comfyui-reactor-node\__init__.py", line 24, in <module>
    from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
  File "F:\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 13, in <module>
    from facelib.utils.face_restoration_helper import FaceRestoreHelper
  File "F:\ComfyUI\custom_nodes\comfyui-reactor-node\facelib\utils\face_restoration_helper.py", line 7, in <module>
    from facelib.detection import init_detection_model
  File "F:\ComfyUI\custom_nodes\comfyui-reactor-node\facelib\detection\__init__.py", line 12, in <module>
    from .yolov5face.face_detector import YoloDetector
  File "F:\ComfyUI\custom_nodes\comfyui-reactor-node\facelib\detection\yolov5face\face_detector.py", line 20, in <module>
    IS_HIGH_VERSION = tuple(map(int, torch.__version__.split('+')[0].split('.'))) >= (1, 9, 0)
ValueError: invalid literal for int() with base 10: 'dev20231005'

Cannot import F:\ComfyUI\custom_nodes\comfyui-reactor-node module for custom nodes: invalid literal for int() with base 10: 'dev20231005'

I don't fully understand it, but it looks like it is expecting integer numbers only, and so the "dev" in the name is causing the error.

Steps to reproduce the problem

Install custom nodes from ComfyUI manager and restart ComfyUI.

Sysinfo

Windows 11
Chrome
RTX 4090

Relevant console log

Traceback (most recent call last):
  File "F:\ComfyUI\nodes.py", line 1734, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "F:\ComfyUI\custom_nodes\comfyui-reactor-node\__init__.py", line 24, in <module>
    from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
  File "F:\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 13, in <module>
    from facelib.utils.face_restoration_helper import FaceRestoreHelper
  File "F:\ComfyUI\custom_nodes\comfyui-reactor-node\facelib\utils\face_restoration_helper.py", line 7, in <module>
    from facelib.detection import init_detection_model
  File "F:\ComfyUI\custom_nodes\comfyui-reactor-node\facelib\detection\__init__.py", line 12, in <module>
    from .yolov5face.face_detector import YoloDetector
  File "F:\ComfyUI\custom_nodes\comfyui-reactor-node\facelib\detection\yolov5face\face_detector.py", line 20, in <module>
    IS_HIGH_VERSION = tuple(map(int, torch.__version__.split('+')[0].split('.'))) >= (1, 9, 0)
ValueError: invalid literal for int() with base 10: 'dev20231005'

Cannot import F:\ComfyUI\custom_nodes\comfyui-reactor-node module for custom nodes: invalid literal for int() with base 10: 'dev20231005'


### Additional information

_No response_

Gender handling in ReActor

Suggestion: The gender handling you added in the SD extension is amazing. Any chance of it being added to the ComfyUI node?

[SOLVED] Not compatible with ControlNet pre-processor

First, confirm

  • I have read the instruction carefully
  • I have searched the existing issues
  • I have updated the extension to the latest version

What happened?

This custom node is currently not compatible with ControlNet pre-processor and this custom node will take precedence over control net processors. If you installed this together with controlnet pre-processor node, the control net pre-processor node will dissapear when you restarted comfy UI.

Steps to reproduce the problem

Install control net pre-processor node over this custom node (vice versa)

Sysinfo

NVIDIA 1050Ti Mobile
4GB Vram

Relevant console log

N/A

Additional information

No response

Manual Installation problems + conda

First, confirm

  • I have read the instruction carefully
  • I have searched the existing issues
  • I have updated the extension to the latest version

What happened?

Running a manual install of Comfyui in a conda environment. Everything is working fine, but can't install this add-on. I dive into the reactor directory and run "python install.py" But get an error...

Hoping for a fix or some guidance on how to get around this.

Steps to reproduce the problem

Your workflow

created conda environment running python 3.11
cloned comfyui
installed pytorch/torchvision/torchaudio with cuda 12.1
installed all requirements for comfyui manually
cloned reactor in custom_nodes folder
changed directory to reaktor folder and ran "python install.py"
get error

Sysinfo

Windows 10, comfyui is working flawlessly with multiple custom nodes. So isolated issue.

Relevant console log

(D:\ai\comfy) D:\ai\comfy\ComfyUI\custom_nodes\comfyui-reactor-node>python install.py
D:\ai\comfy\ComfyUI\custom_nodes\comfyui-reactor-node\install.py:3: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  import pkg_resources
Traceback (most recent call last):
  File "D:\ai\comfy\ComfyUI\custom_nodes\comfyui-reactor-node\install.py", line 7, in <module>
    import folder_paths
ModuleNotFoundError: No module named 'folder_paths'

Additional information

No response

In comfyUI not portable (IMPORT FAILED): ComfyUI\custom_nodes\comfyui-reactor-node

21:37:43 - ReActor Node - STATUS - Running v0.1.1b in ComfyUI
Traceback (most recent call last):
File "E:\AI\ComfyUI\nodes.py", line 1698, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "E:\AI\ComfyUI\custom_nodes\comfyui-reactor-node_init
.py", line 24, in
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "E:\AI\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 4, in
from utils import batch_tensor_to_pil, batched_pil_to_tensor, tensor_to_pil
ImportError: cannot import name 'batch_tensor_to_pil' from 'utils' (E:\AI\ComfyUI\custom_nodes\ComfyUI-Frame-Interpolation\utils.py)

Cannot import E:\AI\ComfyUI\custom_nodes\comfyui-reactor-node module for custom nodes: cannot import name 'batch_tensor_to_pil' from 'utils' (E:\AI\ComfyUI\custom_nodes\ComfyUI-Frame-Interpolation\utils.py)

Conflict with Mediapipe

First, confirm

  • I have read the instruction carefully
  • I have searched the existing issues
  • I have updated the extension to the latest version

What happened?

If I put comfyui-reactor-node in custom_nodes it breaks the MediaPipe-FaceMeshPreprocessor from InspirePack. I can't figure out why it's causing it to break but would like to use both custom nodes.

Steps to reproduce the problem

Use the MediaPipe-FaceMeshPreprocessor from InspirePack with comfyui-reactor-node installed and it errors at that point when the process gets to that node. Removing comfyui-reactor-node from the custom_nodes folder fixes it.

Sysinfo

AMD Threadripper, Windows 10, Firefox, 3060TI.

Relevant console log

Error occurred when executing MediaPipe-FaceMeshPreprocessor:

A Message class can only inherit from Message

  File "F:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 152, in recursive_execute
    output_data, output_ui = get_output_data(obj, input_data_all)
  File "F:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 82, in get_output_data
    return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
  File "F:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 75, in map_node_over_list
    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
  File "F:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\node_wrappers\mediapipe_face.py", line 41, in detect
    import mediapipe
  File "F:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\python_embeded\lib\site-packages\mediapipe\__init__.py", line 16, in 
    import mediapipe.python.solutions as solutions
  File "F:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\python_embeded\lib\site-packages\mediapipe\python\solutions\__init__.py", line 17, in 
    import mediapipe.python.solutions.drawing_styles
  File "F:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\python_embeded\lib\site-packages\mediapipe\python\solutions\drawing_styles.py", line 20, in 
    from mediapipe.python.solutions.drawing_utils import DrawingSpec
  File "F:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\python_embeded\lib\site-packages\mediapipe\python\solutions\drawing_utils.py", line 24, in 
    from mediapipe.framework.formats import detection_pb2
  File "F:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\python_embeded\lib\site-packages\mediapipe\framework\formats\detection_pb2.py", line 14, in 
    from mediapipe.framework.formats import location_data_pb2 as mediapipe_dot_framework_dot_formats_dot_location__data__pb2
  File "F:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\python_embeded\lib\site-packages\mediapipe\framework\formats\location_data_pb2.py", line 14, in 
    from mediapipe.framework.formats.annotation import rasterization_pb2 as mediapipe_dot_framework_dot_formats_dot_annotation_dot_rasterization__pb2
  File "F:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\python_embeded\lib\site-packages\mediapipe\framework\formats\annotation\rasterization_pb2.py", line 20, in 
    _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'mediapipe.framework.formats.annotation.rasterization_pb2', _globals)
  File "F:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\python_embeded\lib\site-packages\google\protobuf\internal\builder.py", line 108, in BuildTopDescriptorsAndMessages
    module[name] = BuildMessage(msg_des)
  File "F:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\python_embeded\lib\site-packages\google\protobuf\internal\builder.py", line 82, in BuildMessage
    create_dict[name] = BuildMessage(nested_msg)
  File "F:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\python_embeded\lib\site-packages\google\protobuf\internal\builder.py", line 85, in BuildMessage
    message_class = _reflection.GeneratedProtocolMessageType(

Additional information

I also tried removing the requirements.txt content from comfyui-reactor-node to see if it was changing a package but it doesn't change anything. I haven't added a node from comfyui-reactor-node.

Face restore models location

Hi!
I'm curious why does ReActor want to keep its models inside its node folder. I'm talking specifically about face restore models that don't get auto-downloaded when missing like Insightface models do. While I keep my face restore models under the ComfyUI's "models" directory, having a copy of these models just so ReActor node can see them doesn't seem efficient to me.

tldr
ReActor uses ComfyUI\custom_nodes\comfyui-reactor-node\models instead of using ComfyUI/models

facerestore and facerestore_cf IMPORT FAILED after Installing reactor-node

Hello.

After Installing reactor-node, facerestore_cf import fails. This occurs using the portable comfy UI Install, and the auto1111 extension comfy ui Install.
facerestore works until reactor is installed. This also occurs when using facerestore from civitAI

Traceback (most recent call last):
File "C:\SD\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1698, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\facerestore_cf_init
.py", line 6, in
import cv2
File "C:\SD\ComfyUI_windows_portable\python_embeded\lib\site-packages\cv2_init_.py", line 181, in
bootstrap()
File "C:\SD\ComfyUI_windows_portable\python_embeded\lib\site-packages\cv2_init_.py", line 175, in bootstrap
if _load_extra_py_code_for_module("cv2", submodule, DEBUG):
File "C:\SD\ComfyUI_windows_portable\python_embeded\lib\site-packages\cv2_init
.py", line 28, in load_extra_py_code_for_module
py_module = importlib.import_module(module_name)
File "importlib_init
.py", line 126, in import_module
File "C:\SD\ComfyUI_windows_portable\python_embeded\lib\site-packages\cv2\typing_init
.py", line 157, in
Prim = typing.Union[cv2.gapi.wip.draw.Text, cv2.gapi.wip.draw.Circle, cv2.gapi.wip.draw.Image, cv2.gapi.wip.draw.Line, cv2.gapi.wip.draw.Rect, cv2.gapi.wip.draw.Mosaic, cv2.gapi.wip.draw.Poly]
AttributeError: module 'cv2.gapi.wip.draw' has no attribute 'Text'

Cannot import C:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\facerestore_cf module for custom nodes: module 'cv2.gapi.wip.draw' has no attribute 'Text'

Import times for custom nodes:
0.0 seconds (IMPORT FAILED): C:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\facerestore_cf
0.3 seconds: C:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager
0.7 seconds: C:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node

I notice that you showcase a screenshot of it working, just want to know if this is a recent Issue or a me Issue.

I'm also not a programmer or anything, so I'm a bit stupid.

Thanks,

[SOLVED] RuntimeError: Input type (torch.FloatTensor) and weight type (PrivateUse1FloatType) should be the same

I was using reactor on sdwebui without any problems and just found out it is also available for comfy , wanted to try it. It works if I don't select a face restore model but if I select either of the two the following error is shown and nothing is produced :
`Error occurred when executing ReActorFaceSwap:

Input type (torch.FloatTensor) and weight type (PrivateUse1FloatType) should be the same or input should be a MKLDNN tensor and weight is a dense tensor

File "D:\ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "D:\ComfyUI\execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "D:\ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "D:\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 117, in execute
self.face_helper.get_face_landmarks_5(only_center_face=False, resize=640, eye_dist_threshold=5)
File "D:\ComfyUI\custom_nodes\comfyui-reactor-node\facelib\utils\face_restoration_helper.py", line 151, in get_face_landmarks_5
bboxes = self.face_det.detect_faces(input_img)
File "D:\ComfyUI\custom_nodes\comfyui-reactor-node\facelib\detection\retinaface\retinaface.py", line 209, in detect_faces
loc, conf, landmarks, priors = self.__detect_faces(image)
File "D:\ComfyUI\custom_nodes\comfyui-reactor-node\facelib\detection\retinaface\retinaface.py", line 156, in __detect_faces
loc, conf, landmarks = self(inputs)
File "D:\ComfyUI\env\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "D:\ComfyUI\custom_nodes\comfyui-reactor-node\facelib\detection\retinaface\retinaface.py", line 121, in forward
out = self.body(inputs)
File "D:\ComfyUI\env\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "D:\ComfyUI\env\lib\site-packages\torchvision\models_utils.py", line 69, in forward
x = module(x)
File "D:\ComfyUI\env\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "D:\ComfyUI\env\lib\site-packages\torch\nn\modules\conv.py", line 463, in forward
return self._conv_forward(input, self.weight, self.bias)
File "D:\ComfyUI\env\lib\site-packages\torch\nn\modules\conv.py", line 459, in _conv_forward
return F.conv2d(input, weight, bias, self.stride,`

[SOLVED] Trouble after install comfy_mtb node

Traceback (most recent call last):
  File "E:\AI\ComfyUI\nodes.py", line 1725, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "E:\AI\ComfyUI\custom_nodes\comfyui-reactor-node\__init__.py", line 24, in <module>
    from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
  File "E:\AI\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 3, in <module>
    from scripts.reactor_faceswap import FaceSwapScript, get_models
  File "E:\AI\ComfyUI\custom_nodes\comfyui-reactor-node\scripts\reactor_faceswap.py", line 12, in <module>
    from scripts.reactor_swapper import swap_face
  File "E:\AI\ComfyUI\custom_nodes\comfyui-reactor-node\scripts\reactor_swapper.py", line 10, in <module>
    import insightface
  File "C:\Users\user\AppData\Roaming\Python\Python310\site-packages\insightface\__init__.py", line 16, in <module>
    from . import model_zoo
  File "C:\Users\user\AppData\Roaming\Python\Python310\site-packages\insightface\model_zoo\__init__.py", line 1, in <module>
    from .model_zoo import get_model
  File "C:\Users\user\AppData\Roaming\Python\Python310\site-packages\insightface\model_zoo\model_zoo.py", line 11, in <module>
    from .arcface_onnx import *
  File "C:\Users\user\AppData\Roaming\Python\Python310\site-packages\insightface\model_zoo\arcface_onnx.py", line 10, in <module>
    import onnx
  File "C:\Users\user\AppData\Roaming\Python\Python310\site-packages\onnx\__init__.py", line 13, in <module>
    from onnx.external_data_helper import (
  File "C:\Users\user\AppData\Roaming\Python\Python310\site-packages\onnx\external_data_helper.py", line 11, in <module>    from onnx.onnx_pb import AttributeProto, GraphProto, ModelProto, TensorProto
  File "C:\Users\user\AppData\Roaming\Python\Python310\site-packages\onnx\onnx_pb.py", line 4, in <module>
    from .onnx_ml_pb2 import *  # noqa
  File "C:\Users\user\AppData\Roaming\Python\Python310\site-packages\onnx\onnx_ml_pb2.py", line 5, in <module>
    from google.protobuf.internal import builder as _builder
ImportError: cannot import name 'builder' from 'google.protobuf.internal' (E:\Anaconda3\lib\site-packages\google\protobuf\internal\__init__.py)

Cannot import E:\AI\ComfyUI\custom_nodes\comfyui-reactor-node module for custom nodes: cannot import name 'builder' from 'google.protobuf.internal' (E:\Anaconda3\lib\site-packages\google\protobuf\internal\__init__.py)
E:\Anaconda3\lib\site-packages\_distutils_hack\__init__.py:33: UserWarning: Setuptools is replacing distutils.
  warnings.warn("Setuptools is replacing distutils.")

after uninstall comfy_mtb trouble not fixed

Last update slows down workflow

Last update slows down worflow. I think it is because not needed models are loaded.

{'model_path': 'D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\models\insightface\models\buffalo_l\1k3d68.onnx'}
{'model_path': 'D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\models\insightface\models\buffalo_l\2d106det.onnx'}
{'model_path': 'D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\models\insightface\models\buffalo_l\det_10g.onnx'}
{'model_path': 'D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\models\insightface\models\buffalo_l\genderage.onnx'}
{'model_path': 'D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\models\insightface\models\buffalo_l\w600k_r50.onnx'}
{'model_path': 'D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\models\insightface\models\buffalo_l\1k3d68.onnx'}
{'model_path': 'D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\models\insightface\models\buffalo_l\2d106det.onnx'}
{'model_path': 'D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\models\insightface\models\buffalo_l\det_10g.onnx'}
{'model_path': 'D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\models\insightface\models\buffalo_l\genderage.onnx'}
{'model_path': 'D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\models\insightface\models\buffalo_l\w600k_r50.onnx'}
{'model_path': 'D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\models\insightface\models\buffalo_l\1k3d68.onnx'}
{'model_path': 'D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\models\insightface\models\buffalo_l\2d106det.onnx'}
{'model_path': 'D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\models\insightface\models\buffalo_l\det_10g.onnx'}
{'model_path': 'D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\models\insightface\models\buffalo_l\genderage.onnx'}
{'model_path': 'D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\models\insightface\models\buffalo_l\w600k_r50.onnx'}

Is it possible to disable loading of not used models for example I dont use genderage

[SOLVED] IMPORT FAILED

The installation is trouble-free from the Manager, and the model inswapper_128.onnx is downloaded correctly.
When launching ComfyUI, I get the following error message in the console: 'Import Failed'.
I have no other error messages, and, of course, the Reactor node is not available. I've had this problem since I first tried to install it over a week ago. I waited for yesterday's update before uninstalling and reinstalling it, but the result is the same.
What information would you need to find a solution?

Error running comfyui-rector-node

I am using the ComfyUI_windows_portable version now but tried the manual install also and get the same results.

ReActor Node Error-1

I installed and deleted and re-installed about 6 times trying to get it working properly but it always gives this error once it hits the FaceSwap Node. I went through the "onnxruntime_inference_collection.py" file and can't find anywhere that it sets the provider to ['AzureExecutionProvider', 'CPUExecutionProvider']. it is a bit frustrating but a found a work around after going through the file for hours on end, (I do not know how to write Python Code by the way).

I got it to work by opening the "onnxruntime_inference_collection.py" file in the "...\ComfyUI_windows_portable\python_embeded\Lib\site-packages\onnxruntime\capi directory and changing the section at the following line numbers:

177 def disable_fallback(self):
178 """
179 Disable session.run() fallback mechanism.
180 """
181 self._enable_fallback = False

to:

177 def disable_fallback(self):
178 """
179 Disable session.run() fallback mechanism.
180 """
181 self._enable_fallback = True

In the CMD Console it throws the following error:

EP Error This ORT build has ['AzureExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['AzureExecutionProvider', 'CPUExecutionProvider'], ...) when using None
Falling back to ['CPUExecutionProvider'] and retrying.

but the process continues through to completion and swaps the face.

I am not sure how to fix it without doing it this quick and dirty way, I tried all of the other possible solutions that I can find and this is the only thing that works for me,

ps: It is probably a good idea to edit System Enviroment Variables and add the "ComfyUI_windows_portable\python_embeded" and "ComfyUI_windows_portable\python_embeded\Scripts" directory addresses to "Path." I kept getting "python_embeded" not on path during node installs, those went away after editing the system environmental variables.

Thank you.

Request - FaceRestoration Only on Swapped Face

Hello,

I'm using the newest version of the plugin and the improvements are great but are causing me more problems than they have solved. I am trying to replace faces on one person in a crowd, and whenever I use the face restoration feature is applies to all faces it finds in the image, even background faces that are meant to be blurry and out of focus. Obviously I can work around this with some editing, but that's not always possible and takes some time.

I'd like to be able to control what the face restoration applies to, ideally just the replaced face, but if I had some form of control, like being able to set a confidence %, a max number of detected faces, I mean there's a lot of ways to set this up and I'll leave it to you to decide if and when you implement something like this. I think at a high level though, most of us don't want to restore every face that might be present on a multi face image.

That said things are working well on single character images with the exception of eye color but I think that's more a fault with the models than anything else.

Reactor node already installed but doesn't show in UI

First, confirm

  • I have read the instruction carefully
  • I have searched the existing issues
  • I have updated the extension to the latest version

What happened?

Hello, I've got the portable version of Comfyui.
I've installed all the custom nodes from manager, check the troubleshooting section and update the pip but
the node is still not here.
Thanks in advance

Steps to reproduce the problem

install Comfyui and some custom nodes
install all the custom nodes from manager

Sysinfo

amd 4000 7
NVIDIA GeForce GTX 1660 Ti 6gb
windows 10

Relevant console log

D:\AI\ComfyUI_windows_portable>.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build
** ComfyUI start up time: 2023-10-04 22:20:00.340110

Prestartup times for custom nodes:
   0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager

Total VRAM 6144 MB, total RAM 32174 MB
xformers version: 0.0.21
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce GTX 1660 Ti : cudaMallocAsync
VAE dtype: torch.float32
Using xformers cross attention
Adding extra search path checkpoints C:\Users\Leini\Documents\AI\stable-diffusion-webui\models/Stable-diffusion
Adding extra search path configs C:\Users\Leini\Documents\AI\stable-diffusion-webui\models/Stable-diffusion
Adding extra search path vae C:\Users\Leini\Documents\AI\stable-diffusion-webui\models/VAE
Adding extra search path loras C:\Users\Leini\Documents\AI\stable-diffusion-webui\models/Lora
Adding extra search path loras C:\Users\Leini\Documents\AI\stable-diffusion-webui\models/LyCORIS
Adding extra search path upscale_models C:\Users\Leini\Documents\AI\stable-diffusion-webui\models/ESRGAN
Adding extra search path upscale_models C:\Users\Leini\Documents\AI\stable-diffusion-webui\models/RealESRGAN
Adding extra search path upscale_models C:\Users\Leini\Documents\AI\stable-diffusion-webui\models/SwinIR
Adding extra search path embeddings C:\Users\Leini\Documents\AI\stable-diffusion-webui\embeddings
Adding extra search path hypernetworks C:\Users\Leini\Documents\AI\stable-diffusion-webui\models/hypernetworks
Adding extra search path controlnet C:\Users\Leini\Documents\AI\stable-diffusion-webui\models/ControlNet
### Loading: ComfyUI-Impact-Pack (V4.15.4)
### Loading: ComfyUI-Impact-Pack (Subpack: V0.2.3)
### Loading: ComfyUI-Impact-Pack (V4.15.4)
### Loading: ComfyUI-Manager (V0.33)
### ComfyUI Revision: 1517 [4103f7fa] | Released on '2023-10-03'
Traceback (most recent call last):
  File "D:\AI\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1734, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\__init__.py", line 24, in <module>
    from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
  File "D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 3, in <module>
    from scripts.reactor_faceswap import FaceSwapScript, get_models
  File "D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\scripts\reactor_faceswap.py", line 12, in <module>
    from scripts.reactor_swapper import swap_face
  File "D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\scripts\reactor_swapper.py", line 10, in <module>
    import insightface
ModuleNotFoundError: No module named 'insightface'

Cannot import D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node module for custom nodes: No module named 'insightface'
[comfy_mtb] | WARNING -> Web extensions folder at D:\AI\ComfyUI_windows_portable\ComfyUI\web\extensions\mtb is not a symlink, if updating please delete it before
[comfy_mtb] | STATUS -> 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 image_interpolation because ModuleNotFoundError: No module named 'tensorflow'

Check that you properly installed the dependencies.
If you think this is a bug, please report it on the github page (https://github.com/melMass/comfy_mtb/issues)
[comfy_mtb] | STATUS -> Loaded the following nodes:
        Animation Builder (mtb): Convenient way to manage basic animation maths at the core of many of my workflows
        Smart Step (mtb): Utils to control the steps start/stop of the KAdvancedSampler in percentage
        Styles Loader (mtb): Load csv files and populate a dropdown from the rows (à la A111)
        Interpolate Clip Sequential (mtb): -
        Bbox From Mask (mtb): From a mask extract the bounding box
        Bbox (mtb): The bounding box (BBOX) custom type used by other nodes
        Crop (mtb): Crops an image and an optional mask to a given bounding box
        Uncrop (mtb): Uncrops an image to a given bounding box
        Debug (mtb): Experimental node to debug any Comfy values, support for more types and widgets is planned
        Save Tensors (mtb): Save torch tensors (image, mask or latent) to disk, useful to debug things outside comfy
        Deep Bump (mtb): Normal & height maps generation from single pictures
        Qr Code (mtb): Basic QR Code generator
        Unsplash Image (mtb): Unsplash Image given a keyword and a size
        Text To Image (mtb): Utils to convert text to image using a font
        String Replace (mtb): Basic string replacement
        Fit Number (mtb): Fit the input float using a source and target range
        Get Batch From History (mtb): Very experimental node to load images from the history of the server.
        Any To String (mtb): Tries to take any input and convert it to a string
        Color Correct (mtb): Various color correction methods
        Image Compare (mtb): Compare two images and return a difference image
        Blur (mtb): Blur an image using a Gaussian filter.
        Mask To Image (mtb): Converts a mask (alpha) to an RGB image with a color and background
        Colored Image (mtb): Constant color image of given size
        Image Premultiply (mtb): Premultiply image with mask
        Image Resize Factor (mtb): Extracted mostly from WAS Node Suite, with a few edits (most notably multiple image support) and less features.
        Save Image Grid (mtb): Save all the images in the input batch as a grid of images.
        Load Image From Url (mtb): Load an image from the given URL
        Save Gif (mtb): Save the images from the batch as a GIF
        Export With Ffmpeg (mtb): Export with FFmpeg (Experimental)
        Latent Lerp (mtb): Linear interpolation (blend) between two latent vectors
        Image Remove Background Rembg (mtb): Removes the background from the input using Rembg.
        Float To Number (mtb): Node addon for the WAS Suite. Converts a "comfy" FLOAT to a NUMBER.
        Int To Bool (mtb): Basic int to bool conversion
        Int To Number (mtb): Node addon for the WAS Suite. Converts a "comfy" INT to a NUMBER.
        Transform Image (mtb): Save torch tensors (image, mask or latent) to disk, useful to debug things outside comfy
        Load Image Sequence (mtb): Load an image sequence from a folder. The current frame is used to determine which image to load.
        Save Image Sequence (mtb): Save an image sequence to a folder. The current frame is used to determine which image to save.
D:\AI\ComfyUI_windows_portable\python_embeded\lib\site-packages\_distutils_hack\__init__.py:33: UserWarning: Setuptools is replacing distutils.
  warnings.warn("Setuptools is replacing distutils.")
!! Trying to start the node
!! Creating face_detailer models dir because it doesn't exist
!! face_yolov8n model downloading...
!! Model downloading finished.
Total VRAM 6144 MB, total RAM 32174 MB
xformers version: 0.0.21
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce GTX 1660 Ti : cudaMallocAsync
VAE dtype: torch.float32
WAS Node Suite: OpenCV Python FFMPEG support is enabled
WAS Node Suite Warning: `ffmpeg_bin_path` is not set in `D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui\was_suite_config.json` config file. Will attempt to use system ffmpeg binaries if available.
WAS Node Suite: Finished. Loaded 195 nodes successfully.

        "Art is the most beautiful of all lies." - Claude Debussy


Import times for custom nodes:
   0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ControlNet-LLLite-ComfyUI
   0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack-Main
   0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\masquerade-nodes-comfyui
   0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfy-nodes
   0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\efficiency-nodes-comfyui
   0.0 seconds (IMPORT FAILED): D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node
   0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\facerestore
   0.5 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager
   0.9 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfy_mtb
   1.6 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui
   3.1 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack
   6.3 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\facedetailer

Starting server

To see the GUI go to: http://127.0.0.1:8188
FETCH DATA from: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json
FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json

Additional information

No response

No module named 'onnx.onnx_cpp2py_export.defs'; 'onnx.onnx_cpp2py_export' is not a package

First, confirm

  • I have read the instruction carefully
  • I have searched the existing issues
  • I have updated the extension to the latest version

What happened?

IMPORT FAILED at ComfyUI startup.

Traceback (most recent call last):
  File "/content/drive/colab_ai/ComfyUI/nodes.py", line 1742, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/content/drive/colab_ai/ComfyUI/custom_nodes/comfyui-reactor-node/__init__.py", line 24, in <module>
    from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
  File "/content/drive/colab_ai/ComfyUI/custom_nodes/comfyui-reactor-node/nodes.py", line 3, in <module>
    from scripts.reactor_faceswap import FaceSwapScript, get_models
  File "/content/drive/colab_ai/ComfyUI/custom_nodes/comfyui-reactor-node/scripts/reactor_faceswap.py", line 12, in <module>
    from scripts.reactor_swapper import swap_face
  File "/content/drive/colab_ai/ComfyUI/custom_nodes/comfyui-reactor-node/scripts/reactor_swapper.py", line 10, in <module>
    import insightface
  File "/usr/local/lib/python3.10/dist-packages/insightface/__init__.py", line 16, in <module>
    from . import model_zoo
  File "/usr/local/lib/python3.10/dist-packages/insightface/model_zoo/__init__.py", line 1, in <module>
    from .model_zoo import get_model
  File "/usr/local/lib/python3.10/dist-packages/insightface/model_zoo/model_zoo.py", line 11, in <module>
    from .arcface_onnx import *
  File "/usr/local/lib/python3.10/dist-packages/insightface/model_zoo/arcface_onnx.py", line 10, in <module>
    import onnx
  File "/usr/local/lib/python3.10/dist-packages/onnx/__init__.py", line 52, in <module>
    from onnx import (
  File "/usr/local/lib/python3.10/dist-packages/onnx/checker.py", line 16, in <module>
    import onnx.defs
  File "/usr/local/lib/python3.10/dist-packages/onnx/defs/__init__.py", line 7, in <module>
    import onnx.onnx_cpp2py_export.defs as C  # noqa: N812
ModuleNotFoundError: No module named 'onnx.onnx_cpp2py_export.defs'; 'onnx.onnx_cpp2py_export' is not a package

Steps to reproduce the problem

Your workflow

  1. git clone comfyui-reactor-node repo to custom_nodes/
  2. launch ComfyUI

Sysinfo

system info:

image

GPU : A4000 16GB vram

Relevant console log

Traceback (most recent call last):
  File "/content/drive/colab_ai/ComfyUI/nodes.py", line 1742, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/content/drive/colab_ai/ComfyUI/custom_nodes/comfyui-reactor-node/__init__.py", line 24, in <module>
    from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
  File "/content/drive/colab_ai/ComfyUI/custom_nodes/comfyui-reactor-node/nodes.py", line 3, in <module>
    from scripts.reactor_faceswap import FaceSwapScript, get_models
  File "/content/drive/colab_ai/ComfyUI/custom_nodes/comfyui-reactor-node/scripts/reactor_faceswap.py", line 12, in <module>
    from scripts.reactor_swapper import swap_face
  File "/content/drive/colab_ai/ComfyUI/custom_nodes/comfyui-reactor-node/scripts/reactor_swapper.py", line 10, in <module>
    import insightface
  File "/usr/local/lib/python3.10/dist-packages/insightface/__init__.py", line 16, in <module>
    from . import model_zoo
  File "/usr/local/lib/python3.10/dist-packages/insightface/model_zoo/__init__.py", line 1, in <module>
    from .model_zoo import get_model
  File "/usr/local/lib/python3.10/dist-packages/insightface/model_zoo/model_zoo.py", line 11, in <module>
    from .arcface_onnx import *
  File "/usr/local/lib/python3.10/dist-packages/insightface/model_zoo/arcface_onnx.py", line 10, in <module>
    import onnx
  File "/usr/local/lib/python3.10/dist-packages/onnx/__init__.py", line 52, in <module>
    from onnx import (
  File "/usr/local/lib/python3.10/dist-packages/onnx/checker.py", line 16, in <module>
    import onnx.defs
  File "/usr/local/lib/python3.10/dist-packages/onnx/defs/__init__.py", line 7, in <module>
    import onnx.onnx_cpp2py_export.defs as C  # noqa: N812
ModuleNotFoundError: No module named 'onnx.onnx_cpp2py_export.defs'; 'onnx.onnx_cpp2py_export' is not a package

Additional information

custom_nodes

image

=====
python deps

Package                           Version
--------------------------------- --------------------
absl-py                           1.4.0
accelerate                        0.23.0
addict                            2.4.0
agate                             1.6.0
agate-dbf                         0.2.0
agate-excel                       0.2.3
agate-sql                         0.5.2
aiohttp                           3.8.4
aiosignal                         1.3.1
albumentations                    1.3.1
antlr4-python3-runtime            4.9.3
anyio                             3.6.2
argon2-cffi                       21.3.0
argon2-cffi-bindings              21.2.0
asttokens                         2.2.1
astunparse                        1.6.3
async-timeout                     4.0.2
attrs                             23.1.0
awscli                            1.25.91
Babel                             2.12.1
backcall                          0.2.0
basicsr                           1.4.2
beautifulsoup4                    4.11.2
bleach                            6.0.0
blis                              0.7.9
boto3                             1.24.90
botocore                          1.27.90
cached-property                   1.5.2
cachetools                        5.3.0
catalogue                         2.0.8
certifi                           2019.11.28
cffi                              1.15.1
chardet                           3.0.4
charset-normalizer                3.1.0
chex                              0.1.6
click                             8.1.3
click-completion                  0.5.2
click-didyoumean                  0.3.0
click-help-colors                 0.9.1
cloudpickle                       2.2.0
cmake                             3.27.5
colorama                          0.4.3
coloredlogs                       15.0.1
comm                              0.1.2
confection                        0.0.4
contourpy                         1.0.7
csvkit                            1.0.2
cycler                            0.11.0
cymem                             2.0.7
Cython                            0.29.32
datasets                          2.4.0
dbfread                           2.0.7
dbus-python                       1.2.16
debugpy                           1.6.6
decorator                         5.1.1
defusedxml                        0.7.1
diffusers                         0.21.2
dill                              0.3.5.1
discord-webhook                   1.3.0
dm-tree                           0.1.8
docker-pycreds                    0.4.0
docutils                          0.16
easydict                          1.10
einops                            0.6.1
entrypoints                       0.4
et-xmlfile                        1.0.1
etils                             1.0.0
executing                         1.2.0
facexlib                          0.3.0
fastjsonschema                    2.16.3
filelock                          3.9.0
filterpy                          1.4.5
flatbuffers                       23.5.26
flax                              0.6.3
fonttools                         4.39.0
frozenlist                        1.3.3
fsspec                            2023.3.0
ftfy                              6.1.1
future                            0.18.2
fvcore                            0.1.5.post20221221
gast                              0.4.0
gdown                             4.5.1
gitdb                             4.0.10
GitPython                         3.1.31
google-auth                       2.16.2
google-auth-oauthlib              1.0.0
google-pasta                      0.2.0
gql                               3.0.0a6
gradient                          2.0.6
gradient-utils                    0.5.0
graphql-core                      3.1.7
greenlet                          2.0.2
grpcio                            1.51.3
h11                               0.14.0
h5py                              3.8.0
halo                              0.0.31
httpcore                          0.17.3
httpx                             0.24.1
huggingface-hub                   0.17.3
humanfriendly                     10.0
idna                              2.8
imageio                           2.26.0
importlib-metadata                6.8.0
importlib-resources               5.12.0
insightface                       0.7.3
iopath                            0.1.10
ipykernel                         6.16.0
ipython                           8.5.0
ipython-genutils                  0.2.0
ipywidgets                        8.0.2
isodate                           0.6.0
jax                               0.4.6
jaxlib                            0.4.6+cuda11.cudnn82
jdcal                             1.0
jedi                              0.18.2
Jinja2                            3.1.2
jmespath                          1.0.1
joblib                            1.2.0
json5                             0.9.11
jsonify                           0.5
jsonschema                        4.17.3
jupyter-client                    7.3.4
jupyter-contrib-core              0.4.2
jupyter-contrib-nbextensions      0.7.0
jupyter_core                      5.2.0
jupyter-highlight-selected-word   0.2.0
jupyter-nbextensions-configurator 0.6.1
jupyter-server                    1.23.6
jupyter-server-mathjax            0.2.6
jupyterlab                        3.4.6
jupyterlab-git                    0.41.0
jupyterlab-pygments               0.2.2
jupyterlab_server                 2.20.0
jupyterlab-snippets               0.4.1
jupyterlab-widgets                3.0.5
keras                             2.14.0
Keras-Preprocessing               1.1.2
kiwisolver                        1.4.4
langcodes                         3.3.0
leather                           0.3.3
libclang                          15.0.6.1
lit                               17.0.1
llvmlite                          0.41.0
lmdb                              1.4.1
log-symbols                       0.0.14
lxml                              4.5.0
Markdown                          3.4.1
markdown-it-py                    2.2.0
MarkupSafe                        2.1.2
marshmallow                       2.21.0
matplotlib                        3.6.1
matplotlib-inline                 0.1.6
mdurl                             0.1.2
mediapipe                         0.10.5
mistune                           2.0.5
ml-dtypes                         0.2.0
mpmath                            1.3.0
msgpack                           1.0.5
multidict                         6.0.4
multiprocess                      0.70.13
murmurhash                        1.0.9
nbclassic                         0.5.3
nbclient                          0.7.2
nbconvert                         7.2.9
nbdime                            3.1.1
nbformat                          5.7.3
nest-asyncio                      1.5.6
networkx                          3.0
nltk                              3.7
notebook                          6.5.3
notebook_shim                     0.2.2
numba                             0.58.0
numexpr                           2.8.7
numpy                             1.25.2
nvidia-cublas-cu11                11.10.3.66
nvidia-cuda-cupti-cu11            11.7.101
nvidia-cuda-nvrtc-cu11            11.7.99
nvidia-cuda-runtime-cu11          11.7.99
nvidia-cudnn-cu11                 8.5.0.96
nvidia-cufft-cu11                 10.9.0.58
nvidia-curand-cu11                10.2.10.91
nvidia-cusolver-cu11              11.4.0.1
nvidia-cusparse-cu11              11.7.4.91
nvidia-nccl-cu11                  2.14.3
nvidia-nvtx-cu11                  11.7.91
oauthlib                          3.2.2
omegaconf                         2.3.0
onnx                              1.14.1
onnxruntime                       1.15.1
onnxruntime-gpu                   1.15.1
opencv-contrib-python             4.8.0.76
opencv-python                     4.8.0.76
opencv-python-headless            4.8.0.76
openpyxl                          3.0.3
opt-einsum                        3.3.0
optax                             0.1.4
orbax                             0.1.3
packaging                         23.0
pandas                            1.5.0
pandocfilters                     1.5.0
parsedatetime                     2.4
parso                             0.8.3
pathtools                         0.1.2
pathy                             0.10.1
pexpect                           4.8.0
pickleshare                       0.7.5
piexif                            1.1.3
Pillow                            9.2.0
pip                               23.0.1
platformdirs                      3.10.0
pooch                             1.7.0
portalocker                       2.8.2
preshed                           3.0.8
prettytable                       3.6.0
progressbar2                      4.2.0
prometheus-client                 0.9.0
promise                           2.3
prompt-toolkit                    3.0.38
protobuf                          3.20.3
psutil                            5.9.4
ptyprocess                        0.7.0
pure-eval                         0.2.2
py-cpuinfo                        9.0.0
pyarrow                           11.0.0
pyasn1                            0.4.8
pyasn1-modules                    0.2.8
pycparser                         2.21
pydantic                          1.9.2
Pygments                          2.14.0
PyGObject                         3.36.0
PyMatting                         1.1.8
pymongo                           3.13.0
pyparsing                         3.0.9
pypng                             0.20220715.0
pyrsistent                        0.19.3
PySocks                           1.7.1
python-apt                        2.0.1
python-dateutil                   2.8.2
python-distutils-extra            2.39
python-slugify                    4.0.0
python-telegram-bot               20.5
python-utils                      3.5.2
pytimeparse                       1.1.5
pytz                              2022.7.1
PyWavelets                        1.4.1
PyYAML                            5.4.1
pyzmq                             25.0.0
qrcode                            7.4.2
qudida                            0.0.4
regex                             2022.10.31
rembg                             2.0.50
requests                          2.28.2
requests-oauthlib                 1.3.1
requests-toolbelt                 0.10.1
requests-unixsocket               0.2.0
responses                         0.18.0
rich                              13.3.2
rsa                               4.7.2
s3transfer                        0.6.0
safetensors                       0.3.3
scikit-image                      0.19.3
scikit-learn                      1.1.2
scipy                             1.9.2
seaborn                           0.12.0
segment-anything                  1.0
Send2Trash                        1.8.0
sentence-transformers             2.2.2
sentencepiece                     0.1.97
sentry-sdk                        1.16.0
setproctitle                      1.3.2
setuptools                        67.6.0
shellingham                       1.5.0.post1
shortuuid                         1.0.11
simpleeval                        0.9.13
simplejson                        3.19.1
six                               1.14.0
smart-open                        6.3.0
smmap                             5.0.0
sniffio                           1.3.0
sounddevice                       0.4.6
soupsieve                         2.4
spacy                             3.4.1
spacy-legacy                      3.0.12
spacy-loggers                     1.0.4
spinners                          0.0.24
SQLAlchemy                        1.4.41
srsly                             2.4.6
stack-data                        0.6.2
sympy                             1.12
tabulate                          0.9.0
tb-nightly                        2.15.0a20230926
tensorboard                       2.14.0
tensorboard-data-server           0.7.1
tensorboard-plugin-wit            1.8.1
tensorflow                        2.14.0
tensorflow-estimator              2.14.0
tensorflow-io-gcs-filesystem      0.31.0
tensorstore                       0.1.33
termcolor                         2.2.0
terminado                         0.17.1
terminaltables                    3.1.10
thinc                             8.1.9
threadpoolctl                     3.1.0
tifffile                          2023.2.28
timm                              0.6.7
tinycss2                          1.2.1
tokenizers                        0.12.1
tomli                             2.0.1
toolz                             0.12.0
torch                             2.0.1
torchaudio                        2.0.2
torchsde                          0.2.6
torchvision                       0.15.2
tornado                           6.1
tqdm                              4.64.1
traitlets                         5.9.0
trampoline                        0.1.2
transformers                      4.33.2
triton                            2.0.0
typer                             0.4.2
typing_extensions                 4.5.0
ultralytics                       8.0.188
Unidecode                         1.1.1
urllib3                           1.26.15
wandb                             0.13.4
wasabi                            0.10.1
wcwidth                           0.2.6
webencodings                      0.5.1
websocket-client                  0.57.0
websockets                        11.0.3
Werkzeug                          2.2.3
wheel                             0.35.1
widgetsnbextension                4.0.5
wrapt                             1.14.1
xformers                          0.0.21
xgboost                           1.6.2
xlrd                              1.1.0
xxhash                            3.2.0
yacs                              0.1.8
yapf                              0.40.2
yarl                              1.8.2
zipp                              3.17.0

Reactor closes me comfyui

First, confirm

  • I have read the instruction carefully
  • I have searched the existing issues
  • I have updated the extension to the latest version

What happened?

I have everything installed and I have no problem launching images, all the nodes are up to date.
I did several reboots to make sure I didn't forget anything. But in classic I have no problem and I can calculate images.
But when I switch to On with reactor ConfyUI closes.
I used roop before and had no problem outputting images. Does this use the same type of parameter? I'm thinking of redoing a complete installation but first I prefer to share my problem and see if there isn't a simple solution.

Reactor Node - STATUS - Working: source face index [0], target face [0]
Reactor Node - STATUS - Analyzing Source Image...

E:\ComfyUI>pause
Press any key to continue...

Steps to reproduce the problem

Your workflow

Sysinfo

Windows and nvidia 3070
ComfyUI portable

Relevant console log

08:16:57 - ReActor Node - STATUS - Working: source face index [0], target face index [0]
08:16:57 - ReActor Node - STATUS - Analyzing Source Image...

E:\ComfyUI>pause
Press any key to continue...

Additional information

No response
I have exactly the same problem but everything is up to date. And I have an Nvidia

load the nodes error

First, confirm

  • I have read the instruction carefully
  • I have searched the existing issues
  • I have updated the extension to the latest version

What happened?

When I installed the nodes and started comfyui, an error occurred, causing the other three nodes to not work properly:1、comfyui_controlnet_aux 2.SeargeSDXL3.was-node-suite-comfyui
Error content:partially initialized module 'cv2' has no attribute 'mat_wrapper' (most likely due to a circular import)
opencv-python,opencv-contrib-python,opencv-python-headless are last version4.8.1.78

so,How should this problem be solved?

Steps to reproduce the problem

install it from comfyui manager

Sysinfo

ubuntu22

other nodes:
SDXLAspectRatio.py
ComfyUi_PromptStylers
ComfyUI-Custom-Scripts
ComfyUI_UltimateSDUpscale
efficiency-nodes-comfyui
comfyui_controlnet_aux
AIGODLIKE-COMFYUI-TRANSLATION
ComfyUI-Manager
SeargeSDXL
was-node-suite-comfyui

Relevant console log

Total VRAM 16128 MB, total RAM 31325 MB
xformers version: 0.0.22
Set vram state to: NORMAL_VRAM
Device: cuda:0 Tesla T4 : cudaMallocAsync
VAE dtype: torch.float32
Traceback (most recent call last):
  File "/home/ubuntu/ComfyUI/nodes.py", line 1734, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/ubuntu/ComfyUI/custom_nodes/was-node-suite-comfyui/__init__.py", line 1, in <module>
    from .WAS_Node_Suite import NODE_CLASS_MAPPINGS
  File "/home/ubuntu/ComfyUI/custom_nodes/was-node-suite-comfyui/WAS_Node_Suite.py", line 13475, in <module>
    import cv2
  File "/home/ubuntu/.local/lib/python3.10/site-packages/cv2/__init__.py", line 181, in <module>
    bootstrap()
  File "/home/ubuntu/.local/lib/python3.10/site-packages/cv2/__init__.py", line 175, in bootstrap
    if __load_extra_py_code_for_module("cv2", submodule, DEBUG):
  File "/home/ubuntu/.local/lib/python3.10/site-packages/cv2/__init__.py", line 28, in __load_extra_py_code_for_module
    py_module = importlib.import_module(module_name)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/home/ubuntu/.local/lib/python3.10/site-packages/cv2/typing/__init__.py", line 94, in <module>
    MatLike = typing.Union[cv2.mat_wrapper.Mat, NumPyArrayGeneric]
AttributeError: partially initialized module 'cv2' has no attribute 'mat_wrapper' (most likely due to a circular import)

Cannot import /home/ubuntu/ComfyUI/custom_nodes/was-node-suite-comfyui module for custom nodes: partially initialized module 'cv2' has no attribute 'mat_wrapper' (most likely due to a circular import)
Traceback (most recent call last):
  File "/home/ubuntu/ComfyUI/nodes.py", line 1734, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/ubuntu/ComfyUI/custom_nodes/comfyui_controlnet_aux/__init__.py", line 2, in <module>
    from .utils import here, create_node_input_types
  File "/home/ubuntu/ComfyUI/custom_nodes/comfyui_controlnet_aux/utils.py", line 4, in <module>
    import cv2
  File "/home/ubuntu/.local/lib/python3.10/site-packages/cv2/__init__.py", line 181, in <module>
    bootstrap()
  File "/home/ubuntu/.local/lib/python3.10/site-packages/cv2/__init__.py", line 175, in bootstrap
    if __load_extra_py_code_for_module("cv2", submodule, DEBUG):
  File "/home/ubuntu/.local/lib/python3.10/site-packages/cv2/__init__.py", line 28, in __load_extra_py_code_for_module
    py_module = importlib.import_module(module_name)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/home/ubuntu/.local/lib/python3.10/site-packages/cv2/typing/__init__.py", line 94, in <module>
    MatLike = typing.Union[cv2.mat_wrapper.Mat, NumPyArrayGeneric]
AttributeError: partially initialized module 'cv2' has no attribute 'mat_wrapper' (most likely due to a circular import)

Cannot import /home/ubuntu/ComfyUI/custom_nodes/comfyui_controlnet_aux module for custom nodes: partially initialized module 'cv2' has no attribute 'mat_wrapper' (most likely due to a circular import)

Additional information

No response

Reactor Custom Node Causes Issues with other Custom Nodes using ComfyUI Standalone (Impact Pack / Controlnetaux / Promptgenerator)

I was trying to solve an issue that cropped up suddenly for me with some odd protobuf error when using some Impact Pact nodes and a prompt generator custom node. After digging into it I'm pretty sure the issue is the same that a ROOP node was causing which has to do with double loading protobuf with non-venv installs, and the order that things are loaded. I'm pretty sure it's the same issue as this one here:

https://github.com/Fannovel16/comfy_controlnet_preprocessors/issues/70
ssitu/ComfyUI_roop#1

There is some underlying issue here I think that is going to keep cropping up depending on install or execution order. I'm not sure if there's a way to check and not reload protobuf, I did find one posted ComfyUI hack to force it to load the node last but that's not ideal. Hopefully there's an easy fix that can be done for the init file. If posting the actual errors or any part of my configuration would help at all I'm happy to do so. I also understand this isn't a problem for everyone since it only hits standalone users and not venv ones (AFAIK).

I know the old controlnet nodes for ComfyUI were causing an issue with this, I think he fixed them with the new controlnet_aux project so maybe the same fix could apply? Just hoping :D

Insightface ıssue

When I tried swarm/comfyUI I get this error:

Building wheels for collected packages: insightface
Building wheel for insightface (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for insightface (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [232 lines of output]
WARNING: pandoc not enabled
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\insightface
copying insightface_init_.py -> build\lib.win-amd64-cpython-311\insightface
creating build\lib.win-amd64-cpython-311\insightface\app
copying insightface\app\common.py -> build\lib.win-amd64-cpython-311\insightface\app
copying insightface\app\face_analysis.py -> build\lib.win-amd64-cpython-311\insightface\app
copying insightface\app\mask_renderer.py -> build\lib.win-amd64-cpython-311\insightface\app
copying insightface\app_init_.py -> build\lib.win-amd64-cpython-311\insightface\app
creating build\lib.win-amd64-cpython-311\insightface\commands
copying insightface\commands\insightface_cli.py -> build\lib.win-amd64-cpython-311\insightface\commands
copying insightface\commands\model_download.py -> build\lib.win-amd64-cpython-311\insightface\commands
copying insightface\commands\rec_add_mask_param.py -> build\lib.win-amd64-cpython-311\insightface\commands
copying insightface\commands_init_.py -> build\lib.win-amd64-cpython-311\insightface\commands
creating build\lib.win-amd64-cpython-311\insightface\data
copying insightface\data\image.py -> build\lib.win-amd64-cpython-311\insightface\data
copying insightface\data\pickle_object.py -> build\lib.win-amd64-cpython-311\insightface\data
copying insightface\data\rec_builder.py -> build\lib.win-amd64-cpython-311\insightface\data
copying insightface\data_init_.py -> build\lib.win-amd64-cpython-311\insightface\data
creating build\lib.win-amd64-cpython-311\insightface\model_zoo
copying insightface\model_zoo\arcface_onnx.py -> build\lib.win-amd64-cpython-311\insightface\model_zoo
copying insightface\model_zoo\attribute.py -> build\lib.win-amd64-cpython-311\insightface\model_zoo
copying insightface\model_zoo\inswapper.py -> build\lib.win-amd64-cpython-311\insightface\model_zoo
copying insightface\model_zoo\landmark.py -> build\lib.win-amd64-cpython-311\insightface\model_zoo
copying insightface\model_zoo\model_store.py -> build\lib.win-amd64-cpython-311\insightface\model_zoo
copying insightface\model_zoo\model_zoo.py -> build\lib.win-amd64-cpython-311\insightface\model_zoo
copying insightface\model_zoo\retinaface.py -> build\lib.win-amd64-cpython-311\insightface\model_zoo
copying insightface\model_zoo\scrfd.py -> build\lib.win-amd64-cpython-311\insightface\model_zoo
copying insightface\model_zoo_init_.py -> build\lib.win-amd64-cpython-311\insightface\model_zoo
creating build\lib.win-amd64-cpython-311\insightface\thirdparty
copying insightface\thirdparty_init_.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty
creating build\lib.win-amd64-cpython-311\insightface\utils
copying insightface\utils\constant.py -> build\lib.win-amd64-cpython-311\insightface\utils
copying insightface\utils\download.py -> build\lib.win-amd64-cpython-311\insightface\utils
copying insightface\utils\face_align.py -> build\lib.win-amd64-cpython-311\insightface\utils
copying insightface\utils\filesystem.py -> build\lib.win-amd64-cpython-311\insightface\utils
copying insightface\utils\storage.py -> build\lib.win-amd64-cpython-311\insightface\utils
copying insightface\utils\transform.py -> build\lib.win-amd64-cpython-311\insightface\utils
copying insightface\utils_init_.py -> build\lib.win-amd64-cpython-311\insightface\utils
creating build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d
copying insightface\thirdparty\face3d_init_.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d
creating build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\io.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\light.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\render.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\transform.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\vis.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh_init_.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh
creating build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\io.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\light.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\render.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\transform.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\vis.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy_init_.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh_numpy
creating build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\morphable_model
copying insightface\thirdparty\face3d\morphable_model\fit.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\morphable_model
copying insightface\thirdparty\face3d\morphable_model\load.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\morphable_model
copying insightface\thirdparty\face3d\morphable_model\morphabel_model.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\morphable_model
copying insightface\thirdparty\face3d\morphable_model_init_.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\morphable_model
running egg_info
writing insightface.egg-info\PKG-INFO
writing dependency_links to insightface.egg-info\dependency_links.txt
writing entry points to insightface.egg-info\entry_points.txt
writing requirements to insightface.egg-info\requires.txt
writing top-level names to insightface.egg-info\top_level.txt
reading manifest file 'insightface.egg-info\SOURCES.txt'
writing manifest file 'insightface.egg-info\SOURCES.txt'
C:\Swarm2\StableSwarmUI\dlbackend\comfy\python_embeded\Lib\site-packages\setuptools\command\build_py.py:201: _Warning: Package 'insightface.thirdparty.face3d.mesh.cython' is absent from the packages configuration.
!!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'insightface.thirdparty.face3d.mesh.cython' as an importable package[^1],
          but it is absent from setuptools' `packages` configuration.

          This leads to an ambiguous overall configuration. If you want to distribute this
          package, please make sure that 'insightface.thirdparty.face3d.mesh.cython' is explicitly added
          to the `packages` configuration field.

          Alternatively, you can also rely on setuptools' discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

          If you don't want 'insightface.thirdparty.face3d.mesh.cython' to be distributed and are
          already explicitly excluding 'insightface.thirdparty.face3d.mesh.cython' via
          `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
          you can try to use `exclude_package_data`, or `include-package-data=False` in
          combination with a more fine grained `package-data` configuration.

          You can read more about "package data files" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


          [^1]: For Python, any directory (with suitable naming) can be imported,
                even if it does not contain any `.py` files.
                On the other hand, currently there is no concept of package data
                directory, all directories are treated like packages.
          ********************************************************************************

  !!
    check.warn(importable)
  C:\Swarm2\StableSwarmUI\dlbackend\comfy\python_embeded\Lib\site-packages\setuptools\command\build_py.py:201: _Warning: Package 'insightface.data.images' is absent from the `packages` configuration.
  !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'insightface.data.images' as an importable package[^1],
          but it is absent from setuptools' `packages` configuration.

          This leads to an ambiguous overall configuration. If you want to distribute this
          package, please make sure that 'insightface.data.images' is explicitly added
          to the `packages` configuration field.

          Alternatively, you can also rely on setuptools' discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

          If you don't want 'insightface.data.images' to be distributed and are
          already explicitly excluding 'insightface.data.images' via
          `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
          you can try to use `exclude_package_data`, or `include-package-data=False` in
          combination with a more fine grained `package-data` configuration.

          You can read more about "package data files" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


          [^1]: For Python, any directory (with suitable naming) can be imported,
                even if it does not contain any `.py` files.
                On the other hand, currently there is no concept of package data
                directory, all directories are treated like packages.
          ********************************************************************************

  !!
    check.warn(importable)
  C:\Swarm2\StableSwarmUI\dlbackend\comfy\python_embeded\Lib\site-packages\setuptools\command\build_py.py:201: _Warning: Package 'insightface.data.objects' is absent from the `packages` configuration.
  !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'insightface.data.objects' as an importable package[^1],
          but it is absent from setuptools' `packages` configuration.

          This leads to an ambiguous overall configuration. If you want to distribute this
          package, please make sure that 'insightface.data.objects' is explicitly added
          to the `packages` configuration field.

          Alternatively, you can also rely on setuptools' discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

          If you don't want 'insightface.data.objects' to be distributed and are
          already explicitly excluding 'insightface.data.objects' via
          `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
          you can try to use `exclude_package_data`, or `include-package-data=False` in
          combination with a more fine grained `package-data` configuration.

          You can read more about "package data files" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


          [^1]: For Python, any directory (with suitable naming) can be imported,
                even if it does not contain any `.py` files.
                On the other hand, currently there is no concept of package data
                directory, all directories are treated like packages.
          ********************************************************************************

  !!
    check.warn(importable)
  creating build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core.cpp -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.cpp -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh\cython
  creating build\lib.win-amd64-cpython-311\insightface\data\images
  copying insightface\data\images\Tom_Hanks_54745.png -> build\lib.win-amd64-cpython-311\insightface\data\images
  copying insightface\data\images\mask_black.jpg -> build\lib.win-amd64-cpython-311\insightface\data\images
  copying insightface\data\images\mask_blue.jpg -> build\lib.win-amd64-cpython-311\insightface\data\images
  copying insightface\data\images\mask_green.jpg -> build\lib.win-amd64-cpython-311\insightface\data\images
  copying insightface\data\images\mask_white.jpg -> build\lib.win-amd64-cpython-311\insightface\data\images
  copying insightface\data\images\t1.jpg -> build\lib.win-amd64-cpython-311\insightface\data\images
  creating build\lib.win-amd64-cpython-311\insightface\data\objects
  copying insightface\data\objects\meanshape_68.pkl -> build\lib.win-amd64-cpython-311\insightface\data\objects
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core.h -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.c -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.pyx -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\setup.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh\cython
  running build_ext
  building 'insightface.thirdparty.face3d.mesh.cython.mesh_core_cython' extension
  creating build\temp.win-amd64-cpython-311
  creating build\temp.win-amd64-cpython-311\Release
  creating build\temp.win-amd64-cpython-311\Release\insightface
  creating build\temp.win-amd64-cpython-311\Release\insightface\thirdparty
  creating build\temp.win-amd64-cpython-311\Release\insightface\thirdparty\face3d
  creating build\temp.win-amd64-cpython-311\Release\insightface\thirdparty\face3d\mesh
  creating build\temp.win-amd64-cpython-311\Release\insightface\thirdparty\face3d\mesh\cython
  "C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.37.32705\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iinsightface/thirdparty/face3d/mesh/cython -IC:\Swarm2\StableSwarmUI\dlbackend\comfy\python_embeded\Lib\site-packages\numpy\core\include -IC:\Swarm2\StableSwarmUI\dlbackend\comfy\python_embeded\include -IC:\Swarm2\StableSwarmUI\dlbackend\comfy\python_embeded\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.37.32705\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.37.32705\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tpinsightface/thirdparty/face3d/mesh/cython/mesh_core.cpp /Fobuild\temp.win-amd64-cpython-311\Release\insightface/thirdparty/face3d/mesh/cython/mesh_core.obj
  mesh_core.cpp
  insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(147): warning C4244: '=': 'int' - 'float' d”n\x81Ÿ\x81m\x81; veri kayb\x8d olabilir
  insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(147): warning C4244: '=': 'int' - 'float' d”n\x81Ÿ\x81m\x81; veri kayb\x8d olabilir
  insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(210): warning C4244: '=': 'int' - 'float' d”n\x81Ÿ\x81m\x81; veri kayb\x8d olabilir
  insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(210): warning C4244: '=': 'int' - 'float' d”n\x81Ÿ\x81m\x81; veri kayb\x8d olabilir
  insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(294): warning C4244: '=': 'int' - 'float' d”n\x81Ÿ\x81m\x81; veri kayb\x8d olabilir
  insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(294): warning C4244: '=': 'int' - 'float' d”n\x81Ÿ\x81m\x81; veri kayb\x8d olabilir
  "C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.37.32705\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iinsightface/thirdparty/face3d/mesh/cython -IC:\Swarm2\StableSwarmUI\dlbackend\comfy\python_embeded\Lib\site-packages\numpy\core\include -IC:\Swarm2\StableSwarmUI\dlbackend\comfy\python_embeded\include -IC:\Swarm2\StableSwarmUI\dlbackend\comfy\python_embeded\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.37.32705\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.37.32705\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tpinsightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp /Fobuild\temp.win-amd64-cpython-311\Release\insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.obj
  mesh_core_cython.cpp
  insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp(36): fatal error C1083: i‡erme dosyas\x8d a‡\x8dlam\x8dyor: 'Python.h': No such file or directory
  error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.37.32705\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for insightface
Failed to build insightface
ERROR: Could not build wheels for insightface, which is required to install pyproject.toml-based projects

no module named google?

First, confirm

  • I have read the instruction carefully
  • I have searched the existing issues
  • I have updated the extension to the latest version

What happened?

tried running - as i was having protobuf errors - tried this fix - #5

and now it's telling me i am missing the google module.... from when i followed the step to delete the google folder

Steps to reproduce the problem

Your workflow
Close ComfyUI, go to the "site-packages" and see if there are any folders with names start from "~" (e.g. "~rotobuf"), delete them, do the same inside the folder "site-packages\google"
Then run CMD from ComfyUI root folder and:
python_embeded\python.exe -m pip install protobuf==3.20.3

Sysinfo

windows 10, rtx 3090

Relevant console log

C:\AI\ComfyUI>.\python_embeded\python.exe -s ComfyUI\main.py --listen --windows-standalone-build
** ComfyUI start up time: 2023-09-25 03:09:47.283366
Total VRAM 24576 MB, total RAM 32704 MB
xformers version: 0.0.21
Traceback (most recent call last):
  File "C:\AI\ComfyUI\ComfyUI\comfy\model_management.py", line 211, in <module>
    import accelerate
  File "C:\AI\ComfyUI\python_embeded\lib\site-packages\accelerate\__init__.py", line 3, in <module>
    from .accelerator import Accelerator
  File "C:\AI\ComfyUI\python_embeded\lib\site-packages\accelerate\accelerator.py", line 35, in <module>
    from .checkpointing import load_accelerator_state, load_custom_state, save_accelerator_state, save_custom_state
  File "C:\AI\ComfyUI\python_embeded\lib\site-packages\accelerate\checkpointing.py", line 24, in <module>
    from .utils import (
  File "C:\AI\ComfyUI\python_embeded\lib\site-packages\accelerate\utils\__init__.py", line 142, in <module>
    from .megatron_lm import (
  File "C:\AI\ComfyUI\python_embeded\lib\site-packages\accelerate\utils\megatron_lm.py", line 32, in <module>
    from transformers.modeling_outputs import (
  File "C:\AI\ComfyUI\python_embeded\lib\site-packages\transformers\__init__.py", line 30, in <module>
    from . import dependency_versions_check
  File "C:\AI\ComfyUI\python_embeded\lib\site-packages\transformers\dependency_versions_check.py", line 17, in <module>
    from .utils.versions import require_version, require_version_core
  File "C:\AI\ComfyUI\python_embeded\lib\site-packages\transformers\utils\__init__.py", line 34, in <module>
    from .generic import (
  File "C:\AI\ComfyUI\python_embeded\lib\site-packages\transformers\utils\generic.py", line 33, in <module>
    import tensorflow as tf
  File "C:\AI\ComfyUI\python_embeded\lib\site-packages\tensorflow\__init__.py", line 37, in <module>
    from tensorflow.python.tools import module_util as _module_util
  File "C:\AI\ComfyUI\python_embeded\lib\site-packages\tensorflow\python\__init__.py", line 37, in <module>
    from tensorflow.python.eager import context
  File "C:\AI\ComfyUI\python_embeded\lib\site-packages\tensorflow\python\eager\context.py", line 29, in <module>
    from tensorflow.core.framework import function_pb2
  File "C:\AI\ComfyUI\python_embeded\lib\site-packages\tensorflow\core\framework\function_pb2.py", line 7, in <module>
    from google.protobuf import descriptor as _descriptor
ModuleNotFoundError: No module named 'google'

ERROR: LOW VRAM MODE NEEDS accelerate.
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 3090 : native
VAE dtype: torch.bfloat16
Using xformers cross attention
Failed to execute startup-script: C:\AI\ComfyUI\ComfyUI\custom_nodes\rgthree-comfy\prestartup_script.py / No module named 'google'

Prestartup times for custom nodes:
   0.0 seconds: C:\AI\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Manager
   2.1 seconds (PRESTARTUP FAILED): C:\AI\ComfyUI\ComfyUI\custom_nodes\rgthree-comfy

Traceback (most recent call last):
  File "C:\AI\ComfyUI\ComfyUI\main.py", line 72, in <module>
    import execution
  File "C:\AI\ComfyUI\ComfyUI\execution.py", line 11, in <module>
    import nodes
  File "C:\AI\ComfyUI\ComfyUI\nodes.py", line 20, in <module>
    import comfy.diffusers_load
  File "C:\AI\ComfyUI\ComfyUI\comfy\diffusers_load.py", line 4, in <module>
    import comfy.sd
  File "C:\AI\ComfyUI\ComfyUI\comfy\sd.py", line 12, in <module>
    from . import clip_vision
  File "C:\AI\ComfyUI\ComfyUI\comfy\clip_vision.py", line 1, in <module>
    from transformers import CLIPVisionModelWithProjection, CLIPVisionConfig, CLIPImageProcessor, modeling_utils
  File "C:\AI\ComfyUI\python_embeded\lib\site-packages\transformers\__init__.py", line 30, in <module>
    from . import dependency_versions_check
  File "C:\AI\ComfyUI\python_embeded\lib\site-packages\transformers\dependency_versions_check.py", line 36, in <module>
    from .utils import is_tokenizers_available
  File "C:\AI\ComfyUI\python_embeded\lib\site-packages\transformers\utils\__init__.py", line 34, in <module>
    from .generic import (
  File "C:\AI\ComfyUI\python_embeded\lib\site-packages\transformers\utils\generic.py", line 33, in <module>
    import tensorflow as tf
  File "C:\AI\ComfyUI\python_embeded\lib\site-packages\tensorflow\__init__.py", line 37, in <module>
    from tensorflow.python.tools import module_util as _module_util
  File "C:\AI\ComfyUI\python_embeded\lib\site-packages\tensorflow\python\__init__.py", line 37, in <module>
    from tensorflow.python.eager import context
  File "C:\AI\ComfyUI\python_embeded\lib\site-packages\tensorflow\python\eager\context.py", line 29, in <module>
    from tensorflow.core.framework import function_pb2
  File "C:\AI\ComfyUI\python_embeded\lib\site-packages\tensorflow\core\framework\function_pb2.py", line 7, in <module>
    from google.protobuf import descriptor as _descriptor
ModuleNotFoundError: No module named 'google'

C:\AI\ComfyUI>pause
Press any key to continue . . .

Additional information

No response

[SOLVED] ValueError: This ORT build has ['AzureExecutionProvider', 'CPUExecutionProvider'] enabled

Hi thanks for the great Nodes. Just my luck, I actually got it to work with one image last night yet this morning I am unable to do and give the below error,

I use comfyui on Colab pro. I had to and still run the following with every runtime:

!pip install insightface
!pip install onnxruntime

Which seemed to work untill it didnt. Other changes I made was to download the the upscalers?

Sorry I have no coding experience

Please help! And Thank you!

Here the console error:

8:21:54 - ReActor Node - STATUS - Working: source face index [0], target face index [0]
!!! Exception during processing !!!
Traceback (most recent call last):
File "/content/drive/MyDrive/ComfyUI/execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "/content/drive/MyDrive/ComfyUI/execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "/content/drive/MyDrive/ComfyUI/execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "/content/drive/MyDrive/ComfyUI/custom_nodes/comfyui-reactor-node/nodes.py", line 75, in execute
script.process(
File "/content/drive/MyDrive/ComfyUI/custom_nodes/comfyui-reactor-node/scripts/reactor_faceswap.py", line 91, in process
result = swap_face(
File "/content/drive/MyDrive/ComfyUI/custom_nodes/comfyui-reactor-node/scripts/reactor_swapper.py", line 137, in swap_face
source_face, wrong_gender = get_face_single(source_img, face_index=source_faces_index[0], gender_source=gender_source)
File "/content/drive/MyDrive/ComfyUI/custom_nodes/comfyui-reactor-node/scripts/reactor_swapper.py", line 81, in get_face_single
face_analyser = copy.deepcopy(getAnalysisModel())
File "/usr/lib/python3.10/copy.py", line 172, in deepcopy
y = _reconstruct(x, memo, *rv)
File "/usr/lib/python3.10/copy.py", line 271, in _reconstruct
state = deepcopy(state, memo)
File "/usr/lib/python3.10/copy.py", line 146, in deepcopy
y = copier(x, memo)
File "/usr/lib/python3.10/copy.py", line 231, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/python3.10/copy.py", line 146, in deepcopy
y = copier(x, memo)
File "/usr/lib/python3.10/copy.py", line 231, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/python3.10/copy.py", line 172, in deepcopy
y = _reconstruct(x, memo, *rv)
File "/usr/lib/python3.10/copy.py", line 271, in _reconstruct
state = deepcopy(state, memo)
File "/usr/lib/python3.10/copy.py", line 146, in deepcopy
y = copier(x, memo)
File "/usr/lib/python3.10/copy.py", line 231, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/python3.10/copy.py", line 172, in deepcopy
y = _reconstruct(x, memo, *rv)
File "/usr/lib/python3.10/copy.py", line 273, in _reconstruct
y.setstate(state)
File "/usr/local/lib/python3.10/dist-packages/insightface/model_zoo/model_zoo.py", line 33, in setstate
self.init(model_path)
File "/usr/local/lib/python3.10/dist-packages/insightface/model_zoo/model_zoo.py", line 25, in init
super().init(model_path, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 432, in init
raise e
File "/usr/local/lib/python3.10/dist-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 419, in init
self._create_inference_session(providers, provider_options, disabled_optimizers)
File "/usr/local/lib/python3.10/dist-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 451, in _create_inference_session
raise ValueError(
ValueError: This ORT build has ['AzureExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['AzureExecutionProvider', 'CPUExecutionProvider'], ...)

Processing halts after recent comfyui changes

First, confirm

  • I have read the instruction carefully
  • I have searched the existing issues
  • I have updated the extension to the latest version

What happened?

Using reactor after updates to comfyui will result in the execution halting and comfui exiting:

`100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████| 60/60 [00:07<00:00, 7.68it/s]
Loading CodeFormer: codeformer-v0.1.0.pth
13:26:45 - ReActor Node - STATUS - Working: source face index [0], target face index [0, 1, 2]
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}

H:\ComfyUI>pause
Press any key to continue . . .`

Steps to reproduce the problem

Your workflow
Run comfyui with reactor-node.

Sysinfo

Windows 10.

Relevant console log

100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████| 60/60 [00:07<00:00,  7.68it/s]
        Loading CodeFormer: codeformer-v0.1.0.pth
13:26:45 - ReActor Node - STATUS - Working: source face index [0], target face index [0, 1, 2]
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}

H:\ComfyUI>pause
Press any key to continue . . .
(base) PS H:\ComfyUI>

Additional information

No response

[SOLVED] Failed to validate prompt for output 9: * ReActorFaceSwap 372

Failed to validate prompt for output 9:
* ReActorFaceSwap 372:
  - Required input is missing: source_image
Output will be ignored
Failed to validate prompt for output 377:
Output will be ignored
Failed to validate prompt for output 373:
Output will be ignored
Failed to validate prompt for output 380:
Output will be ignored

but all input connected... in image, in reference, out image

fatal error C1083: 无法打开包括文件: “Python.h”: No such file or directory

  running build_ext
  building 'insightface.thirdparty.face3d.mesh.cython.mesh_core_cython' extension
  creating build\temp.win-amd64-cpython-310
  creating build\temp.win-amd64-cpython-310\Release
  creating build\temp.win-amd64-cpython-310\Release\insightface
  creating build\temp.win-amd64-cpython-310\Release\insightface\thirdparty
  creating build\temp.win-amd64-cpython-310\Release\insightface\thirdparty\face3d
  creating build\temp.win-amd64-cpython-310\Release\insightface\thirdparty\face3d\mesh
  creating build\temp.win-amd64-cpython-310\Release\insightface\thirdparty\face3d\mesh\cython
  "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iinsightface/thirdparty/face3d/mesh/cython -IE:\sd\comfyui\ComfyUI_windows_portable\python_embeded\lib\site-packages\numpy\core\include -IE:\sd\comfyui\ComfyUI_windows_portable\python_embeded\include -IE:\sd\comfyui\ComfyUI_windows_portable\python_embeded\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tpinsightface/thirdparty/face3d/mesh/cython/mesh_core.cpp /Fobuild\temp.win-amd64-cpython-310\Release\insightface/thirdparty/face3d/mesh/cython/mesh_core.obj
  mesh_core.cpp
  insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(147): warning C4244: “=”: 从“int”转换到“float”,可能丢失数据
  insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(147): warning C4244: “=”: 从“int”转换到“float”,可能丢失数据
  insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(210): warning C4244: “=”: 从“int”转换到“float”,可能丢失数据
  insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(210): warning C4244: “=”: 从“int”转换到“float”,可能丢失数据
  insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(294): warning C4244: “=”: 从“int”转换到“float”,可能丢失数据
  insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(294): warning C4244: “=”: 从“int”转换到“float”,可能丢失数据
  "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iinsightface/thirdparty/face3d/mesh/cython -IE:\sd\comfyui\ComfyUI_windows_portable\python_embeded\lib\site-packages\numpy\core\include -IE:\sd\comfyui\ComfyUI_windows_portable\python_embeded\include -IE:\sd\comfyui\ComfyUI_windows_portable\python_embeded\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tpinsightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp /Fobuild\temp.win-amd64-cpython-310\Release\insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.obj
  mesh_core_cython.cpp
  insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp(36): fatal error C1083: 无法打开包括文件: “Python.h”: No such file or directory
  error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.37.32822\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for insightface
Failed to build insightface
ERROR: Could not build wheels for insightface, which is required to install pyproject.toml-based projects
PS E:\sd\comfyui\ComfyUI_windows_portable>

Error occurred when executing ReActorFaceSwap: Input type (torch.FloatTensor) and weight type (PrivateUse1FloatType) should be the same or input should be a MKLDNN tensor and weight is a dense tensor

First, confirm

  • I have read the instruction carefully
  • I have searched the existing issues
  • I have updated the extension to the latest version

What happened?

I am having the same issue as this, only I'm using ComfyUI -> #40 (comment)

However, the solution "deleting torch and torchvision from the requirements" did not work for me.

I have tried with the following Models:

  • codeformer.pth
  • GFPGANv1.3.pth
  • GFPGANv1.4.pth
  • RestoreFormer.pth

These all work with Roop. But I have since removed Roop in favour of ReActor (as roop development has stopped)

ReActor only works as expected if I use "Face_Restore_Model = None", but obviously the quality is naff.

Error Message is:

Error occurred when executing ReActorFaceSwap:

Input type (torch.FloatTensor) and weight type (PrivateUse1FloatType) should be the same or input should be a MKLDNN tensor and weight is a dense tensor

File "D:\apps\SD-WebUI\ComfyUI\execution.py", line 153, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "D:\apps\SD-WebUI\ComfyUI\execution.py", line 83, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "D:\apps\SD-WebUI\ComfyUI\execution.py", line 76, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "D:\apps\SD-WebUI\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 134, in execute
self.face_helper.get_face_landmarks_5(only_center_face=False, resize=640, eye_dist_threshold=5)
File "E:\ASSETS\AI-TOOLS\COMFY-DATA\custom_nodes\comfyui-reactor-node\r_facelib\utils\face_restoration_helper.py", line 151, in get_face_landmarks_5
bboxes = self.face_det.detect_faces(input_img)
File "E:\ASSETS\AI-TOOLS\COMFY-DATA\custom_nodes\comfyui-reactor-node\r_facelib\detection\retinaface\retinaface.py", line 209, in detect_faces
loc, conf, landmarks, priors = self.__detect_faces(image)
File "E:\ASSETS\AI-TOOLS\COMFY-DATA\custom_nodes\comfyui-reactor-node\r_facelib\detection\retinaface\retinaface.py", line 156, in __detect_faces
loc, conf, landmarks = self(inputs)
File "D:\apps\Python\Python310\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "E:\ASSETS\AI-TOOLS\COMFY-DATA\custom_nodes\comfyui-reactor-node\r_facelib\detection\retinaface\retinaface.py", line 121, in forward
out = self.body(inputs)
File "D:\apps\Python\Python310\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "D:\apps\Python\Python310\lib\site-packages\torchvision\models\_utils.py", line 69, in forward
x = module(x)
File "D:\apps\Python\Python310\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "D:\apps\Python\Python310\lib\site-packages\torch\nn\modules\conv.py", line 463, in forward
return self._conv_forward(input, self.weight, self.bias)
File "D:\apps\Python\Python310\lib\site-packages\torch\nn\modules\conv.py", line 459, in _conv_forward
return F.conv2d(input, weight, bias, self.stride,

Steps to reproduce the problem

Your workflow
workflow

Sysinfo

  • Processor: AMD Ryzen 9 5900X 12-Core Processor 3.70 GHz
  • RAM: 32.0 GB
  • System type: 64-bit operating system, x64-based processor
  • Edition: Windows 11 Pro
  • Version: 22H2
  • OS build: 22621.2500
  • Browser: Edge - But also Tried Opera GX
  • GPU: AMD Radeon RX 6800 XT
  • VRAM 16368 MB GDDR6 2000 MHz (although irrelevant using DirectML + ComfyUI)

Relevant console log

** ComfyUI start up time: 2023-10-19 17:22:28.652095

Prestartup times for custom nodes:
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\rgthree-comfy
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI-Manager

Using directml with device:
Total VRAM 1024 MB, total RAM 32688 MB
Forcing FP32, if this improves things please report it.
Set vram state to: NORMAL_VRAM
Device: privateuseone
VAE dtype: torch.float32
2023-10-19 17:22:33.227642: I tensorflow/c/logging.cc:34] Successfully opened dynamic library D:\apps\Python\Python310\lib\site-packages\tensorflow-plugins/directml/directml.d6f03b303ac3c4f2eeb8ca631688c9757b361310.dll
2023-10-19 17:22:33.227761: I tensorflow/c/logging.cc:34] Successfully opened dynamic library dxgi.dll
2023-10-19 17:22:33.228038: I tensorflow/c/logging.cc:34] Successfully opened dynamic library d3d12.dll
2023-10-19 17:22:33.356063: I tensorflow/c/logging.cc:34] DirectML device enumeration: found 1 compatible adapters.
Using split optimization for cross attention
Adding extra search path checkpoints E:\ASSETS\AI-TOOLS\MODEL-ASSETS\Stable-diffusion
Adding extra search path configs E:\ASSETS\AI-TOOLS\MODEL-ASSETS\configs
Adding extra search path vae E:\ASSETS\AI-TOOLS\MODEL-ASSETS\VAE
Adding extra search path loras E:\ASSETS\AI-TOOLS\MODEL-ASSETS\Lora
Adding extra search path loras E:\ASSETS\AI-TOOLS\MODEL-ASSETS\LyCORIS
Adding extra search path upscale_models E:\ASSETS\AI-TOOLS\MODEL-ASSETS\ESRGAN
Adding extra search path upscale_models E:\ASSETS\AI-TOOLS\MODEL-ASSETS\RealESRGAN
Adding extra search path upscale_models E:\ASSETS\AI-TOOLS\MODEL-ASSETS\SwinIR
Adding extra search path embeddings E:\ASSETS\AI-TOOLS\MODEL-ASSETS\embeddings
Adding extra search path hypernetworks E:\ASSETS\AI-TOOLS\MODEL-ASSETS\hypernetworks
Adding extra search path controlnet E:\ASSETS\AI-TOOLS\MODEL-ASSETS\ControlNet\
Adding extra search path blip E:\ASSETS\AI-TOOLS\MODEL-ASSETS\BLIP
Adding extra search path blip E:\ASSETS\AI-TOOLS\MODEL-ASSETS\BLIP\checkpoints
Adding extra search path wildcards E:\ASSETS\AI-TOOLS\WILDCARD-ASSETS
D:\apps\Python\Python310\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py:69: UserWarning: Specified provider 'CUDAExecutionProvider' is not in available provider names.Available providers: 'AzureExecutionProvider, CPUExecutionProvider'
  warnings.warn(
[Allor]: 0 standard nodes was overridden.
[Allor]: 12 modules enabled.
[Allor]: 95 nodes was loaded.
Bmad-DirtyUndoRedo Loaded.
### Loading: ComfyUI-Impact-Pack (V4.25)
### Loading: ComfyUI-Impact-Pack (Subpack: V0.2.4)
### Loading: ComfyUI-Inspire-Pack (V0.32)
### Loading: ComfyUI-Manager (V0.36)
### ComfyUI Revision: 1594 [e6962120] | Released on '2023-10-19'
INFO:comfyui-prompt-control:Use STYLE:weight_interpretation:normalization at the start of a prompt to use advanced encodings
INFO:comfyui-prompt-control:Weight interpretations available: comfy,A1111,compel,comfy++,down_weight,perp
INFO:comfyui-prompt-control:Normalization types available: none,mean,length,length+mean
Using directml with device:
Total VRAM 1024 MB, total RAM 32688 MB
Forcing FP32, if this improves things please report it.
Set vram state to: NORMAL_VRAM
Device: privateuseone
VAE dtype: torch.float32
Torch version: 2.0.0+cpu
Comfyroll Custom Nodes: Loaded
Registered sys.path: ['E:\\ASSETS\\AI-TOOLS\\COMFY-DATA\\custom_nodes\\comfyui_controlnet_aux\\src\\__init__.py', 'E:\\ASSETS\\AI-TOOLS\\COMFY-DATA\\custom_nodes\\comfyui_controlnet_aux\\src\\custom_pycocotools', 'E:\\ASSETS\\AI-TOOLS\\COMFY-DATA\\custom_nodes\\comfyui_controlnet_aux\\src\\custom_oneformer', 'E:\\ASSETS\\AI-TOOLS\\COMFY-DATA\\custom_nodes\\comfyui_controlnet_aux\\src\\custom_mmpkg', 'E:\\ASSETS\\AI-TOOLS\\COMFY-DATA\\custom_nodes\\comfyui_controlnet_aux\\src\\custom_midas_repo', 'E:\\ASSETS\\AI-TOOLS\\COMFY-DATA\\custom_nodes\\comfyui_controlnet_aux\\src\\custom_detectron2', 'E:\\ASSETS\\AI-TOOLS\\COMFY-DATA\\custom_nodes\\comfyui_controlnet_aux\\src\\controlnet_aux', 'E:\\ASSETS\\AI-TOOLS\\COMFY-DATA\\custom_nodes\\comfyui_controlnet_aux\\src', 'E:\\ASSETS\\AI-TOOLS\\COMFY-DATA\\custom_nodes\\ComfyUI_Comfyroll_CustomNodes\\comfy', 'E:\\ASSETS\\AI-TOOLS\\COMFY-DATA\\custom_nodes\\ComfyUI_Comfyroll_CustomNodes\\comfy', 'E:\\ASSETS\\AI-TOOLS\\COMFY-DATA\\custom_nodes\\ComfyUI-WD14-Tagger\\comfy', 'E:\\ASSETS\\AI-TOOLS\\COMFY-DATA\\custom_nodes\\comfyui-prompt-control\\comfy', 'D:\\apps\\SD-WebUI\\ComfyUI\\custom_nodes\\ComfyUI-Custom-Scripts', 'D:\\apps\\Python\\Python310\\lib\\site-packages\\git\\ext\\gitdb', 'E:\\ASSETS\\AI-TOOLS\\COMFY-DATA\\custom_nodes\\comfy', 'D:\\apps\\SD-WebUI\\ComfyUI\\comfy', 'D:\\apps\\SD-WebUI\\ComfyUI', 'D:\\apps\\Python\\Python310\\python310.zip', 'D:\\apps\\Python\\Python310\\DLLs', 'D:\\apps\\Python\\Python310\\lib', 'D:\\apps\\Python\\Python310', 'C:\\Users\\lethris\\AppData\\Roaming\\Python\\Python310\\site-packages', 'D:\\apps\\Python\\Python310\\lib\\site-packages', 'D:\\apps\\Python\\Python310\\lib\\site-packages\\win32', 'D:\\apps\\Python\\Python310\\lib\\site-packages\\win32\\lib', 'D:\\apps\\Python\\Python310\\lib\\site-packages\\Pythonwin', 'D:\\apps\\SD-WebUI\\ComfyUI\\custom_nodes\\ComfyUI-Impact-Pack\\modules', 'D:\\apps\\SD-WebUI\\ComfyUI\\custom_nodes\\ComfyUI-Impact-Pack\\impact_subpack', '../..']
Davemane42 Custom Nodes: Loaded
FizzleDorf Custom Nodes: Loaded
__name__ : ComfyUI_node_Lilly
__file__ : D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_node_Lilly\__init__.py
os.path.basename(__file__) : __init__.py
os.path.splitext(os.path.basename(__file__))[0] : __init__
working directory :  D:\apps\SD-WebUI\ComfyUI
───────────────────────────────────────  init start  ────────────────────────────────────────
__name__ : custom_nodes.ComfyUI_node_Lilly
__file__ : D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_node_Lilly\__init__.py
os.path.basename(__file__) : __init__.py
os.path.splitext(os.path.basename(__file__))[0] : __init__
working directory :  D:\apps\SD-WebUI\ComfyUI
[17:22:47] Load ok   : CheckpointLoaderRandom                                  __init__.py:83
           Load ok   : CheckpointLoaderSimpleText                              __init__.py:83
[17:22:47] wildcards card_path :                                              wildcards.py:36
           D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_node_Lilly\..\..\wil
           dcards\**\*.txt
╭──────────────────────────── Traceback (most recent call last) ────────────────────────────╮
│ D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_node_Lilly\__init__.py:74 in add            │
│                                                                                           │
│    71 │   │   try:                                                                        │
│    72 │   │   │   #pkg = importlib.import_module(f"{md}{name}")                           │
│    73 │   │   │   #eval(f"{md}{name}")                                                    │
│ ❱  74 │   │   │   exec(f"import {md}{name}")                                              │
│    75 │   │   │   if clist is None:                                                       │
│    76 │   │   │   │   NODE_CLASS_MAPPINGS[name]=eval(f"{md}{name}.{name}")                │
│    77 │   │   │   elif type(clist) is str:                                                │
│ in <module>:1                                                                             │
│                                                                                           │
│ D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_node_Lilly\CLIPTextEncodeWildcards.py:10 in │
│ <module>                                                                                  │
│                                                                                           │
│    7 │   from wildcards import wildcards                                                  │
│    8 else:                                                                                │
│    9 │   from .ConsoleColor import print, console                                         │
│ ❱ 10 │   from .wildcards import wildcards                                                 │
│   11 #print(__file__)                                                                     │
│   12 #print(os.path.basename(__file__))                                                   │
│   13                                                                                      │
│                                                                                           │
│ D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_node_Lilly\wildcards.py:218 in <module>     │
│                                                                                           │
│   215 #print("wildcards test : "+wildcards.run("{9$$-$$a|b|c}"))                          │
│   216 #print("wildcards test : "+wildcards.run("{9$$ {and|or} $$a|b|c}"))                 │
│   217 #print("wildcards test : "+wildcards.run("{{slender,|} {nature,|} {curvy,|} {thin,| │
│ ❱ 218 print("wildcards test : "+wildcards.run("__aest__"))                                │
│   219 print("wildcards test : "+wildcards.run("__*test__"))                               │
│   220 print("wildcards test : "+wildcards.run("__?est__"))                                │
│   221 print("wildcards test : "+wildcards.run("__test__"))                                │
│                                                                                           │
│ D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_node_Lilly\wildcards.py:197 in run          │
│                                                                                           │
│   194 │   │   │   print("[red]text is not str : [/red]",text)                             │
│   195 │   │   │   return None                                                             │
│   196 │   │   if not wildcards.is_card_Load or load:                                      │
│ ❱ 197 │   │   │   wildcards.card_load()                                                   │
│   198 │   │                                                                               │
│   199 │   │   #print(f"text : {text}")                                                    │
│   200 │   │   result=wildcards.card_loop(text)                                            │
│                                                                                           │
│ D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_node_Lilly\wildcards.py:177 in card_load    │
│                                                                                           │
│   174 │   │   │   │   raw_data = f.read()                                                 │
│   175 │   │   │   │   encoding = chardet.detect(raw_data)["encoding"]                     │
│   176 │   │   │   with open(file, "r", encoding=encoding) as f:                           │
│ ❱ 177 │   │   │   │   lines = f.readlines()                                               │
│   178 │   │   │   │   for line in lines:                                                  │
│   179 │   │   │   │   │   line=line.strip()                                               │
│   180 │   │   │   │   │   # 주석 빈줄 제외                                                │
│                                                                                           │
│ D:\apps\Python\Python310\lib\encodings\cp1254.py:23 in decode                             │
│                                                                                           │
│    20                                                                                     │
│    21 class IncrementalDecoder(codecs.IncrementalDecoder):                                │
│    22 │   def decode(self, input, final=False):                                           │
│ ❱  23 │   │   return codecs.charmap_decode(input,self.errors,decoding_table)[0]           │
│    24                                                                                     │
│    25 class StreamWriter(Codec,codecs.StreamWriter):                                      │
│    26 │   pass                                                                            │
╰───────────────────────────────────────────────────────────────────────────────────────────╯
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 55: character maps to
<undefined>
[17:22:48] Load ok   : LoraLoaderText                                          __init__.py:83
           Load ok   : LoraLoaderTextRandom                                    __init__.py:83
           Load ok   : Random_Sampler                                          __init__.py:83
           Load ok   : VAELoaderDecode                                         __init__.py:83
           Load ok   : VAELoaderText                                           __init__.py:83
Using directml with device:
Total VRAM 1024 MB, total RAM 32688 MB
Forcing FP32, if this improves things please report it.
Set vram state to: NORMAL_VRAM
Device: privateuseone
VAE dtype: torch.float32
[17:22:48] wildcards card_path :                                              wildcards.py:36
           D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_node_Lilly\..\..\wil
           dcards\**\*.txt
╭──────────────────────────── Traceback (most recent call last) ────────────────────────────╮
│ D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_node_Lilly\__init__.py:74 in add            │
│                                                                                           │
│    71 │   │   try:                                                                        │
│    72 │   │   │   #pkg = importlib.import_module(f"{md}{name}")                           │
│    73 │   │   │   #eval(f"{md}{name}")                                                    │
│ ❱  74 │   │   │   exec(f"import {md}{name}")                                              │
│    75 │   │   │   if clist is None:                                                       │
│    76 │   │   │   │   NODE_CLASS_MAPPINGS[name]=eval(f"{md}{name}.{name}")                │
│    77 │   │   │   elif type(clist) is str:                                                │
│ in <module>:1                                                                             │
│                                                                                           │
│ D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_node_Lilly\SimpleSampler.py:37 in <module>  │
│                                                                                           │
│    34 │   from wildcards import wildcards                                                 │
│    35 else:                                                                               │
│    36 │   from .ConsoleColor import print, console                                        │
│ ❱  37 │   from .wildcards import wildcards                                                │
│    38 #print(__file__)                                                                    │
│    39 #print(os.path.basename(__file__))                                                  │
│    40                                                                                     │
│                                                                                           │
│ D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_node_Lilly\wildcards.py:218 in <module>     │
│                                                                                           │
│   215 #print("wildcards test : "+wildcards.run("{9$$-$$a|b|c}"))                          │
│   216 #print("wildcards test : "+wildcards.run("{9$$ {and|or} $$a|b|c}"))                 │
│   217 #print("wildcards test : "+wildcards.run("{{slender,|} {nature,|} {curvy,|} {thin,| │
│ ❱ 218 print("wildcards test : "+wildcards.run("__aest__"))                                │
│   219 print("wildcards test : "+wildcards.run("__*test__"))                               │
│   220 print("wildcards test : "+wildcards.run("__?est__"))                                │
│   221 print("wildcards test : "+wildcards.run("__test__"))                                │
│                                                                                           │
│ D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_node_Lilly\wildcards.py:197 in run          │
│                                                                                           │
│   194 │   │   │   print("[red]text is not str : [/red]",text)                             │
│   195 │   │   │   return None                                                             │
│   196 │   │   if not wildcards.is_card_Load or load:                                      │
│ ❱ 197 │   │   │   wildcards.card_load()                                                   │
│   198 │   │                                                                               │
│   199 │   │   #print(f"text : {text}")                                                    │
│   200 │   │   result=wildcards.card_loop(text)                                            │
│                                                                                           │
│ D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_node_Lilly\wildcards.py:177 in card_load    │
│                                                                                           │
│   174 │   │   │   │   raw_data = f.read()                                                 │
│   175 │   │   │   │   encoding = chardet.detect(raw_data)["encoding"]                     │
│   176 │   │   │   with open(file, "r", encoding=encoding) as f:                           │
│ ❱ 177 │   │   │   │   lines = f.readlines()                                               │
│   178 │   │   │   │   for line in lines:                                                  │
│   179 │   │   │   │   │   line=line.strip()                                               │
│   180 │   │   │   │   │   # 주석 빈줄 제외                                                │
│                                                                                           │
│ D:\apps\Python\Python310\lib\encodings\cp1254.py:23 in decode                             │
│                                                                                           │
│    20                                                                                     │
│    21 class IncrementalDecoder(codecs.IncrementalDecoder):                                │
│    22 │   def decode(self, input, final=False):                                           │
│ ❱  23 │   │   return codecs.charmap_decode(input,self.errors,decoding_table)[0]           │
│    24                                                                                     │
│    25 class StreamWriter(Codec,codecs.StreamWriter):                                      │
│    26 │   pass                                                                            │
╰───────────────────────────────────────────────────────────────────────────────────────────╯
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 55: character maps to
<undefined>
[17:22:49] Load ok   : SaveImageSimple                                         __init__.py:83
[17:22:49] wildcards card_path :                                              wildcards.py:36
           D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_node_Lilly\..\..\wil
           dcards\**\*.txt
╭──────────────────────────── Traceback (most recent call last) ────────────────────────────╮
│ D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_node_Lilly\__init__.py:74 in add            │
│                                                                                           │
│    71 │   │   try:                                                                        │
│    72 │   │   │   #pkg = importlib.import_module(f"{md}{name}")                           │
│    73 │   │   │   #eval(f"{md}{name}")                                                    │
│ ❱  74 │   │   │   exec(f"import {md}{name}")                                              │
│    75 │   │   │   if clist is None:                                                       │
│    76 │   │   │   │   NODE_CLASS_MAPPINGS[name]=eval(f"{md}{name}.{name}")                │
│    77 │   │   │   elif type(clist) is str:                                                │
│ in <module>:1                                                                             │
│                                                                                           │
│ D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_node_Lilly\TextWildcards.py:10 in <module>  │
│                                                                                           │
│    7 │   from wildcards import wildcards                                                  │
│    8 else:                                                                                │
│    9 │   from .ConsoleColor import print, console                                         │
│ ❱ 10 │   from .wildcards import wildcards                                                 │
│   11                                                                                      │
│   12                                                                                      │
│   13 class TextWildcards:                                                                 │
│                                                                                           │
│ D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_node_Lilly\wildcards.py:218 in <module>     │
│                                                                                           │
│   215 #print("wildcards test : "+wildcards.run("{9$$-$$a|b|c}"))                          │
│   216 #print("wildcards test : "+wildcards.run("{9$$ {and|or} $$a|b|c}"))                 │
│   217 #print("wildcards test : "+wildcards.run("{{slender,|} {nature,|} {curvy,|} {thin,| │
│ ❱ 218 print("wildcards test : "+wildcards.run("__aest__"))                                │
│   219 print("wildcards test : "+wildcards.run("__*test__"))                               │
│   220 print("wildcards test : "+wildcards.run("__?est__"))                                │
│   221 print("wildcards test : "+wildcards.run("__test__"))                                │
│                                                                                           │
│ D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_node_Lilly\wildcards.py:197 in run          │
│                                                                                           │
│   194 │   │   │   print("[red]text is not str : [/red]",text)                             │
│   195 │   │   │   return None                                                             │
│   196 │   │   if not wildcards.is_card_Load or load:                                      │
│ ❱ 197 │   │   │   wildcards.card_load()                                                   │
│   198 │   │                                                                               │
│   199 │   │   #print(f"text : {text}")                                                    │
│   200 │   │   result=wildcards.card_loop(text)                                            │
│                                                                                           │
│ D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_node_Lilly\wildcards.py:177 in card_load    │
│                                                                                           │
│   174 │   │   │   │   raw_data = f.read()                                                 │
│   175 │   │   │   │   encoding = chardet.detect(raw_data)["encoding"]                     │
│   176 │   │   │   with open(file, "r", encoding=encoding) as f:                           │
│ ❱ 177 │   │   │   │   lines = f.readlines()                                               │
│   178 │   │   │   │   for line in lines:                                                  │
│   179 │   │   │   │   │   line=line.strip()                                               │
│   180 │   │   │   │   │   # 주석 빈줄 제외                                                │
│                                                                                           │
│ D:\apps\Python\Python310\lib\encodings\cp1254.py:23 in decode                             │
│                                                                                           │
│    20                                                                                     │
│    21 class IncrementalDecoder(codecs.IncrementalDecoder):                                │
│    22 │   def decode(self, input, final=False):                                           │
│ ❱  23 │   │   return codecs.charmap_decode(input,self.errors,decoding_table)[0]           │
│    24                                                                                     │
│    25 class StreamWriter(Codec,codecs.StreamWriter):                                      │
│    26 │   pass                                                                            │
╰───────────────────────────────────────────────────────────────────────────────────────────╯
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 55: character maps to
<undefined>
────────────────────────────────────────  init end  ─────────────────────────────────────────
[tinyterraNodes] Loaded
[comfy_mtb] | WARNING -> Failed to remove web mtb directory: Cannot call rmtree on a symbolic link
Please manually remove it from disk (D:\apps\SD-WebUI\ComfyUI\web\extensions\mtb) and restart the server.
[comfy_mtb] | STATUS -> loaded 52 nodes successfuly
[comfy_mtb] | STATUS -> Some nodes (3) could not be loaded. This can be ignored, but go to http://127.0.0.1:8188/mtb if you want more information.
D:\apps\SD-WebUI\ComfyUI\custom_nodes\failfast-comfyui-extensions\extensions
D:\apps\SD-WebUI\ComfyUI\web\extensions\failfast-comfyui-extensions
Downloading anime face detector...
Failed to download lbpcascade_animeface.xml so please download it yourself.
Updating: Quality of Life Suit...
done: Quality of Life Suit, updated successfully...
QualityOfLifeSuit_Omar92_DIR: D:\apps\SD-WebUI\ComfyUI\custom_nodes\QualityOfLifeSuit_Omar92

[rgthree] Loaded 15 exciting nodes.
[rgthree] Optimizing ComfyUI recursive execution. If queueing and/or re-queueing seems broken, change "patch_recursive_execution" to false in rgthree_config.json

Searge-SDXL v4.2 in E:\ASSETS\AI-TOOLS\COMFY-DATA\custom_nodes\SeargeSDXL
WAS Node Suite: Importing styles from `D:\apps\SD-WebUI\ComfyUI\styles.csv`.
WAS Node Suite: Styles import complete.
WAS Node Suite: BlenderNeko's Advanced CLIP Text Encode found, attempting to enable `CLIPTextEncode` support.
WAS Node Suite: `CLIPTextEncode (BlenderNeko Advanced + NSP)` node enabled under `WAS Suite/Conditioning` menu.
WARNING: Ignoring invalid distribution -rotobuf (d:\apps\python\python310\lib\site-packages)
WAS Node Suite: OpenCV Python FFMPEG support is enabled
WAS Node Suite: `ffmpeg_bin_path` is set to: D:\apps\SD-WebUI\stable-diffusion-webui-directml\venv\Lib\site-packages
WARNING: Ignoring invalid distribution -rotobuf (d:\apps\python\python310\lib\site-packages)
WAS Node Suite: Finished. Loaded 197 nodes successfully.

        "Art is the mirror that reflects the beauty within us." - Unknown


Import times for custom nodes:
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\imageflip_ally.py
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\gaussian_blur_ally.py
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\SDXLAspectRatio.py
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ksampler_sdxl.py
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\sharpness_ally.py
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\rembg-comfyui-node
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\histogram_equalization.py
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\Pseudo_HDR_ally.py
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\fcSuite.py
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\clip_text_encode_split.py
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\saturation_ally.py
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\conditioning_sizing_for_SDXL.py
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\brightness_contrast_ally.py
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\CLIPTextFromTemplateEncode.py
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_ResolutionSelector
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\sdxl_prompt_styler
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\Mile_High_Styler
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\sdxl-recommended-res-calc
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_SimpleMath
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI-Styles_CSV_Loader
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ControlNet-LLLite-ComfyUI
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\comfy-plasma
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI-post-processing-nodes
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\comfyui-optical-flow
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_Noise
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_ADV_CLIP_emb
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_TiledKSampler
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_Cutoff
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\comfy_clip_blip_node
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI-WD14-Tagger
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\comfy-nodes
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI-Bmad-DirtyUndoRedo
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI-TacoNodes
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_NestedNodeBuilder
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_Dave_CustomNode
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\IPAdapter-ComfyUI
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_FizzNodes
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_experiments
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyMath
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\images-grid-comfy-plugin
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI-Inspire-Pack
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyQR-scanning-nodes
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI-Custom-Scripts
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_Load_Image_With_Metadata
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyQR
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\efficiency-nodes-comfyui
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\Derfuu_ComfyUI_ModdedNodes
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\failfast-comfyui-extensions
   0.0 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\comfyui_controlnet_aux
   0.1 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\comfyui-prompt-control
   0.1 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\rgthree-comfy
   0.1 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_tinyterraNodes
   0.2 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\comfyui-reactor-node
   0.2 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\comfy_mtb
   0.3 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\SeargeSDXL
   0.3 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\sdxl_prompt_styler-main
   0.4 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\QualityOfLifeSuit_Omar92
   0.5 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\comfyui-dynamicprompts
   0.6 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI-Manager
   0.6 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI-Allor
   0.6 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\abg-comfyui
   2.3 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_Custom_Nodes_AlekPet
   2.4 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\was-node-suite-comfyui
   2.9 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI_node_Lilly
   7.3 seconds: D:\apps\SD-WebUI\ComfyUI\custom_nodes\ComfyUI-Impact-Pack

Starting server

To see the GUI go to: http://127.0.0.1:8188
got prompt
STATUS:comfyui-prompt-control:Resolving wildcards...
model_type EPS
adm 0
Using split attention in VAE
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
Using split attention in VAE
missing {'cond_stage_model.logit_scale', 'cond_stage_model.text_projection'}
left over keys: dict_keys(['alphas_cumprod', 'alphas_cumprod_prev', 'betas', 'log_one_minus_alphas_cumprod', 'model_ema.decay', 'model_ema.num_updates', 'posterior_log_variance_clipped', 'posterior_mean_coef1', 'posterior_mean_coef2', 'posterior_variance', 'sqrt_alphas_cumprod', 'sqrt_one_minus_alphas_cumprod', 'sqrt_recip_alphas_cumprod', 'sqrt_recipm1_alphas_cumprod'])
Requested to load SD1ClipModel
Loading 1 new model
Requested to load BaseModel
Loading 1 new model
100%|███████████████████████████████████████████████████████| 20/20 [01:38<00:00,  4.93s/it]
17:25:31 - ReActor Node - STATUS - Working: source face index [0], target face index [0]
17:25:31 - ReActor Node - STATUS - Analyzing Source Image...
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: D:\apps\SD-WebUI\ComfyUI\models\insightface\models\buffalo_l\1k3d68.onnx landmark_3d_68 ['None', 3, 192, 192] 0.0 1.0
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: D:\apps\SD-WebUI\ComfyUI\models\insightface\models\buffalo_l\2d106det.onnx landmark_2d_106 ['None', 3, 192, 192] 0.0 1.0
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: D:\apps\SD-WebUI\ComfyUI\models\insightface\models\buffalo_l\det_10g.onnx detection [1, 3, '?', '?'] 127.5 128.0
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: D:\apps\SD-WebUI\ComfyUI\models\insightface\models\buffalo_l\genderage.onnx genderage ['None', 3, 96, 96] 0.0 1.0
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: D:\apps\SD-WebUI\ComfyUI\models\insightface\models\buffalo_l\w600k_r50.onnx recognition ['None', 3, 112, 112] 127.5 127.5
set det-size: (640, 640)
17:25:38 - ReActor Node - STATUS - Analyzing Target Image...
set det-size: (640, 640)
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
inswapper-shape: [1, 3, 128, 128]
ERROR:root:!!! Exception during processing !!!
ERROR:root:Traceback (most recent call last):
  File "D:\apps\SD-WebUI\ComfyUI\execution.py", line 153, in recursive_execute
    output_data, output_ui = get_output_data(obj, input_data_all)
  File "D:\apps\SD-WebUI\ComfyUI\execution.py", line 83, in get_output_data
    return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
  File "D:\apps\SD-WebUI\ComfyUI\execution.py", line 76, in map_node_over_list
    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
  File "D:\apps\SD-WebUI\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 134, in execute
    self.face_helper.get_face_landmarks_5(only_center_face=False, resize=640, eye_dist_threshold=5)
  File "E:\ASSETS\AI-TOOLS\COMFY-DATA\custom_nodes\comfyui-reactor-node\r_facelib\utils\face_restoration_helper.py", line 151, in get_face_landmarks_5
    bboxes = self.face_det.detect_faces(input_img)
  File "E:\ASSETS\AI-TOOLS\COMFY-DATA\custom_nodes\comfyui-reactor-node\r_facelib\detection\retinaface\retinaface.py", line 209, in detect_faces
    loc, conf, landmarks, priors = self.__detect_faces(image)
  File "E:\ASSETS\AI-TOOLS\COMFY-DATA\custom_nodes\comfyui-reactor-node\r_facelib\detection\retinaface\retinaface.py", line 156, in __detect_faces
    loc, conf, landmarks = self(inputs)
  File "D:\apps\Python\Python310\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "E:\ASSETS\AI-TOOLS\COMFY-DATA\custom_nodes\comfyui-reactor-node\r_facelib\detection\retinaface\retinaface.py", line 121, in forward
    out = self.body(inputs)
  File "D:\apps\Python\Python310\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "D:\apps\Python\Python310\lib\site-packages\torchvision\models\_utils.py", line 69, in forward
    x = module(x)
  File "D:\apps\Python\Python310\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "D:\apps\Python\Python310\lib\site-packages\torch\nn\modules\conv.py", line 463, in forward
    return self._conv_forward(input, self.weight, self.bias)
  File "D:\apps\Python\Python310\lib\site-packages\torch\nn\modules\conv.py", line 459, in _conv_forward
    return F.conv2d(input, weight, bias, self.stride,
RuntimeError: Input type (torch.FloatTensor) and weight type (PrivateUse1FloatType) should be the same or input should be a MKLDNN tensor and weight is a dense tensor

Prompt executed in 116.57 seconds

Additional information

PIP Packages:

Package Version


absl-py 1.4.0
accelerate 0.21.0
addict 2.4.0
aiofiles 23.2.1
aiohttp 3.8.5
aiosignal 1.3.1
albumentations 1.3.1
aliyun-python-sdk-core 2.13.36
aliyun-python-sdk-kms 2.16.1
altair 5.1.1
annotated-types 0.5.0
antlr4-python3-runtime 4.9.3
anyio 3.7.1
asgiref 3.7.2
astunparse 1.6.3
async-timeout 4.0.2
asyncer 0.0.2
attrs 23.1.0
basicsr 1.4.2
beautifulsoup4 4.12.2
boltons 23.0.0
boto3 1.28.44
botocore 1.31.44
cachetools 5.3.1
certifi 2023.7.22
cffi 1.15.1
chardet 3.0.4
charset-normalizer 3.2.0
click 8.1.6
cmake 3.27.0
colorama 0.4.6
coloredlogs 15.0.1
compel 2.0.2
contourpy 1.1.0
controlnet-aux 0.0.7
crcmod 1.7
cryptography 41.0.3
cssselect2 0.7.0
cstr 0.0.1
cycler 0.11.0
Cython 3.0.0
deep-translator 1.11.4
diffusers 0.22.0.dev0
Django 4.2.4
dynamicprompts 0.29.0
easydict 1.10
einops 0.6.1
exceptiongroup 1.1.3
facexlib 0.3.0
fairscale 0.4.4
fastapi 0.103.1
ffmpeg 1.4
ffmpy 0.3.0
filelock 3.12.2
filetype 1.2.0
filterpy 1.4.5
flatbuffers 23.5.26
fonttools 4.42.0
frozenlist 1.4.0
fsspec 2023.6.0
ftfy 6.1.1
future 0.18.3
fvcore 0.1.5.post20221221
gast 0.4.0
gdown 4.7.1
gfpgan 1.3.8
gitdb 4.0.10
GitPython 3.1.32
google-auth 2.22.0
google-auth-oauthlib 0.4.6
google-pasta 0.2.0
googletrans 3.1.0a0
gradio 3.42.0
gradio_client 0.5.0
grpcio 1.56.2
h11 0.9.0
h2 3.2.0
h5py 3.9.0
hpack 3.0.0
hstspreload 2023.1.1
httpcore 0.9.1
httpx 0.13.3
huggingface-hub 0.16.4
humanfriendly 10.0
hyperframe 5.2.0
idna 2.10
image 1.5.33
imageio 2.31.1
imageio-ffmpeg 0.4.9
img2texture 1.0.6
importlib-metadata 6.8.0
importlib-resources 6.0.1
insightface 0.7.3
iopath 0.1.10
Jinja2 3.1.2
jmespath 0.10.0
joblib 1.3.1
jsonschema 4.19.0
jsonschema-specifications 2023.7.1
keras 2.10.0
Keras-Preprocessing 1.1.2
kiwisolver 1.4.4
lark 1.1.7
lazy_loader 0.3
libclang 16.0.6
llvmlite 0.40.1
lmdb 1.4.1
lxml 4.9.3
Markdown 3.4.4
markdown-it-py 3.0.0
MarkupSafe 2.1.3
matplotlib 3.7.2
mdurl 0.1.2
mediapipe 0.10.3
mmcv 2.0.0
mmdet 3.0.0
mmengine 0.7.4
model-index 0.1.11
mpmath 1.3.0
multidict 6.0.4
networkx 3.1
numba 0.57.1
numexpr 2.8.4
numpy 1.23.5
oauthlib 3.2.2
omegaconf 2.3.0
onnx 1.14.0
onnxruntime 1.16.1
onnxruntime-directml 1.16.0
onnxruntime-gpu 1.15.1
openai 0.27.8
opencv-contrib-python 4.8.0.74
opencv-python 4.8.0.76
opencv-python-headless 4.7.0.72
opendatalab 0.0.10
openmim 0.3.9
openxlab 0.0.17
opt-einsum 3.3.0
ordered-set 4.1.0
orjson 3.9.5
oss2 2.17.0
packaging 23.1
pandas 2.0.3
piexif 1.1.3
pilgram 1.2.1
Pillow 9.5.0
pip 23.2.1
platformdirs 3.10.0
pooch 1.7.0
portalocker 2.7.0
prettytable 3.6.0
protobuf 3.20.3
psutil 5.9.5
py-cpuinfo 9.0.0
pyasn1 0.5.0
pyasn1-modules 0.3.0
pycocoevalcap 1.2
pycocotools 2.0.6
pycparser 2.21
pycryptodome 3.18.0
pydantic 2.3.0
pydantic_core 2.6.3
pydub 0.25.1
pygit2 1.12.2
Pygments 2.15.1
PyMatting 1.1.8
pyparsing 3.0.9
pypng 0.20220715.0
pyreadline3 3.4.1
PySocks 1.7.1
python-dateutil 2.8.2
python-multipart 0.0.6
pytz 2023.3
PyWavelets 1.4.1
pywin32 306
PyYAML 6.0.1
pyzbar 0.1.9
qrcode 7.4.2
qudida 0.0.4
referencing 0.30.2
regex 2023.6.3
rembg 2.0.50
reportlab 4.0.4
requests 2.28.2
requests-oauthlib 1.3.1
requirements-parser 0.5.0
rfc3986 1.5.0
rich 13.4.2
rich-argparse 1.3.0
rpds-py 0.10.2
rsa 4.9
s3transfer 0.6.2
safetensors 0.3.1
scikit-image 0.20.0
scikit-learn 1.3.0
scipy 1.11.1
seaborn 0.12.2
segment-anything 1.0
semantic-version 2.10.0
setuptools 60.2.0
shapely 2.0.1
simpleeval 0.9.13
simplejson 3.19.1
six 1.16.0
smmap 5.0.0
sniffio 1.3.0
sounddevice 0.4.6
soupsieve 2.4.1
sqlparse 0.4.4
starlette 0.27.0
svglib 1.5.1
sympy 1.12
tabulate 0.9.0
tb-nightly 2.12.0a20230126
tensorboard 2.10.1
tensorboard-data-server 0.6.1
tensorboard-plugin-wit 1.8.1
tensorflow 2.10.1
tensorflow-cpu 2.10.0
tensorflow-directml-plugin 0.4.0.dev230202
tensorflow-estimator 2.10.0
tensorflow_intel 2.10.0
tensorflow-io-gcs-filesystem 0.31.0
termcolor 2.3.0
terminaltables 3.1.10
threadpoolctl 3.2.0
tifffile 2023.7.18
timm 0.6.13
tinycss2 1.2.1
tokenizers 0.13.3
tomli 2.0.1
toolz 0.12.0
torch 2.0.0
torch-directml 0.2.0.dev230426
torchsde 0.2.5
torchvision 0.15.1
tqdm 4.65.0
trampoline 0.1.2
transformers 4.26.1
types-setuptools 68.1.0.0
typing_extensions 4.7.1
tzdata 2023.3
ultralytics 8.0.147
urllib3 1.26.16
uvicorn 0.23.2
watchdog 3.0.0
wcwidth 0.2.6
webencodings 0.5.1
websockets 11.0.3
Werkzeug 2.3.6
wheel 0.41.2
wrapt 1.15.0
yacs 0.1.8
yapf 0.40.1
yarl 1.9.2
zipp 3.16.2

inswapper_128.onnx may be unsafe

First, confirm

  • I have read the instruction carefully
  • I have searched the existing issues
  • I have updated the extension to the latest version

What happened?

Hi, please read the following for your consideration;
deepinsight/insightface#2315

It's important for the community as a whole to not get in to the habit of downloading unknown binaries. I tried my best to get the authors of inswapper_128.onnx to publish the checksum hash of the file, but to no joy.

Proceed with caution.

p.s. runew0lf, you are the lamest

Steps to reproduce the problem

Your workflow
n/a

Sysinfo

n/a

Relevant console log

n/a

Additional information

No response

Gender Handling in ReActor, with problems and a wish

I just saw that you closed the original issue since I started writing this, so I repeat it in this new issue to be sure that you see it.

It's very nice that you have added the gender handling, thank you so much. I have updated the node and tested it, and it worked as expected.

I initially had a problem: After git pull updating, the node (in an existing workflow) had the new gender fields, but the two inputs kept their original legends but had their new positions which caused my wiring to fail. It was very confusing and I didn't understand it until I deleted the node and replaced it with a new one.

The new nomenclature - source for the source faces and input for the image to be changed - is very confusing, at least to me. Source and input are two concepts rather close to each other. Much better to call them what you do in A1111: Source for the source faces, target for the image that is to be changed. You actually do that in the ComfyUI log.

If you don't know ReActor from A1111, it's not clear that you can specify a list of indexes, not just one index.

A question: Do you count the detected faces from left to right, or is top to bottom also involved?

A wish: Do you have (or know of) a way of showing the analysis of an image: The number of faces found and a sequence of gender M and F's? If the information is readily available, you could output the information as text or - ideally - the original target image with face number and gender marked on top of its detected faces. This would be nice for A1111 too. Not everyone has access to logs so some output would be preferable, although log output could be a first step.

Error reactor.execute() got an unexpected keyword argument 'reference_image'

Error occurred when executing ReActorFaceSwap:

reactor.execute() got an unexpected keyword argument 'reference_image'

File "F:\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "F:\ComfyUI_windows_portable\ComfyUI\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "F:\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))

ReActor node in bypass mode outputs source image, not input image

First, confirm

  • I have read the instruction carefully
  • I have searched the existing issues
  • I have updated the extension to the latest version

What happened?

When using the node with ComfyUI and deactivating it with "bypass" (Ctrl-B), rather than outputting the input image, it outputs the source image, giving unpredictable results.

It would make more sense that it outputs the unchanged input image. I'm not sure if this is a ReActor issue, or if deactivated nodes just output the first input image as the output. In that case switching the order of the input and source images on the node would probably fix the issue.

Steps to reproduce the problem

Any workflow will show the issue, just bypass the node with Ctrl-B.

image

Sysinfo

Windows, Python 3.10, ComfyUI standalone with venv

Relevant console log

Starting server

To see the GUI go to: http://127.0.0.1:8188
FETCH DATA from: Z:\ML\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json
got prompt
WAS Node Suite: Batch 001 Index: 21
08:09:44 - ReActor Node - STATUS - Working: source face index [0], target face index [0]
08:09:48 - ReActor Node - STATUS - Target Face 0: Detected Gender -M-
08:09:48 - ReActor Node - STATUS - WRONG - Detected Gender doesn't match Condition
Prompt executed in 5.41 seconds

Additional information

No response

[SOLVED] ValueError: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] enabled

Dear developers, tinkerers and tech people

Yesterday I was messing around with faceFusion, and im almost sure I broke something regarding to opencv or onnxruntime
Not using venv :-(

  • opencv-python==4.8.0.76
  • pip uninstall onnxruntime onnxruntime-gpu
  • pip install onnxruntime-gpu==1.15.1

Now I have following error:
ValueError: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'], ...)

What I already did :

  • New clone of ComfyUI
  • New clone of reactor-node
  • pip uninstall opencv-python==4.8.0.76
  • pip install opencv-python==4.7.0.72
  • pip install -r requirements.txt-
  • pip uninstall onnxruntime
  • pip install onnxruntime-gpu
  • reinstall reactor node via Manager
  • Cuda deinstall
  • Remove PATH variables:
  • CUDA_HOME == C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\
  • CUDA_PATH == C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\
  • CUDA_V11_8 == C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\
  • Reboot PC

Still the same error.

Can any of you help me out?
I would be very happy to use the cool node again without reinstalling windows.

Kr
Jack

[SOLVED] Can't start comfyui after following install instructions

I followed the installation instructions and now I can't run comfyui.
I get the following error when running run_nvidia_gpu.bat

Traceback (most recent call last):
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorboard\compat\__init__.py", line 42, in tf
    from tensorboard.compat import notf  # noqa: F401
ImportError: cannot import name 'notf' from 'tensorboard.compat' (D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorboard\compat\__init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\ai\image-generation\comfyui\ComfyUI\comfy\model_management.py", line 186, in <module>
    import accelerate
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\accelerate\__init__.py", line 3, in <module>
    from .accelerator import Accelerator
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\accelerate\accelerator.py", line 41, in <module>
    from .tracking import LOGGER_TYPE_TO_CLASS, GeneralTracker, filter_trackers
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\accelerate\tracking.py", line 43, in <module>
    from torch.utils import tensorboard
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\torch\utils\tensorboard\__init__.py", line 12, in <module>
    from .writer import FileWriter, SummaryWriter  # noqa: F401
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\torch\utils\tensorboard\writer.py", line 16, in <module>
    from ._embedding import (
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\torch\utils\tensorboard\_embedding.py", line 9, in <module>
    _HAS_GFILE_JOIN = hasattr(tf.io.gfile, "join")
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorboard\lazy.py", line 65, in __getattr__
    return getattr(load_once(self), attr_name)
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorboard\lazy.py", line 97, in wrapper
    cache[arg] = f(arg)
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorboard\lazy.py", line 50, in load_once
    module = load_fn()
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorboard\compat\__init__.py", line 45, in tf
    import tensorflow
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorflow\__init__.py", line 37, in <module>
    from tensorflow.python.tools import module_util as _module_util
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorflow\python\__init__.py", line 37, in <module>
    from tensorflow.python.eager import context
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorflow\python\eager\context.py", line 29, in <module>
    from tensorflow.core.framework import function_pb2
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorflow\core\framework\function_pb2.py", line 16, in <module>
    from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorflow\core\framework\attr_value_pb2.py", line 16, in <module>
    from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorflow\core\framework\tensor_pb2.py", line 16, in <module>
    from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorflow\core\framework\resource_handle_pb2.py", line 16, in <module>
    from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorflow\core\framework\tensor_shape_pb2.py", line 36, in <module>
    _descriptor.FieldDescriptor(
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\google\protobuf\descriptor.py", line 561, in __new__
    _message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

ERROR: LOW VRAM MODE NEEDS accelerate.
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 4060 Laptop GPU : cudaMallocAsync
Using xformers cross attention
Traceback (most recent call last):
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorboard\compat\__init__.py", line 42, in tf
    from tensorboard.compat import notf  # noqa: F401
ImportError: cannot import name 'notf' from 'tensorboard.compat' (D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorboard\compat\__init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\transformers\utils\import_utils.py", line 1099, in _get_module
    return importlib.import_module("." + module_name, self.__name__)
  File "importlib\__init__.py", line 126, in import_module
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\transformers\models\clip\modeling_clip.py", line 27, in <module>
    from ...modeling_utils import PreTrainedModel
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\transformers\modeling_utils.py", line 86, in <module>
    from accelerate import dispatch_model, infer_auto_device_map, init_empty_weights
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\accelerate\__init__.py", line 3, in <module>
    from .accelerator import Accelerator
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\accelerate\accelerator.py", line 41, in <module>
    from .tracking import LOGGER_TYPE_TO_CLASS, GeneralTracker, filter_trackers
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\accelerate\tracking.py", line 43, in <module>
    from torch.utils import tensorboard
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\torch\utils\tensorboard\__init__.py", line 12, in <module>
    from .writer import FileWriter, SummaryWriter  # noqa: F401
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\torch\utils\tensorboard\writer.py", line 16, in <module>
    from ._embedding import (
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\torch\utils\tensorboard\_embedding.py", line 9, in <module>
    _HAS_GFILE_JOIN = hasattr(tf.io.gfile, "join")
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorboard\lazy.py", line 65, in __getattr__
    return getattr(load_once(self), attr_name)
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorboard\lazy.py", line 97, in wrapper
    cache[arg] = f(arg)
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorboard\lazy.py", line 50, in load_once
    module = load_fn()
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorboard\compat\__init__.py", line 45, in tf
    import tensorflow
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorflow\__init__.py", line 37, in <module>
    from tensorflow.python.tools import module_util as _module_util
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorflow\python\__init__.py", line 37, in <module>
    from tensorflow.python.eager import context
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorflow\python\eager\context.py", line 29, in <module>
    from tensorflow.core.framework import function_pb2
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorflow\core\framework\function_pb2.py", line 16, in <module>
    from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorflow\core\framework\attr_value_pb2.py", line 16, in <module>
    from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorflow\core\framework\tensor_pb2.py", line 16, in <module>
    from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorflow\core\framework\resource_handle_pb2.py", line 16, in <module>
    from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\tensorflow\core\framework\tensor_shape_pb2.py", line 36, in <module>
    _descriptor.FieldDescriptor(
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\google\protobuf\descriptor.py", line 561, in __new__
    _message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "D:\ai\image-generation\comfyui\ComfyUI\main.py", line 69, in <module>
    import execution
  File "D:\ai\image-generation\comfyui\ComfyUI\execution.py", line 11, in <module>
    import nodes
  File "D:\ai\image-generation\comfyui\ComfyUI\nodes.py", line 20, in <module>
    import comfy.diffusers_load
  File "D:\ai\image-generation\comfyui\ComfyUI\comfy\diffusers_load.py", line 6, in <module>
    from comfy.sd import load_checkpoint
  File "D:\ai\image-generation\comfyui\ComfyUI\comfy\sd.py", line 14, in <module>
    from . import clip_vision
  File "D:\ai\image-generation\comfyui\ComfyUI\comfy\clip_vision.py", line 1, in <module>
    from transformers import CLIPVisionModelWithProjection, CLIPVisionConfig, CLIPImageProcessor, modeling_utils
  File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\transformers\utils\import_utils.py", line 1090, in __getattr__
    value = getattr(module, name)
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\transformers\utils\import_utils.py", line 1089, in __getattr__
    module = self._get_module(self._class_to_module[name])
  File "D:\ai\image-generation\comfyui\python_embeded\lib\site-packages\transformers\utils\import_utils.py", line 1101, in _get_module
    raise RuntimeError(
RuntimeError: Failed to import transformers.models.clip.modeling_clip because of the following error (look up to see its traceback):
Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

Troubles reinstalling Reactor node

I had to delete the extension because the node stopped appearing in Comfyui.
When it comes to reinstalling it, there is no way for the folder in which the models are supposed to be installed to appear: facerestore_models. I have the insightface one but not the other one. And if I create it and add the models, the node still does not appear. I get this error: "Unable to import dependency onnxruntime." And also Cannot import C:\Users\Rure\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node module for custom nodes: Unable to import dependency onnxruntime

can not import the nodes

I got this error:
`Traceback (most recent call last):
File "D:\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1604, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node_init
.py", line 24, in
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 3, in
from scripts.faceswap import FaceSwapScript, get_models
File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\scripts\faceswap.py", line 3, in
from modules import scripts, shared, images, scripts_postprocessing
ImportError: cannot import name 'images' from 'modules' (unknown location)

Cannot import D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node module for custom nodes: cannot import name 'images' from 'modules' (unknown location)`

[SOLVED] cannot import mesh_core_cython - node fails to load

First, confirm

  • I have read the instruction carefully
  • I have searched the existing issues
  • I have updated the extension to the latest version

What happened?

after installation into standalone version (using it's own python) the node fails to load displaying errors shown below. Many searches seem to lead to various cludges like adding a blank init.py etc - I am hoping to understand the issue and resolve it properly - any help appreciated!

Steps to reproduce the problem

Your workflow

  • Build from scratch
  • install custom nodes through the manager with success
  • load server and observe errors

Sysinfo

Windows, firefox, Nvidia GEforce 3080Ti

Relevant console log

Total VRAM 12287 MB, total RAM 32619 MB
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 3080 Ti : cudaMallocAsync
VAE dtype: torch.bfloat16
Using pytorch cross attention
### Loading: ComfyUI-Manager (V0.36)
### ComfyUI Revision: 1588 [d44a2de4] | Released on '2023-10-17'
Traceback (most recent call last):
  File "H:\comfyui\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1735, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "H:\comfyui\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\__init__.py", line 25, in <module>
    from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
  File "H:\comfyui\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 4, in <module>
    from scripts.reactor_faceswap import FaceSwapScript, get_models
  File "H:\comfyui\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\scripts\reactor_faceswap.py", line 13, in <module>
    from scripts.reactor_swapper import swap_face
  File "H:\comfyui\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\scripts\reactor_swapper.py", line 11, in <module>
    import insightface
  File "H:\comfyui\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\__init__.py", line 18, in <module>
    from . import app
  File "H:\comfyui\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\app\__init__.py", line 2, in <module>
    from .mask_renderer import *
  File "H:\comfyui\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\app\mask_renderer.py", line 8, in <module>
    from ..thirdparty import face3d
  File "H:\comfyui\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\thirdparty\face3d\__init__.py", line 3, in <module>
    from . import mesh
  File "H:\comfyui\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\thirdparty\face3d\mesh\__init__.py", line 9, in <module>
    from .cython import mesh_core_cython
ImportError: cannot import name 'mesh_core_cython' from 'insightface.thirdparty.face3d.mesh.cython' (unknown location)

Cannot import H:\comfyui\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node module for custom nodes: cannot import name 'mesh_core_cython' from 'insightface.thirdparty.face3d.mesh.cython' (unknown location)
Import times for custom nodes:
   0.0 seconds: H:\comfyui\ComfyUI_windows_portable\ComfyUI\custom_nodes\masquerade-nodes-comfyui
   0.0 seconds: H:\comfyui\ComfyUI_windows_portable\ComfyUI\custom_nodes\sd-dynamic-thresholding
   0.0 seconds: H:\comfyui\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus
   0.0 seconds: H:\comfyui\ComfyUI_windows_portable\ComfyUI\custom_nodes\stability-ComfyUI-nodes
   0.0 seconds: H:\comfyui\ComfyUI_windows_portable\ComfyUI\custom_nodes\IPAdapter-ComfyUI
   0.0 seconds: H:\comfyui\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Custom-Scripts
   0.0 seconds: H:\comfyui\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale
   0.0 seconds: H:\comfyui\ComfyUI_windows_portable\ComfyUI\custom_nodes\Derfuu_ComfyUI_ModdedNodes
   0.0 seconds: H:\comfyui\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux
   0.1 seconds: H:\comfyui\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-post-processing-nodes
   0.3 seconds (IMPORT FAILED): H:\comfyui\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node
   0.3 seconds: H:\comfyui\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes
   0.3 seconds: H:\comfyui\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager
   0.3 seconds: H:\comfyui\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_segment_anything
   0.4 seconds: H:\comfyui\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-dynamicprompts
   1.9 seconds: H:\comfyui\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui

Starting server

Additional information

I know it's something small - the pieces are installed - but something about the installation must be in the wrong place? Pulling out my hair what little is left ;) thanks in advance!

slow_conv2d_forward_mps: input(device='cpu') and weight(device=mps:0') must be on the same device

First, confirm

  • I have read the instruction carefully
  • I have searched the existing issues
  • I have updated the extension to the latest version

What happened?

I am on macOS, and the ReActor node works fine as long as I don't use CodeFormer or another face restoring model.

If I do, the node raises the following error:

RuntimeError: slow_conv2d_forward_mps: input(device='cpu') and weight(device=mps:0') must be on the same device

Steps to reproduce the problem

Screenshot 2023-10-19 at 18 20 25

Sysinfo

M2

Relevant console log

no need

Additional information

This issue can be solved by patching the retinaface.py file in the Facelib instance that comes with this node, as described here.

To test the workaround, I changed the following line in retinaface.py:

device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')

with

device = torch.device('cuda' if torch.cuda.is_available() else 'mps')

and the node now works with Codeformer, too.

It's not the correct implementation, but it's a temporary fix until this gets fixed.

Install Problem

have problems with the node install

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
Traceback (most recent call last):
File "C:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\python_embeded\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\python_embeded\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\python_embeded\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\python_embeded\lib\site-packages\setuptools\build_meta.py", line 355, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "C:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\python_embeded\lib\site-packages\setuptools\build_meta.py", line 325, in _get_build_requires
self.run_setup()
File "C:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\python_embeded\lib\site-packages\setuptools\build_meta.py", line 341, in run_setup
exec(code, locals())
File "", line 11, in
ModuleNotFoundError: No module named 'Cython'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

tryed than the troubleshoot and get more issues

Microsoft Windows [Version 10.0.19045.3324]
(c) Microsoft Corporation. Alle Rechte vorbehalten.

C:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable>python_embeded\python.exe -m pip install -U pip
Requirement already satisfied: pip in c:\comfyui_windows_portable_nvidia_cu118_or_cpu\comfyui_windows_portable\python_embeded\lib\site-packages (23.2.1)
DEPRECATION: torchsde 0.2.5 has a non-standard dependency specifier numpy>=1.19.*; python_version >= "3.7". pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of torchsde or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at pypa/pip#12063

C:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable>python_embeded\python.exe -m pip install insightface-0.7.3-cp310-cp310-win_amd64.whl
WARNING: Requirement 'insightface-0.7.3-cp310-cp310-win_amd64.whl' looks like a filename, but the file does not exist
Processing c:\comfyui_windows_portable_nvidia_cu118_or_cpu\comfyui_windows_portable\insightface-0.7.3-cp310-cp310-win_amd64.whl
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\insightface-0.7.3-cp310-cp310-win_amd64.whl'

C:\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable>

!!! Exception during processing !!! AttributeError: 'NoneType' object has no attribute 'get'

14:03:24 - ReActor Node - STATUS - Working: source face index [0], target face index [0]
14:03:24 - ReActor Node - STATUS - Swap in 0
set det-size: (640, 640)
set det-size: (640, 640)
!!! Exception during processing !!!
Traceback (most recent call last):
File "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 38, in execute
script.process(
File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\scripts\faceswap.py", line 94, in process
result = swap_face(
File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\scripts\swapper.py", line 201, in swap_face
result = face_swapper.get(result, target_face, source_face)
AttributeError: 'NoneType' object has no attribute 'get'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.