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
mobilenet-gpu not working with double-take #691
Comments
According to logs, compreface-api makes a request to compreface-core and it answers too long, this is why it returns a timeout error. |
How much time does it take for a response for the GPU version when you test through UI? Ideally, it should take less time. |
I can shed a little insight on the Double Take side. On page load of /config or every 30 seconds, the detectors status is updated. There shouldn't be any spamming of the CompreFace API unless you keep refreshing the /config page on the DT UI. |
Yes this is accurate to my experiences. compreface regular takes several seconds to process each image. compreface-mobilenet-gpu takes under 1 sec to process the images. Both have an initial delay like you said.
Understood. Again, works fine in compreface regular. GPU versions it just floods it. Are the GPU versions too fast? |
Today i tried again using an Ubuntu 20.04.3 LTS 64bit virtual machine with a GTX 1660Ti passed through on Unraid 6.10rc2. I installed docker, docker compose, and the nvidia docker drivers. Same result for the mobilenet gpu. Initially I passed it lenna.jpg and it works fine. All subsequent Web GUI requests work fine and are super fast. No issues to this point. As soon as I connect double-take using the url and key it blows up again. Not sure what else I can do here to help solve the issue. I feel like double-take is flooding compreface with requests but not sure why. Would love for this to work because it's so much faster on the gpu. Docker logs before double-take connects: Docker logs after double-take tries to connect |
Looks like I found the issue, here is an example of your request: So, you need to change this value in |
@pospielov thank you for putting the time to find this and explain how
I can confirm that my double-take config has @jakowenko can you confirm that double-take detector config:
|
Yep pretty confident that it's just the status check in double-take that is hardcoded at @jakowenko if you can update the code to use 0.1 or to use the Thanks! From compreface unraid log (regular version), you can see where status check lenna.jpg is at 0.0 despite the config being at 0.8. |
@bigbangus Probably you can create a pull request to double-take, looks like this is the line where det_prob_threshold is defined: |
yes I found that in the code as well, but I'm still new to programming, github, dockers and IT in general. I will read up on how to make a pull request and pursue that if the author doesn't have the time to update it. thanks! |
Ok nevermind I watched this youtube video and made a pull request using my linux vm. So cool! Thanks for the tip. Love github! |
@bigbangus Thank you |
@juan11perez awesome. I modified the compreface.js in the running docker and restarted double-take through it's own GUI and it works now. So yes seems like this change would be great once @jakowenko has time to address it!
|
The PR is now merged and the issue is confirmed resolved with v.1.9.0 of double-take. Thank you @jakowenko @pospielov |
Describe the bug
Initially, mobilenet-gpu version appears to work in the GUI and I can successfully test my recognition application in the GUI using a stock photo. However, once I try to connect double-take to it using the url + key, it stalls and I receive errors in the compreface logs.
notes
-same behavior if I use Unraid single container version
-compreface regular version works fine with double-take in both single container version and docker-compose version
-same behavior with internal or external db
-same behavior with arcface gpu version
Hardware/OS
Unraid 6.10-rc2 (docker-compose plugin)
Nvidia Driver: 495.46 (patched)
GTX 1050Ti
Ryzen 9 3900X w/64MB RAM
initial GUI test works and subsequent tests work
then the double-take api connection fails
nvidia-smi:
docker logs:
compreface-db.txt
compreface-ui.txt
compreface-admin.txt
compreface-api.txt
compreface-core.txt
.env:
registry=exadel/ postgres_username=postgres postgres_password=postgres postgres_db=frs postgres_domain=compreface-postgres-db postgres_port=5432 email_host=smtp.gmail.com email_username= email_from= email_password= enable_email_server=false save_images_to_db=true compreface_api_java_options=-Xmx8g compreface_admin_java_options=-Xmx8g ADMIN_VERSION=0.6.1 API_VERSION=0.6.1 FE_VERSION=0.6.1 CORE_VERSION=0.6.1-mobilenet-gpu
docker-compose:
docker-compose.zip
The text was updated successfully, but these errors were encountered: