Giter Club home page Giter Club logo

fgvc-xenial-setup's Introduction

FGVC-Xenial

vt-vl-lab FGVC implemented in Ubuntu Xenial (Alert!!! With GPU limitations)

Installation

1.Install python 3.8.x in (Xenial) using these instructions

2.Install anaconda in (Xenial) using these instruction

3.Follow the pre-requisites from the FGVC and only edit cudatoolkit according to what your system can install.

I installed CUDA 9.2 (after lot of hit and trials and errors) so instead of cudatoolkit=10.1 , you might go for cudatoolkit=9.2

Now running the python will give few errors , so going to error resolution

Error Resolution

  1. CV2 Not found :

Now in my case it resulted in conflict due to ros kinetic , so I commented out the source bash files of ros in .bashrc file in home.

  1. CUDA CPU only : torch.cuda.is_available() is false

open the python file and make all torch.load lines like : torch.load( something , map_location=torch.device('cpu'))

3.CUDA Runtime error 100:

Now this error is resulted as you don't have CUDA installed probably. So as I mentioned before I installed CUDA 9.2.

Make sure you have the PPAs or serach for it and then :

sudo apt-get install cuda-9-2

Now the trouble I faced here is even though it installs and works but the problem came with the NVIDIA Driver( which i discuss later)

4.CUDA Runtime error 30:

The best solution is to reboot , do make sure everything is updated and no dependencies left.

NVIDIA Driver Trouble

There are lot things that could go wrong with driver installation

DO NOT prefer to download a run file from NVIDIA website.

Check your GPU , CUDA version and Driver versions compatability

Take my example : while installing CUDA 10.x or 9.x or even 8.x it took NVIDIA-460 as default driver along with it

It resulted in repeated crash that took hours to finally find what should be changed.

So for me , 450 was the latest supported and compatible version , so I added the PPAs then:

sudo apt-get install nvidia-450

After it install (whatever suitable driver version) reboot and check if you don't face any crashes.

If you do go to ttyl console using ctlr+alt+F1 and proceed to remove those drivers and reboot.

So if driver is sucessful then proceed again with CUDA installation only this time

sudo aptitude install cuda-9-2

Now as aptitude works it will provide various schemes but none seemed suitable , but eventually after quiting and again running through proposed solutions

Finally a solution appears which left nvidia-460 unresolved and installed cuda-9-2 at nvidia-450 dependencies.

GPU Limitation

After running program I faced the limitation : RuntimeError: CUDA out of memory. Tried to allocate 226.00 MiB (GPU 0; 1.96 GiB total capacity; 916.15 MiB already allocated; 172.69 MiB free; 1.13 GiB reserved in total by PyTorch)

fgvc-xenial-setup's People

Contributors

aifriday avatar

Watchers

 avatar

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.