I met no module named 'third_party (tlt-export)

Hello
i’m trying to export my trainded model(.tlt to .etlt)

but i met very strange error

first i use this command

  • tlt-export yolo -m ./result/weights/yolo_mobilenet_v1_epoch_008.tlt -o
    ./result/test.etlt -k “mykey”

i expect this command will work
but POP this error

Using TensorFlow backend.
2020-10-23 08:07:22.812360: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.0
Traceback (most recent call last):
File “/usr/local/bin/tlt-export”, line 8, in
sys.exit(main())
File “/home/vpraveen/.cache/dazel/_dazel_vpraveen/715c8bafe7816f3bb6f309cd506049bb/execroot/ai_infra/bazel-out/k8-py3-fastbuild/bin/magnet/packages/iva/build_wheel.runfiles/ai_infra/iva/common/export/app.py”, line 185, in main
File “/home/vpraveen/.cache/dazel/_dazel_vpraveen/715c8bafe7816f3bb6f309cd506049bb/execroot/ai_infra/bazel-out/k8-py3-fastbuild/bin/magnet/packages/iva/build_wheel.runfiles/ai_infra/iva/common/export/app.py”, line 247, in run_export
File “/home/vpraveen/.cache/dazel/_dazel_vpraveen/715c8bafe7816f3bb6f309cd506049bb/execroot/ai_infra/bazel-out/k8-py3-fastbuild/bin/magnet/packages/iva/build_wheel.runfiles/ai_infra/iva/common/export/app.py”, line 167, in build_exporter
File “/home/vpraveen/.cache/dazel/_dazel_vpraveen/715c8bafe7816f3bb6f309cd506049bb/execroot/ai_infra/bazel-out/k8-py3-fastbuild/bin/magnet/packages/iva/build_wheel.runfiles/ai_infra/iva/yolo/export/yolo_exporter.py”, line 61, in init
File “/usr/lib/python3.6/genericpath.py”, line 30, in isfile
st = os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

so i use

  • sudo

after then tlt POP this error

2020-10-23 08:07:40.789531: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.0
Traceback (most recent call last):
File “/usr/local/bin/tlt-export”, line 5, in
from iva.common.export.app import main
File “/home/vpraveen/.cache/dazel/_dazel_vpraveen/715c8bafe7816f3bb6f309cd506049bb/execroot/ai_infra/bazel-out/k8-py3-fastbuild/bin/magnet/packages/iva/build_wheel.runfiles/ai_infra/iva/common/export/app.py”, line 20, in
ModuleNotFoundError: No module named ‘third_party’

how can i export my model?

Please add “-e” option. It is needed when run tlt-export yolo. TLT team will improve the tlt user guide as below.

-e, --experiment_spec : Path to the spec file, this argument is required for faster_rcnn,ssd,dssd,yolo,retinanet.

The improvement has been addressed in the new format tlt user guide.

1 Like

Thanks! i solved it!