Giter Site home page Giter Site logo

Comments (11)

timmeinhardt avatar timmeinhardt commented on August 15, 2024

Please have a look at our README.md. It specifies the correct PyTorch version necessary to run this code.

from tracking_wo_bnw.

edithzeng avatar edithzeng commented on August 15, 2024

I got the same error with CUDA 9.0 and torch==0.3.1 on Ubuntu 16.04.6.

from tracking_wo_bnw.

timmeinhardt avatar timmeinhardt commented on August 15, 2024

Which error? The error during compilation or loading of the weights? For the latter, could you please describe in more detail what means "unable to load"?

from tracking_wo_bnw.

Midhilesh29 avatar Midhilesh29 commented on August 15, 2024

I have downloaded CUDA 9.0 NVIDIA docker container and installed Pytorch 0.3.1 and tried to load the FRCNN weights that is provided.

import torch
torch.__version__
'0.3.1'

I got the following error.

import torch
a=torch.load("./output/frcnn/res101/mot_2017_train/180k/res101_faster_rcnn_iter_180000.pth")

/usr/local/lib/python3.6/dist-packages/torch/cuda/__init__.py:95: UserWarning: 
    Found GPU0 GeForce RTX 2080 Ti which requires CUDA_VERSION >= 9000 for
     optimal performance and fast startup time, but your PyTorch was compiled
     with CUDA_VERSION 8000. Please install the correct PyTorch binary
     using instructions from http://pytorch.org
    
  warnings.warn(incorrect_binary_warn % (d, name, 9000, CUDA_VERSION))

I have also checked the CUDA version

root@53eea167b2d4:/workspace/midhilesh/tracking_wo_bnw# nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Sep__1_21:08:03_CDT_2017
Cuda compilation tools, release 9.0, V9.0.176

after this warning in the above torch.load() command was running more that 1 minute and when I checked nvidia-smi, the GPU memory is consumed beyond the size of the .pth file.

The above problem (loading weights) does'nt occur while using pytorch 1.3. But the fasterRCNN code written by Jianwei Yang which is used in this code (tracking without bells and whistles) needs pytorch 0.4.0 for running the code. https://github.com/jwyang/faster-rcnn.pytorch/#prerequisites

from tracking_wo_bnw.

timmeinhardt avatar timmeinhardt commented on August 15, 2024

This seems to be a problem of your PyTorch installation. Although ncvv might be linked to the correct CUDA version, PyTorch might not be able to find it and compiles with 8.0 instead of 9.0. What is the output of torch.version.cuda?

I found this issue which states that CUDA 9.0 doesnt work well with your GPU.

from tracking_wo_bnw.

Midhilesh29 avatar Midhilesh29 commented on August 15, 2024
torch.version.cuda
'8.0.61'

So, how to change this cuda version?. If my GPU 2080Ti is not compatible with CUDA 9.0, is there any way to run your code?

from tracking_wo_bnw.

timmeinhardt avatar timmeinhardt commented on August 15, 2024

You could try running the code only on CPU. And for the PyTorch cuda version, please double check all the CUDA paths (CUDA_HOME, LD_LIBRARY_PATH, PATH, etc.) before installing PyTorch.

from tracking_wo_bnw.

Midhilesh29 avatar Midhilesh29 commented on August 15, 2024

Thank you for helping me!! I will check it.

from tracking_wo_bnw.

timmeinhardt avatar timmeinhardt commented on August 15, 2024

Can we close this issue?

from tracking_wo_bnw.

Midhilesh29 avatar Midhilesh29 commented on August 15, 2024

yes sure, I will close it

from tracking_wo_bnw.

nicolaerosia avatar nicolaerosia commented on August 15, 2024

@Midhilesh29 I have a RTX 2070, did you found a workaround? I've opened a new issue which is basically a duplicate of this, #35 and there's also #16

from tracking_wo_bnw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.