Hi,
I am trying to install retina-net-examples from github on my Jetson Xavier
GitHub - NVIDIA/retinanet-examples: Fast and accurate object detection with end-to-end GPU optimization.
Installation seems to pass correct but when trying to convert from pth to onnx by running the following command:
retinanet export retinanet_rn50fpn.pth retinanet_rn50fpn.plan --batch 1 --size 1280
i get the following errors:
Traceback (most recent call last):
File “/usr/local/bin/retinanet”, line 11, in
load_entry_point(‘retinanet==0.1’, ‘console_scripts’, ‘retinanet’)()
File “/home/foresight/.local/lib/python3.6/site-packages/pkg_resources/init.py”, line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File “/home/foresight/.local/lib/python3.6/site-packages/pkg_resources/init.py”, line 2852, in load_entry_point
return ep.load()
File “/home/foresight/.local/lib/python3.6/site-packages/pkg_resources/init.py”, line 2443, in load
return self.resolve()
File “/home/foresight/.local/lib/python3.6/site-packages/pkg_resources/init.py”, line 2449, in resolve
module = import(self.module_name, fromlist=[‘name’], level=0)
File “/usr/local/lib/python3.6/dist-packages/retinanet-0.1-py3.6-linux-aarch64.egg/retinanet/main.py”, line 10, in
from retinanet import infer, train, utils
File “/usr/local/lib/python3.6/dist-packages/retinanet-0.1-py3.6-linux-aarch64.egg/retinanet/infer.py”, line 6, in
from apex import amp
File “”, line 971, in _find_and_load
File “”, line 955, in _find_and_load_unlocked
File “”, line 656, in _load_unlocked
File “”, line 626, in _load_backward_compatible
File “/usr/local/lib/python3.6/dist-packages/apex-0.9.10.dev0-py3.6.egg/apex/init.py”, line 18, in
File “”, line 971, in _find_and_load
File “”, line 955, in _find_and_load_unlocked
File “”, line 656, in _load_unlocked
File “”, line 626, in _load_backward_compatible
File “/usr/local/lib/python3.6/dist-packages/apex-0.9.10.dev0-py3.6.egg/apex/interfaces.py”, line 10, in
File “/usr/local/lib/python3.6/dist-packages/apex-0.9.10.dev0-py3.6.egg/apex/interfaces.py”, line 14, in ApexImplementation
File “/home/foresight/.local/lib/python3.6/site-packages/zope/interface/declarations.py”, line 483, in implements
raise TypeError(_ADVICE_ERROR % ‘implementer’)
TypeError: Class advice impossible in Python3. Use the @implementer class decorator instead.
Can anyone please advise?
Thanks,
Gabi