Using tao detectnet_v2 returns python/json argument errors in functions

Please provide the following information when requesting support.

• Hardware - Xavier NX
• Network Type (Detectnet_v2, Yolo_v4, and LPRnet
• Tao toolkit - 3.21.11 , docker_registry:

When trying to use the dataset_convert tool and the training tool the process returns an error that would make it seem as if there were arguments missing somewhere in the process.

The command I’m attempting to execute:
tao detectnet_v2 dataset_convert -d /workspace/openalpr/SPECS_tfrecord.txt -o /workspace/openalpr/lpd_tfrecord/lpd

tao detectnet_v2 dataset_convert -d /workspace/openalpr/SPECS_tfrecord.txt -o /workspace/openalpr/lpd_tfrecord/lpd
2021-12-23 18:33:43,397 [INFO] root: Registry: [‘’]
2021-12-23 18:33:43,744 [INFO] tlt.components.instance_handler.local_instance: Running command in container:
Traceback (most recent call last):
File “/home/vetted/.local/bin/tao”, line 8, in
File “/home/vetted/.local/lib/python3.6/site-packages/tlt/entrypoint/”, line 115, in main
File “/home/vetted/.local/lib/python3.6/site-packages/tlt/components/instance_handler/”, line 319, in launch_command
File “/home/vetted/.local/lib/python3.6/site-packages/tlt/components/docker_handler/”, line 284, in run_container
mount_data, env_vars, docker_options = self._get_mount_env_data()
File “/home/vetted/.local/lib/python3.6/site-packages/tlt/components/docker_handler/”, line 92, in _get_mount_env_data
data = self._load_mounts_file(self._docker_mount_file)
File “/home/vetted/.local/lib/python3.6/site-packages/tlt/components/docker_handler/”, line 77, in _load_mounts_file
data = json.load(mfile)
File “/usr/lib/python3.6/json/”, line 299, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File “/usr/lib/python3.6/json/”, line 354, in loads
return _default_decoder.decode(s)
File “/usr/lib/python3.6/json/”, line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib/python3.6/json/”, line 355, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting ‘,’ delimiter: line 6 column 7 (char 127)

I hope I’m simply missing something and this is an easy fix.
this is the guide I’m going off of:
Creating a Real-Time License Plate Detection and Recognition App | NVIDIA Developer Blog

thanks, any help is appreciated.

Did you create ~/.tao_mounts.json ?
If yes, please share it.


    "Mounts": [


         "source": "/home/vetted/tao-experiments",

         "destination": "/workspace/tao-experiments"



        "source": "/home/vetted/openalpr",

            "destination": "/workspace/openalpr"                                  }



The source directories exist but are empty. I couldn’t find a resource that explicitly said what to populate the directory with.

The source directories should be your local directories.
The .json file is used to map your local directories to docker container’s directories.

See TAO Toolkit Launcher — TAO Toolkit 3.21.11 documentation for more info.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.