Giter Site home page Giter Site logo

incepformer's Introduction

updating....

IncepFormer: Efficient Inception Transformer with Pyramid Pooling for Semantic Segmentation

IncepFormer: Efficient Inception Transformer with Pyramid Pooling for Semantic Segmentation.
Lihua Fu, Haoyue Tian, Xiangping Bryce Zhai, Pan Gao, Xiaojiang Peng

This repository contains the official Pytorch implementation of training & evaluation code and the pretrained models for IncepFormer.

We use MMSegmentation v0.29.0 as the codebase.

Installation

For install and data preparation, please refer to the guidelines in MMSegmentation v0.29.0.

Other requirements: pip install timm==0.4.12

An example (works for me): CUDA 11.0 and pytorch 1.7.0

pip install torchvision==0.8.0
pip install timm==0.4.12
pip install mmcv-full==1.5.3 
pip install opencv-python==4.6.0.66
cd IncepFormer && pip install -e .

Training

Download weights ( google drive ) pretrained on ImageNet-1K, and put them in a folder pretrained/.

Example: train IncepFormer-T on ADE20K:

# Single-gpu training
python tools/train.py local_configs/incepformer/Tiny/tiny_ade_512×512_160k.py

# Multi-gpu training
./tools/dist_train.sh local_configs/incepformer/Tiny/tiny_ade_512×512_160k.py <GPU_NUM>

Evaluation

Example: evaluate IncepFormer-T on ADE20K:

# Single-gpu testing
python tools/test.py local_configs/incepformer/Tiny/tiny_ade_512×512_160k.py /path/to/checkpoint_file

# Multi-gpu testing
./tools/dist_test.sh local_configs/incepformer/Tiny/tiny_ade_512×512_160k.py /path/to/checkpoint_file <GPU_NUM>

# Multi-gpu, multi-scale testing
tools/dist_test.sh local_configs/incepformer/Tiny/tiny_ade_512×512_160k.py /path/to/checkpoint_file <GPU_NUM> --aug-test

incepformer's People

Contributors

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