Please provide the following information when requesting support.
• Hardware (T4/V100/Xavier/Nano/etc)
• Network Type Detectnet_v2
• TLT Version (Please run “tlt info --verbose” and share “docker_tag” here) = 3.22.05
Although I have the nvidia-tao python library installed and am attempting to run the tao command in a docker container, tao is unable to mount the directory for the container. It displays a file not found:
OSError: Specfile not found at: /workspace/tao-experiments/detectnet_v2/specs/detectnet_v2_train_resnet18_kitti.txt
Usually this kind of error is due to wrong setting in ~/.tao_mounts.json.
Please double check.
A simple way is that you can set destination to the same as source.
tao mount.json was also examined. Furthermore, it is the right one.
You can access to the tao docker directly to check if the file exists.
$ tao detectnet_v2 run /bin/bash
Then run something as below.
ls /workspace/tao-experiments/
I’m trying this and below directory
Please share your ~/.tao_monuts.json.
{
“Mounts”: [
{
“source”: “/app/backend_codes/…/workspace/mangesh123/test2134/dataset”,
“destination”: “/workspace/tao-experiments”
},
{
“source”: “/app/backend_codes/…/workspace/mangesh123/test2134/models”,
“destination”: “/workspace/tao-experiments/detectnet_v2/specs”
}
],
“DockerOptions”: {
“shm_size”: “16G”,
“ulimits”: {
“memlock”: -1,
“stack”: 67108864
},
“user”: “0:0”,
“ports”: {
“8888”: 8888
}
}
Mangesh_mane:
{
“source”: “/app/backend_codes/…/workspace/mangesh123/test2134/dataset”,
“destination”: “/workspace/tao-experiments”
},
{
“source”: “/app/backend_codes/…/workspace/mangesh123/test2134/models”,
“destination”: “/workspace/tao-experiments/detectnet_v2/specs”
}
They may conflict.
You can just set only one.
{
“source”: “/app/backend_codes/…/workspace/mangesh123/test2134”,
“destination”: “/workspace/tao-experiments”
}
I am referee this format cv_sample
drive_map = {
"Mounts": [
# Mapping the data directory
{
"source": os.environ["LOCAL_PROJECT_DIR"],
"destination": "/workspace/tao-experiments"
},
# Mapping the specs directory.
{
"source": os.environ["LOCAL_SPECS_DIR"],
"destination": os.environ["SPECS_DIR"]
},
],
"DockerOptions": {
"user": "{}:{}".format(os.getuid(), os.getgid())
}
}
Morganh
October 11, 2022, 2:30pm
11
Mangesh_mane:
{
“source”: “/app/backend_codes/…/workspace/mangesh123/test2134/dataset”,
“destination”: “/workspace/tao-experiments”
},
{
“source”: “/app/backend_codes/…/workspace/mangesh123/test2134/models”,
“destination”: “/workspace/tao-experiments/detectnet_v2/specs”
}
You can set to
{
“source”: “/app/backend_codes/…/workspace/mangesh123/test2134”,
“destination”: “/workspace/tao-experiments”
}
or
{
“source”: “/app/backend_codes/…/workspace/mangesh123/test2134/dataset”,
“destination”: “/workspace/tao-experiments/detectnet_v2/dataset”
},
{
“source”: “/app/backend_codes/…/workspace/mangesh123/test2134/models”,
“destination”: “/workspace/tao-experiments/detectnet_v2/specs”
}
I tried both solutions, but they were unsuccessful.
OSError: Specfile not found at: /workspace/tao-experiments/detectnet_v2/specs/detectnet_v2_train_resnet18_kitti.txt
Morganh
October 13, 2022, 5:56am
13
Why the result folder (experiment_dir_unpruned) locate in your spec folder?
Is it expected? Can you share the full training command line ?
tao detectnet_v2 train -e $SPECS_DIR/detectnet_v2_train_resnet18_kitti.txt -r $SPECS_DIR/experiment_dir_unpruned -k $KEY -n resnet18_detector --gpus $NUM_GPUS
inside docker Im also try this command with full path but showing same error
Morganh
October 13, 2022, 6:11am
15
Please change to
-r experiment_dir_unpruned.
More, can you share your latest ~/.tao_mounts.json?
First try this,
"Mounts": [
{
"source": "/app/backend_codes/../workspace/diycam/tews1323/dataset",
"destination": "/workspace/tao-experiments/detectnet_v2/dataset"
},
{
"source": "/app/backend_codes/../workspace/diycam/tews1323/models",
"destination": "/workspace/tao-experiments/detectnet_v2/specs"
}
],
"DockerOptions": {
"shm_size": "16G",
"ulimits": {
"memlock": -1,
"stack": 67108864
},
"user": "0:0"
}
second try this:
{
“Mounts”: [
{
“source”: “/app/backend_codes/…/workspace/diycam/tews1323”,
“destination”: “/workspace/tao-experiments”
}
],
“DockerOptions”: {
“shm_size”: “16G”,
“ulimits”: {
“memlock”: -1,
“stack”: 67108864
},
“user”: “0:0”
}
Morganh
October 13, 2022, 6:16am
17
Are you sure the spec files are available locally?
$ ls /app/backend_codes/…/workspace/diycam/tews1323
$ find /app/backend_codes/…/workspace/diycam/tews1323
-name detectnet_v2_train_resnet18_kitti.txt
find workspace/diycam/tews1323/models/detectnet_v2_train_resnet18_kitti.txt
this right path
Morganh
October 13, 2022, 6:26am
19
Mangesh_mane:
second try this:
So, when run the second tao_mounts.json, can you find the spec file via below command?
$ tao detectnet_v2 run ls /workspace/tao-experiments/models/detectnet_v2_train_resnet18_kitti.txt
Morganh
October 13, 2022, 6:42am
21
All the path inside the docker is defined according to “destination” in tao_mount.json.
So, if you set 2nd
“source”: “/app/backend_codes/…/workspace/diycam/tews1323”,
“destination”: “/workspace/tao-experiments”
Please run
$ tao detectnet_v2 run ls /workspace/tao-experiments/models/detectnet_v2_train_resnet18_kitti.txt