Hello. I have a Jetson Nano 4gb and hate to admit but I have been trying to resolve the error for over a week - I beg for any help as I have almost given up entirely and appreciate any input. This is based on a tutorial video below:
Jetson AI Fundamentals - S3E5 - Training Object Detection Models - YouTube
At 16:45 in the video below I am at the point of running the command:
python3 train_ssd.py --dataset-type=voc --data=data/stuff --model-dir=models/stuff --batch-size=2–workers=1 --epochs=1
nvidia@ubuntu:~/Desktop/jetson-inference/python/training/detection/ssd$ python3 train_ssd.py --dataset-type=voc --data=data/stuff --model-dir=models/stuff --batch-size=2–workers=1 --epochs=1
Traceback (most recent call last):
File “train_ssd.py”, line 18, in
from vision.ssd.vgg_ssd import create_vgg_ssd
File “/home/nvidia/Desktop/jetson-inference/python/training/detection/ssd/vision/ssd/vgg_ssd.py”, line 6, in
from .predictor import Predictor
File “/home/nvidia/Desktop/jetson-inference/python/training/detection/ssd/vision/ssd/predictor.py”, line 4, in
from .data_preprocessing import PredictionTransform
File “/home/nvidia/Desktop/jetson-inference/python/training/detection/ssd/vision/ssd/data_preprocessing.py”, line 1, in
from …transforms.transforms import *
File “/home/nvidia/Desktop/jetson-inference/python/training/detection/ssd/vision/transforms/transforms.py”, line 5, in
from torchvision import transforms
File “/usr/local/lib/python3.6/dist-packages/torchvision-0.7.0a0+78ed10c-py3.6-linux-aarch64.egg/torchvision/init.py”, line 6, in
from torchvision import datasets
File “/usr/local/lib/python3.6/dist-packages/torchvision-0.7.0a0+78ed10c-py3.6-linux-aarch64.egg/torchvision/datasets/init.py”, line 1, in
from .lsun import LSUN, LSUNClass
File “/usr/local/lib/python3.6/dist-packages/torchvision-0.7.0a0+78ed10c-py3.6-linux-aarch64.egg/torchvision/datasets/lsun.py”, line 2, in
from PIL import Image
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/Pillow-9.2.0-py3.6-linux-aarch64.egg/PIL/Image.py”, line 52, in
File “”, line 971, in _find_and_load
File “”, line 951, in _find_and_load_unlocked
File “”, line 894, in _find_spec
File “”, line 1157, in find_spec
File “”, line 1131, in _get_spec
File “”, line 1112, in _legacy_get_spec
File “”, line 441, in spec_from_loader
File “”, line 544, in spec_from_file_location
File “/usr/local/lib/python3.6/dist-packages/Pillow-9.2.0-py3.6-linux-aarch64.egg/PIL/_deprecate.py”, line 1
SyntaxError: future feature annotations is not defined
nvidia@ubuntu:~/Desktop/jetson-inference/python/training/detection/ssd$