insightface icon indicating copy to clipboard operation
insightface copied to clipboard

Numpy Version Mismatch Issue With Onnxruntime module

Open tonmoy50 opened this issue 1 year ago • 6 comments

The main issue is with the draw_on function of FaceAnalysis module. It is using np.int for type casting but this has been deprecated and removed from numpy starting 1.20 if I am not mistaken. I think it need to be updated as I cannot downgrade numpy because the Onnxruntime module depends on numpy version >1.21.

For reference, I am using

Onnxruntime=1.16.2
Numpy=1.26.2
Insightface=0.7.3

tonmoy50 avatar Nov 14 '23 19:11 tonmoy50

Yes, it has been fixed in the source code, but it hasn't been pushed to the pip package yet. I will complete the upgrade after some days.

nttstar avatar Nov 15 '23 07:11 nttstar

Great! Is it okay to leave the issue open until then?

tonmoy50 avatar Nov 18 '23 03:11 tonmoy50

Any update on this? I ran into exactly the problem described about (np.int error - not just warning).

jens-markussen avatar Jan 06 '24 09:01 jens-markussen

Any update on this?

allen0125 avatar Mar 07 '24 06:03 allen0125

I don't think they made any changes. I cloned their repository and manually made the changes to work for me

tonmoy50 avatar Mar 07 '24 19:03 tonmoy50

duplicate of #2404

satishjasthi avatar Apr 09 '24 07:04 satishjasthi