Closed davidyang180 closed 2 years ago
@davidyang180 Hi, I have the same problem, do you have any solution?
@davidyang180 Hi, I have the same problem, do you have any solution?
@botaoye Hi, Let me think about it, I remember in a trax.py file code in the VOT official tool package, it will cover the ‘LD_LIBRARY_PATH' path in the container, just enter this path:'/usr/local/lib/python3.6/dist-packages/vot/tracker/trax.py ', modify the code in this file to use the default environment 'LD_LIBRARY_PATH' path::
class TrackerProcess(object):
def __init__(self, command: str, envvars=dict(), timeout=30, log=False, socket=False):
environment = dict(os.environ)
LD_LIBRARY_PATH = environment['LD_LIBRARY_PATH']
environment.update(envvars)
environment['LD_LIBRARY_PATH'] = LD_LIBRARY_PATH
self._workdir = tempfile.mkdtemp()
....................
@davidyang180 Hi, I have the same problem, do you have any solution?
@botaoye Hi, Let me think about it, I remember in a trax.py file code in the VOT official tool package, it will cover the ‘LD_LIBRARY_PATH' path in the container, just enter this path:'/usr/local/lib/python3.6/dist-packages/vot/tracker/trax.py ', modify the code in this file to use the default environment 'LD_LIBRARY_PATH' path::
class TrackerProcess(object): def __init__(self, command: str, envvars=dict(), timeout=30, log=False, socket=False): environment = dict(os.environ) LD_LIBRARY_PATH = environment['LD_LIBRARY_PATH'] environment.update(envvars) environment['LD_LIBRARY_PATH'] = LD_LIBRARY_PATH self._workdir = tempfile.mkdtemp() ....................
It works! Thanks a lot for your help.
Hi! When I run Python code on the command line inside the singularity container, CUDA showing is available;
But when I run the code through the the "trackers.ini“ file,
it will cause
torch._C._cuda_getDeviceCount() = 0
,torch.cuda.is_available() = false
, what is the reason?I asked related questions in the official repository of singularity, the author said "If it works from the command line, then Singularity is not causing the problem here. You will need to find the issue in the way that the tool is calling Python. Perhaps it is overriding the
LD_LIBRARY_PATH
that Singularity sets when using--nv
to bind the CUDA drivers." Is this a problem caused by the vot-toolkit calling internal parameters?