coral-pi-rest-server
coral-pi-rest-server copied to clipboard
Flask debug mode causes the mystical "HandleQueuedBulkIn transfer in failed. Not found: USB transfer error 5"
Flask debug mode causes the app to initialise twice, opening another "handle" to the edge TPU.
Turning debug mode off fixes this.
Ref: https://stackoverflow.com/questions/9449101/how-to-stop-flask-from-initialising-twice-in-debug-mode#:~:text=When%20building%20a%20Flask%20service,Flask%20service%20only%20initialises%20once.
Thanks for the alert!