So, I am not able to install it either. I installed PyTorch and torchvision using the instructions here.
They are for sure installed:
>>> import torch
>>> torch.__version__
'1.4.0'
>>> import torchvision
>>> torchvision.__version__
'0.5.0a0+85b8fbf'
But installing retinanet-examples does not work. I built a wheel, but it won’t install.
$ pip3 install odtk-0.2.0-cp36-cp36m-linux_aarch64.whl
Processing ./odtk-0.2.0-cp36-cp36m-linux_aarch64.whl
Collecting requests (from odtk==0.2.0)
Using cached https://files.pythonhosted.org/packages/1a/70/1935c770cb3be6e3a8b78ced23d7e0f3b187f5cbfab4749523ed65d7c9b1/requests-2.23.0-py2.py3-none-any.whl
Collecting torchvision (from odtk==0.2.0)
Using cached https://files.pythonhosted.org/packages/fb/01/03fd7e503c16b3dc262483e5555ad40974ab5da8b9879e164b56c1f4ef6f/torchvision-0.2.2.post3-py2.py3-none-any.whl
Collecting pillow (from odtk==0.2.0)
Using cached https://files.pythonhosted.org/packages/39/47/f28067b187dd664d205f75b07dcc6e0e95703e134008a14814827eebcaab/Pillow-7.0.0.tar.gz
Collecting torch>=1.0.0a0 (from odtk==0.2.0)
Could not find a version that satisfies the requirement torch>=1.0.0a0 (from odtk==0.2.0) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
No matching distribution found for torch>=1.0.0a0 (from odtk==0.2.0)
If I try to install it globally, since torchvision won’t do a --user install on tegra, i get this:
Running setup.py install for pbkdf2 ... done
Running setup.py install for cryptacular ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-d4x4exp0/cryptacular/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-13l7af_m-record/install-record.txt --single-version-externally-managed --compile:
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: *** Do not know how to make File target `install' (/tmp/pip-build-d4x4exp0/cryptacular/install). Stop.
scons: building terminated because of errors.
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-d4x4exp0/cryptacular/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-13l7af_m-record/install-record.txt --single-version-externally-managed --compile" failed with error code 2 in /tmp/pip-build-d4x4exp0/cryptacular/
and if i install using sudo python3 setup.py install
i get:
Successfully installed attrs-19.3.0 enscons-0.23.0 pytoml-0.1.21 scons-3.1.2 setuptools-46.0.0 wheel-0.34.2
scons: Reading SConscript files ...
SandboxViolation: SandboxViolation: mkdir('/tmp/enscons', 511) {}
The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.
This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand. Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
Nvidia documentation seems to state that int8 calibration should be performed on the same device that the network is run on but in the case of Xavier I am not able to get it working and unfortunately I have no card for x86 that supports fast int8 (edit: apparently I do. supported by 1080). Apart from some example code that does similar things, I can find no int8 calibration tool.
My understanding is I need to do two things:
- convert my .pth to an onnx
- make a calibrated .plan with the supplied dataset
Unfortunately I am stuck, however, without a .pth to .onnx conversion. If it’s not possible to install retinanet-examples on xavier, is there an alternative conversion utility lying around in a repo somewhere?