RuntimeError: Found no NVIDIA driver on your system

#7
by S-Oda - opened

I'm trying to use the new track-anything app, but it fails to launch due to the error outlined in the title. This is the full log:

Runtime error
cv-2.0.1 mmengine-0.8.4 platformdirs-3.10.0 termcolor-2.3.0 tomli-2.0.1 yapf-0.40.1

[notice] A new release of pip available: 22.3.1 -> 23.2.1
[notice] To update, run: python -m pip install --upgrade pip
download checkpoints ......
download successfully!
download checkpoints ......
download successfully!
Initializing BaseSegmenter to cuda:0
Traceback (most recent call last):
File "app.py", line 429, in
model = TrackingAnything(SAM_checkpoint, xmem_checkpoint, e2fgvi_checkpoint,args)
File "/home/user/app/track_anything.py", line 31, in init
self.samcontroler = SamControler(self.sam_checkpoint, args.sam_model_type, args.device)
File "/home/user/app/tools/interact_tools.py", line 37, in init
self.sam_controler = BaseSegmenter(SAM_checkpoint, model_type, device)
File "/home/user/app/tools/base_segmenter.py", line 26, in init
self.model.to(device=self.device)
File "/home/user/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1145, in to
return self._apply(convert)
File "/home/user/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 797, in _apply
module._apply(fn)
File "/home/user/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 797, in _apply
module._apply(fn)
File "/home/user/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 797, in _apply
module._apply(fn)
File "/home/user/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 820, in _apply
param_applied = fn(param)
File "/home/user/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1143, in convert
return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)
File "/home/user/.local/lib/python3.8/site-packages/torch/cuda/init.py", line 247, in _lazy_init
torch._C._cuda_init()
RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx


I do however have an NVIDIA GPU installed, here is the return after entering 'nvidia-smi in comman prompt:
Screenshot 2023-09-01 151332.png

I don't know if there's something wrong with the way it's configured, but is there a way to fix this?

Thanks!

Sign up or log in to comment