When i am running the files with input file its showing an error of torch not compiled with cuda enabled can u please resolve this?
Please provide more details/reproduce steps of your issue, or logs as reference.
With these few words is not able to guess what happened.
i have created a new topic can u give reply for that?
I am using Nvidia Jetson Orin Nx board and i have flashed the board successfully. Now i am trying to run python script for tracking in that process i am getting an error that is torch not compiled with cuda enabled but i have installed the cuda as well as torch but i am getting the output? can please resolve this?
Do you know what log means?
Anyway, you need to install PyTorch that is specifically built for Jetson platforms with CUDA enabled.
yes !
while running those commands getting error that is no such option -m
Put the log.
Traceback (most recent call last):
File “/home/ubuntu/Downloads/SiamTrackers-master/NanoTrack/bin/demo.py”, line 143, in
main()
File “/home/ubuntu/Downloads/SiamTrackers-master/NanoTrack/bin/demo.py”, line 82, in main
model = load_pretrain(model, args.snapshot).cuda().eval()
File “/home/ubuntu/.local/lib/python3.10/site-packages/torch/nn/modules/module.py”, line 915, in cuda
return self._apply(lambda t: t.cuda(device))
File “/home/ubuntu/.local/lib/python3.10/site-packages/torch/nn/modules/module.py”, line 779, in _apply
module._apply(fn)
File “/home/ubuntu/.local/lib/python3.10/site-packages/torch/nn/modules/module.py”, line 779, in _apply
module._apply(fn)
File “/home/ubuntu/.local/lib/python3.10/site-packages/torch/nn/modules/module.py”, line 779, in _apply
module._apply(fn)
[Previous line repeated 1 more time]
File “/home/ubuntu/.local/lib/python3.10/site-packages/torch/nn/modules/module.py”, line 804, in _apply
param_applied = fn(param)
File “/home/ubuntu/.local/lib/python3.10/site-packages/torch/nn/modules/module.py”, line 915, in
return self._apply(lambda t: t.cuda(device))
File “/home/ubuntu/.local/lib/python3.10/site-packages/torch/cuda/init.py”, line 284, in _lazy_init
raise AssertionError(“Torch not compiled with CUDA enabled”)
AssertionError: Torch not compiled with CUDA enabled
I mean this one.
python3 -m pip install --upgrade pip; python3 -m pip install numpy==’1.26.1’ python3 -m pip install --no-cache $TORCH_INSTALL
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pip in ./.local/lib/python3.10/site-packages (24.0)
Usage:
/usr/bin/python3 -m pip install [options] [package-index-options] …
/usr/bin/python3 -m pip install [options] -r [package-index-options] …
/usr/bin/python3 -m pip install [options] [-e] …
/usr/bin/python3 -m pip install [options] [-e] …
/usr/bin/python3 -m pip install [options] <archive url/path> …
no such option: -m
They are three different commands. You don’t run them all at the same time.
i have run all the commands one by one at this step its throwing an error
Put the terminal window screenshot here if you don’t know what I’m talking about.
Did you really read my comment?
I mean
python3 -m pip install --upgrade pip
python3 -m pip install numpy==’1.26.1’
python3 -m pip install --no-cache $TORCH_INSTALL
, NOT
python3 -m pip install --upgrade pip; python3 -m pip install numpy==’1.26.1’ python3 -m pip install --no-cache $TORCH_INSTALL
Download the right version according to your JetPack version: