Coder Social home page Coder Social logo

bicnn's Introduction

FGC_CUB-200-2011

Fine Grained Image Classification on CUB-200-2011

Environment

We suggest using Anaconda to create a virtual environment for this program. Visit official website or here to download the installer(Hope there is a GUI and a browser on your deep learning server machine).

Create a new virtual environment: conda create -n pytorch python=3.6

Activate the environment on MacOS/Linux: source activate pytorch

On Windows: activate pytorch

Requirements

Note: We suggest using pip instead of conda to install following requirements on Windows. The reason is that if you choose to use conda to install something like PyTorch or numpy, in order to speed up computation, another 3 packages start with mkl will also be downloaded. However, these mkl packages have conflicts with conda on Windows and you just cannot run the program.

If you're using MacOS or Linux, just ignore the note and enjoy conda~

If you want to speed up package download, you can add Tsinghua's package repository for conda:

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes

Visit 清华大学开源软件镜像站 for more information.

PyTorch

Visit Official Website, choose correct OS/PM/Python-version/CUDA-version to get install command. Please install both pytorch and torchvision.

If your download speed is too slow, you can also add Tsinghua's repository specially for installing pytorch:

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda install pytorch torchvision

requests

pip install requests, note that conda doesn't contain this package.

Other requirements

conda install matplotlib pillow

Train and evaluate globally

cd FGC_CUB-200-2011
source activate pytorch
python global.py

bicnn's People

Contributors

yzspku 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.