Skip to content
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

Runtime error when store detections is enabled #2

Open
teiszler opened this issue Apr 19, 2023 · 1 comment
Open

Runtime error when store detections is enabled #2

teiszler opened this issue Apr 19, 2023 · 1 comment
Labels
bug Something isn't working python

Comments

@teiszler
Copy link
Contributor

If you enable storage of detections by setting STORE=--store in the .env file, you encounter a runtime error when launching the midas engine.

midas-engine    | INFO:openmidas.midas_engine:Depth predictor initialized with the following model: MiDaS_small
midas-engine    | Traceback (most recent call last):
midas-engine    |   File "/openmidas-server/.venv/bin/openmidas-midas-engine", line 6, in <module>
midas-engine    |     sys.exit(main())
midas-engine    |   File "/openmidas-server/src/openmidas/depth.py", line 63, in main
midas-engine    |     engine_runner.run(engine=engine_setup(), source_name=args.source, server_address=args.gabriel, all_responses_required=True)
midas-engine    |   File "/openmidas-server/src/openmidas/depth.py", line 60, in engine_setup
midas-engine    |     engine = MiDaSEngine(args)
midas-engine    |   File "/openmidas-server/src/openmidas/midas_engine.py", line 51, in __init__
midas-engine    |     self.watermark = Image.open(os.getcwd()+"/watermark.png")
midas-engine    |   File "/openmidas-server/.venv/lib/python3.8/site-packages/PIL/Image.py", line 3236, in open
midas-engine    |     fp = builtins.open(filename, "rb")
midas-engine    | FileNotFoundError: [Errno 2] No such file or directory: '/openmidas-server/watermark.png'
@teiszler teiszler added bug Something isn't working python labels Apr 19, 2023
@jaharkes
Copy link
Member

We can put the watermark as an asset in the python module. Let me find where I did that in another project...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working python
Projects
None yet
Development

No branches or pull requests

2 participants