ONNX File not being created

Hi,

I am getting am error while building the wheels for ONNX file. If someone could solve it that will be great.

docky4gb@docky4gb-desktop:~$ pip3 install onnxruntime_gpu-1.8.0-cp36-cp36m-linux_aarch64.whl
Defaulting to user installation because normal site-packages is not writeable
Processing ./onnxruntime_gpu-1.8.0-cp36-cp36m-linux_aarch64.whl
ERROR: Exception:
Traceback (most recent call last):
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/cli/base_command.py”, line 180, in _main
status = self.run(options, args)
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/cli/req_command.py”, line 204, in wrapper
return func(self, options, args)
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/commands/install.py”, line 319, in run
reqs, check_supported_wheels=not options.target_dir
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/resolution/resolvelib/resolver.py”, line 104, in resolve
req, requested_extras=()
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/resolution/resolvelib/factory.py”, line 434, in make_requirement_from_install_req
version=None,
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/resolution/resolvelib/factory.py”, line 205, in _make_candidate_from_link
version=version,
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/resolution/resolvelib/candidates.py”, line 312, in init
version=version,
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/resolution/resolvelib/candidates.py”, line 151, in init
self.dist = self._prepare()
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/resolution/resolvelib/candidates.py”, line 234, in _prepare
dist = self._prepare_distribution()
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/resolution/resolvelib/candidates.py”, line 318, in _prepare_distribution
self._ireq, parallel_builds=True
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/operations/prepare.py”, line 508, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/operations/prepare.py”, line 571, in _prepare_linked_requirement
req, self.req_tracker, self.finder, self.build_isolation,
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/operations/prepare.py”, line 61, in _get_prepared_distribution
return abstract_dist.get_pkg_resources_distribution()
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/distributions/wheel.py”, line 27, in get_pkg_resources_distribution
with ZipFile(self.req.local_file_path, allowZip64=True) as z:
File “/usr/lib/python3.6/zipfile.py”, line 1131, in init
self._RealGetContents()
File “/usr/lib/python3.6/zipfile.py”, line 1198, in _RealGetContents
raise BadZipFile(“File is not a zip file”)
zipfile.BadZipFile: File is not a zip file

And also can someone send me a clean tutorial of how to convert my existing Tensorflow yolov4-tiny model to Tensort and Deepstream, all the tutorials available are for example codes of NVIDIA and no tutorial is there for starting it from zero.

Thanks

It seems like the wheel file is corrupt - can you try downloading it again?

Please create a new topic about this - most of the resources I’ve seen are taking a Darknet or PyTorch model and using it with TensorRT.

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