Closed vsiegel closed 1 year ago
Hello there, thank you for opening an Issue ! 🙏🏻 The team was notified and they will get back to you asap.
Hi, @vsiegel 👋🏻! Do you think that error originates in the supervision
package?
Hi, @vsiegel do you still experience that problem?
I think that issue is not related to supervision but to Grounding DINO.
Search before asking
Bug
As of 2023-04-06, there is a somewhat obscure problem in
https://github.com/roboflow-ai/notebooks/blob/main/notebooks/zero-shot-object-detection-with-grounding-dino.ipynb
If you go back to load new images after running the demo, you get a locale related exception. System calls require an UTF-8 locale, and it is changed to something else on the way, I do not know where.
The locale changes from UTF-8 at some point, I think after running the demo. After this, calls to the system do not longer work. they fail like this:
So "!wget ..." does not work. My workaround was replacing "!": python: # Run the command with a specific encoding (UTF-8) def shell(command): print(subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True, text=True, encoding="UTF-8"))
After running that in a new cell, this works: %cd {HOME}/data shell("wget ...") works.
I think the problem has no effect when running the notebook cells in order, but it does when goung back to load more example images with wget.
Environment
Colab
Minimal Reproducible Example
Run the notebook up to the demo, then go back to the cell with
wget
and try to load more example images.Additional
No response
Are you willing to submit a PR?