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

installation Error: No such file or directory: '/data/model.toml' #215

Open
MaryElna opened this issue Dec 17, 2020 · 10 comments
Open

installation Error: No such file or directory: '/data/model.toml' #215

MaryElna opened this issue Dec 17, 2020 · 10 comments

Comments

@MaryElna
Copy link

Hi,
I got this error: ( FileNotFoundError: [Errno 2] No such file or directory: '/data/model.toml') during of built Docker images installation using GPU, I run it on ubuntu v20.04.01
Here is what was appeared:
Lia@Lia-GL553VD:~$ sudo docker run --runtime=nvidia -it --rm -v $PWD:/data --ipc=host mapbox/robosat:latest-gpu train --model /data/model.toml --dataset /data/dataset.toml --workers 4
Unable to find image 'mapbox/robosat:latest-gpu' locally
latest-gpu: Pulling from mapbox/robosat
35c102085707: Pull complete
251f5509d51d: Pull complete
8e829fe70a46: Pull complete
6001e1789921: Pull complete
9f0a21d58e5d: Pull complete
47b91ac70c27: Pull complete
a0529eb74f28: Pull complete
23bff6dcced5: Pull complete
6d10e7155e41: Pull complete
1077cd91e25b: Pull complete
17187e0cb362: Pull complete
59f16297861a: Pull complete
a01b17d3e344: Pull complete
832b14d21211: Pull complete
ec4844dbe142: Pull complete
5a77bff3a5ba: Pull complete
0c570f863b22: Pull complete
bb1abf747bd6: Pull complete
Digest: sha256:f4d0234287a9d7175554859cc70450cd3ef198c48b78dd4fd583d0d768a1db04
Status: Downloaded newer image for mapbox/robosat:latest-gpu
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/src/app/robosat/tools/main.py", line 58, in
args.func(args)
File "/usr/src/app/robosat/tools/train.py", line 57, in main
model = load_config(args.model)
File "/usr/src/app/robosat/config.py", line 21, in load_config
return toml.load(path)
File "/opt/venv/lib/python3.6/site-packages/toml/decoder.py", line 111, in load
with io.open(_getpath(f), encoding='utf-8') as ffile:
FileNotFoundError: [Errno 2] No such file or directory: '/data/model.toml'

Thanks for any commands,
Best Regards
Mary

@daniel-j-h
Copy link
Collaborator

You are mounting your current directory to /data inside the container, and then you are accessing /data/model.toml.

Can you make you you have a model.toml file in your current directory? Check the config dir.

@MaryElna
Copy link
Author

MaryElna commented Dec 17, 2020 via email

@daniel-j-h
Copy link
Collaborator

daniel-j-h commented Dec 17, 2020 via email

@MaryElna
Copy link
Author

MaryElna commented Dec 23, 2020 via email

@daniel-j-h
Copy link
Collaborator

daniel-j-h commented Dec 24, 2020 via email

@MaryElna
Copy link
Author

MaryElna commented Dec 25, 2020 via email

@daniel-j-h
Copy link
Collaborator

daniel-j-h commented Dec 25, 2020 via email

@MaryElna
Copy link
Author

MaryElna commented Dec 26, 2020 via email

@daniel-j-h
Copy link
Collaborator

Without geo-referenced imagery, you will not be able to get vectorized shapes in world coordinates. You can still run the model on the images, tho, that will work. Unformtunately I really do not have the time to run this through with you step by step - I'm sorry.

@MaryElna
Copy link
Author

MaryElna commented Jan 5, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants