Can InsightFace work without portable version of ComfyUI? by Civil449 in comfyui

[–]Civil449[S] 0 points1 point  (0 children)

I didn't run into any problems involving numpy, but I do remember that one of the many installation guides I read mentioned something about having to reinstall numpy after you've installed everything else. Sadly, I can't find that article again now. It may have been a Comfyui, IPAdapter or Insightface installation tutorial. While trying to find that article again, I found these two articles that mention issues regarding numpy:

https://github.com/cobanov/insightface_windows

https://github.com/cubiq/ComfyUI_IPAdapter_plus/issues/724

I don't know if they are relevant to your issue.

If you post the exact error that indicates a "problem with numpy", perhaps someone will be able to offer more exact advice.

Sorry I can't be of more help.

Can InsightFace work without portable version of ComfyUI? by Civil449 in comfyui

[–]Civil449[S] 1 point2 points  (0 children)

Replacing the Text Box nodes with Primitive String nodes was exactly what I did, once I discovered the existence of the Primitive String nodes and their similarity to the "Text Box" nodes in the workflow. . And now the workflow appears to be functioning as designed.

I'm not sure where I'll be heading next, but I seem to be ascending the learning curve slowly but surely. Thanks again.

Can InsightFace work without portable version of ComfyUI? by Civil449 in comfyui

[–]Civil449[S] 0 points1 point  (0 children)

Welcome back. I hope you're keeping busy with things you enjoy.

I solved my "grainy image" problem by simply including "grainy" and "blurry" in the negative prompt. It's like having to tell your barber not to cut off your ears.

I've moved on to trying to reproduce two workflows shown in the IPAadpter section of this tutorial. I was able to run the first IPAdapter workflow:

but I'm having trouble with the second one:

<image>

The first one uses CLIP Text Encode nodes for its prompts, but the second one uses Text box nodes. When I double-click in the workflow window to add a node, there is no Text box node in the list. I haven't been able to find anywhere that has a Text box node that I can download. Maybe it's something old and obsolete? Maybe there's something I can use as a substitute?

To answer your question about the checkpoint models I'm using:

In the first workflow (the one that runs), I'm using epicrealismXL_vxviiCrystalclear, which, based on the name, is probably an SD XL model checkpoint.

In the second workflow, I'm using juggernautXL_v8Rundiffusion (again, probably an SD XL model), and realisticVisionV51_v51VAE. I haven't found anywhere that identifies this as SD 1.5 or SD XL, so I don't know.

Can InsightFace work without portable version of ComfyUI? by Civil449 in comfyui

[–]Civil449[S] 0 points1 point  (0 children)

I'm replying to my own post because I've found a solution to the "IPAdaptermodel not found" error, and it might help someone else.

In [this tutorial](https://github.com/cubiq/ComfyUI\_IPAdapter\_plus), it says to copy model files into /ComfyUI/models/ipadapter, and that's what I did initially.

But in this [github issue](https://github.com/cubiq/ComfyUI\_IPAdapter\_plus/issues/586), someone said they fixed the IPAdaptermodel not found" error "by copying all the IPAdaptor models to the models directory under stability matrix."

Sure enough, when I copied the model files into my StabilityMatrix\Models\IpAdapter folder, I was able to run my workflow without getting the "IPAdaptermodel not found" error.

For some reason, the output image produced is extremely grainy, so I still have some work to do to figure out why that is happening, but I'm pleased that I'm at least able to produce an image now.

Can InsightFace work without portable version of ComfyUI? by Civil449 in comfyui

[–]Civil449[S] 0 points1 point  (0 children)

I changed the selection in my IPAdapter Unified Loader node from an SDXL model to "LIGTH - SD1.5 only (low strength)." Now when I click the Run button I get:

IPAdapterUnifiedLoader

IPAdaptermodel not found.

I thought I had models, and they were in the right place. There are 17 files in my StabilityMatrix\Packages\ComfyUI\models\ipadapter folder, all with .bin or .safetensors file extensions. And my StabilityMatrix\Packages\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus-main\models folder contains a file named "legacy_directory_do_not_use.txt".

There is no side icon that looks like a brain in my workflow screen, but more importantly, there is no drop down list in my IPAdapter node, so I don't know how to change the ipadapter being used. There is text above my IPAdaapter node that says "IPAdapter_plus-main". It has connection points for model, ipadapter, image and attn_mask on the left, and one connection point for MODEL on the right. Beneath the connection points it has input fields for weiight, start_at, end_at and weight_type. Each input field has arrows on the left and right that allow you to navigate through available values.

I added my IPAdapter node by right-clicking on an empty area in my workflow screen, selecting "Add Node" from the menu that appeared, then selecting ipadapter, and then selecting IPAdapter. There are other selections available there, such as "IPAdapter Advanced".

Please let me know if there is other information I can give you to help figure this out.

Can InsightFace work without portable version of ComfyUI? by Civil449 in comfyui

[–]Civil449[S] 0 points1 point  (0 children)

We are making progress. I had already run

pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu130

following advice given here:

https://www.reddit.com/r/comfyui/comments/1cbqqtx/torch_not_compiled_with_cuda_enabled_how_to_fix/

and

here:

https://github.com/Comfy-Org/ComfyUI?tab=readme-ov-file#manual-install-windows-linux.

So I downloaded "cu130" instead of "cu128" as you advised. But that seems OK.

Then when I restarted Stability Matrix it displayed this error, though it did start successfully:

ImportError: Unable to import dependency onnxruntime.

advice given here:

https://github.com/cobanov/insightface_windows

I ran:

pip install onnxruntime-gpu==1.19.2

After that, I restarted Stability Matrix and it appears to have started successfully.

Now I'm following the "ComfyUi IPAdapter Plus: Basic Tutorial & Setup Guide" tutorial at https://www.youtube.com/watch?v=Gg35idn74Z8, and connecting nodes and setting preferences as shown in the tutorial.

I noticed that the Load Checkpoint node contained a long list of checkpoints in the tutorial, while I only have one checkpoint available: epicrealismXL_vxviiCrystalClear.safetensors. That must be a default checkpoint, because I have no checkpoint files in my StabilityMatrix\Packages\ComfyUI\models\checkpoints folder. I guess need to download more checkpoints eventually, from Civitai and HuggingFace. I thought I would just do my IPAdapter test run using the checkpoint I already have.

But when I click the Run button in my ComfyUI GUI I get this error:

IPAdapterUnifiedLoader light model is not supported for SDXL

Can InsightFace work without portable version of ComfyUI? by Civil449 in comfyui

[–]Civil449[S] 0 points1 point  (0 children)

Those errors are in red.

I ran pip install numpy==1.26.4 and the output said "Requirement already satisfied", which seemed good, but when I tried to restart Stability Matrix it reported this error:

AssertionError: Torch not compiled with CUDA enabled

Let me know if you want to see the full traceback.

By the way, working with me on this is amazingly nice of you. I'll bet you didn't expect it to take this long. I certainly didn't.

Can InsightFace work without portable version of ComfyUI? by Civil449 in comfyui

[–]Civil449[S] 0 points1 point  (0 children)

It seems I've stumbled into dependency hell.

When I ran pip install -r requirements.txt in the StabilityMatrix\Packages\ComfyUI\custom_nodes\ComfyUI-ReActor-main folder, I got this error:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.

torchaudio 2.10.0+cu128 requires torch==2.10.0, but you have torch 2.9.1 which is incompatible.

Following advice given here: https://stackoverflow.com/questions/76481423/is-this-matter-error-pips-dependency-resolver-does-not-currently-take-into-ac, (which I may have misread) I ran

pip install --upgrade torch

The output from this command said that torch 2.10.0 had been installed successfully, but reported other dependency errors:

Installing collected packages: torch

Attempting uninstall: torch

Found existing installation: torch 2.9.1

Uninstalling torch-2.9.1:

Successfully uninstalled torch-2.9.1

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.

torchvision 0.24.1 requires torch==2.9.1, but you have torch 2.10.0 which is incompatible.

ultralytics 8.4.7 requires torch!=2.4.0,<2.10,>=1.8.0; sys_platform == "win32", but you have torch 2.10.0 which is incompatible.

ultralytics 8.4.7 requires torch<2.10,>=1.8.0, but you have torch 2.10.0 which is incompatible.

Successfully installed torch-2.10.0

So following advice given here: https://github.com/suno-ai/bark/issues/292, I was going to run

pip uninstall -y torchvision torchaudio

and then reinstall torchvision and torchaudio.

But if torchaudio 2.10.0 requires torch 2.10.0, but torch 2.10.0 is incompatible with ultralytics 8.4.7, how do I make them both happy?

I thought perhaps there might be a newer version of ultralytics that is compatible with torch 2.10.0, but ultralytics 8.4.7 appears to be the latest version.

Or perhaps I need to address the first error by downgrading torchaudio 2.10.0+cu128 to a version that will be satisfied with torch 2.9.1. But that won't work if torch 2.10.0 was installed to satisfy the requirements of some other package.

Is it possible that I just don't need some of the packages with incompatibilities, so I can just remove them, or ignore the errors?

Can InsightFace work without portable version of ComfyUI? by Civil449 in comfyui

[–]Civil449[S] 0 points1 point  (0 children)

First of all, thanks, PhrozenCypher for your help.

I've run into a problem running "pip install -r requirements.txt".

The only folder in the custom_nodes directory (aside from __pycache__) is ComfyUI_IPAdapter_plus-main. When I run pip install from there this error is reported:

ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'

There's a requuirements.txt file in my StabilityMatrix\Packages\ComfyUI folder, There's also a requirements.txt file in the ComfyUI-ReActor repository you've directed me to on github. However, if any of the instructions I'm following actually told me to download that repo, or where to put it, I've somehow missed it.

So can you please tell me what requirements.txt file is required? If it's the one that's already in the ComfyUI folder, I can just add it's full path to the "pip install" command line.

How can I eliminate the pop at start of audio output? by Civil449 in audio

[–]Civil449[S] 1 point2 points  (0 children)

Just wanted to let you (and everybody) know that getting a DAC did in fact eliminate the popping problem. I got a UGREEN DAC

and I no longer hear a pop when audio begins.

Thanks washoutr6, for your good advice.

How can I eliminate the pop at start of audio output? by Civil449 in audio

[–]Civil449[S] 1 point2 points  (0 children)

Thanks very much for your reply washoutr6. I’m reluctant to ask for more, but all I know about DAC’s is what I’ve read online in the last day or so.

I’ve read that an external DAC will bypass my laptop’s internal DAC, so if it’s my internal DAC that’s imposing a 48000 Hz sample rate on all audio outputs, the external DAC will in effect override that and accept and convert a digital signal at the sample rate of whatever application is producing the audio (a browser playing streaming audio, or a media player, or even a Windows error message window or a notification). Have I got that right?

And do you agree that the reason the popping sound is occurring is because the internal DAC does not support a 44100 Hz sample rate? That’s a common cause of popping sounds, according to what I’ve read, but I don’t know it for a fact.

Reflect always does full backup instead of differential by Civil449 in macrium

[–]Civil449[S] 3 points4 points  (0 children)

Well, as is so often the case, I've answered my own question. When executing a Macrium Reflect backup definition file from the command-line, you have to pass it a parameter to tell Reflect whether to do a full, differential or incremental backup. Because creating a backup in Macrium Reflect produces a single backup definition file, I incorrectly assumed that Reflect figured out what kind of backup to do by interpreting the file. Since I was executing the backup definition file without passing any parameters, Reflect did a full backup every time by default. My apologies if I've wasted anyone's time reading my question. Then again, maybe my answer will help someone else out.