Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when running InstantID face analysis #84

Open
pocketens opened this issue May 26, 2024 · 3 comments
Open

Issue when running InstantID face analysis #84

pocketens opened this issue May 26, 2024 · 3 comments

Comments

@pocketens
Copy link

Hello, I tried to add some InstantID to my comfyui flow, and everytime the API call runs now, the InstantID face analysis action produces a bevy of these messages/errors:

2024-05-26 06:11:40.871530646 [E:onnxruntime:Default, env.cc:254 ThreadMain] pthread_setaffinity_np failed for thread: 489, index: 3, mask: {2, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
It repeats this maybe 50 times, split between:

Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: /src/ComfyUI/models/insightface/models/antelopev2/1k3d68.onnx landmark_3d_68 ['None', 3, 192, 192] 0.0 1.0

for each onnx file that would ordinarily be in the antelopev2 folder. I will note, the workflow works fine on my PC, not via API.

I am hosting it on a PythonAnywhere webapp if that helps.
And then runs through the rest of the workflow, but does not produce an image. I am not super experienced, so sorry about the question if its so basic, but is there away to "Specify the number of threads", or does the InstantIDFaceAnalysis not work as intended in the latest version. I have tried CPU, CUDA, and ROCM.

I am hosting it on a PythonAnywhere webapp if that helps.

@fofr
Copy link
Owner

fofr commented May 26, 2024

I've noticed this too, and attempted to debug without much success. But at the same time, the results always seemed to work for me so I didn't pursue.

@pocketens
Copy link
Author

I've noticed this too, and attempted to debug without much success. But at the same time, the results always seemed to work for me so I didn't pursue.

Thats the issue, I dont get any results. It says there is a URL, but there is "no input" on the prediction.

@fofr
Copy link
Owner

fofr commented Jun 11, 2024

Do you have some example predictions I could take a look at to debug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants