InsightFace-REST
InsightFace-REST copied to clipboard
Changes to run on Jetson Xavier NX.
Quick and dirty changes to allow running on Jetson Xavier NX. I'm putting it here just as a reference for others. It is mostly just using a different base container.
Great work @a7ypically ! Unfortunately I have no Jetson to test it, could you create a separate dockerfile and entrypoint.sh for Jetson so I could accept your pull request without broking compatibility?
Also could you share performance metrics for Jetson Xavier NX?
PS: I have noticed you also pushed edits for Google drive downloads, I have also seen Google a bit changed downloading process, though in my test now confirmation value is always "r", is it same for you?
Sure, I can create a separate dockerfile. The entrypoint.sh is actually the same. I just set it to use python3 explicitly which I assume should work fine for desktops as well?
How do I benchmark it? Do you use some script for that?
The Google drive confirmation is indeed a value of "r" if I remember correctly. A proper fix would be to first check the response content type. My quick hack may now search for a confirmation value inside a binary response which is wrong. I'll look into that when I find some time.
And thank you for your great work here.
-
I'm not sure if default base image have python3 alias, need to check it.
-
You can use demo_client.py for rough estimation, also you can set logging level to debug in deploy_trt.sh and check inference timings in container logs.
-
I was going to commit a quick fix for this, which was actually setting default value to "r" which is wrong too, but should work in case it's now default Google disk behavior.
-
Thanks, I'm happy if this repo have helped someone in their projects.