Giter VIP home page Giter VIP logo

11785-project's Introduction

Instruction for running baseline models

Environment

We are running our baseline models on AWS EC2 G4 instances with Pytorch 1.6.0. Below are some packages you might need to install for running the baseline models

python -m pip install cityscapesscripts
pip install mmcv-full

Dataset

The dataset we are currently using is Cityscapes, you can download it with from https://www.cityscapes-dataset.com/ or you can simply run the following commands.

wget --keep-session-cookies --save-cookies=cookies.txt \
    --post-data 'username=yourusername&password=yourpassword&submit=Login'https://www.cityscapes-dataset.com/login/
wget --load-cookies cookies.txt --content-disposition https://www.cityscapes-dataset.com/file-handling/?packageID=1
wget --load-cookies cookies.txt --content-disposition https://www.cityscapes-dataset.com/file-handling/?packageID=3
unzip leftImg8bit_trainvaltest.zip && rm leftImg8bit_trainvaltest.zip
unzip gtFine_trainvaltest.zip && rm gtFine_trainvaltest.zip

The final file structure will be:

    .
    ├── ...
    ├── data                    
    │   ├── cityscapes
    │   │   ├── getFine 
    │   │   ├── leftImg8bit
    └── ...

Running

Train DeepLabv3+ with ResNet50 backbone:

./tools/dist_train.sh configs/deeplabv3plus/deeplabv3plus_r50-d8_512x1024_80k_cityscapes.py 1

Evaluate DeepLabv3+:

python tools/test.py configs/deeplabv3plus/deeplabv3plus_r50-d8_512x1024_80k_cityscapes.py \
    checkpoints/FileGeneratedInTraining.pth\
    --eval mIoU cityscapes

For running DeepLabv3+ with ResNet101 backbone and FCN-8s, you can also run similar commands above.

11785-project's People

Contributors

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