• Stars
    star
    157
  • Rank 238,399 (Top 5 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 6 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

mIOU=80.02 on cityscapes. My implementation of deeplabv3+ (also know as 'Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation' based on the dataset of cityscapes).

DeepLab V3plus

My implementation of Deeplab_v3plus. This repository is based on the dataset of cityscapes and the mIOU is 70.54.

I am working with python3.5 and pytorch1.0.0 built from source. Other environments are not tested, but you need at least pytorch1.0 since I use torch.distributed to manipulate my gpus. I use two 1080ti to train my model, so you also need two gpus each of which should have at least 9G memory.

Dataset

The experiment is done with the dataset of CityScapes. You need to register on the website and download the dataset images and annotations. Then you create a data directory and then decompress.

    $ cd DeepLabv3plus
    $ mkdir -p data
    $ mv /path/to/leftImg8bit_trainvaltest.zip data
    $ mv /path/to/gtFine_trainvaltest.zip data
    $ cd data
    $ unzip leftImg8bit_trainvaltest.zip
    $ unzip gtFine_trainvaltest.zip

Train && Eval

After creating the dataset, you can train on the cityscapes train set and evaluate on the validation set.
Train:

    $ cd DeepLabv3plus
    $ CUDA_VISIBLE_DEVICES=0,1 python -m torch.distributed.launch --nproc_per_node=2 train.py

This will take around 13 hours on two 1080ti gpus. After training, the model will be evaluated on the val set automatically, and you will see a mIOU of 70.54.

Eval: If you want to evaluate a trained model, you can also do this:

    $ python evaluate.py

or if you want to evaluate on multi-gpus, you can also do this:

    $ CUDA_VISIBLE_DEVICES=0,1 python -m torch.distributed.launch --nproc_per_node=2 evaluate.py

Configurations

  • If you want to use your own dataset, you may implement you dataset file as does with my cityscapes.py.

  • As for the hyper-parameters, you may change them in the configuration file configs/configurations.py.

Pretrained Model

If you need model parameters pretrained on cityscapes, you can download the pth file here with extraction code: 3i4g.

More Repositories

1

BiSeNet

Add bisenetv2. My implementation of BiSeNet
Python
1,286
star
2

triplet-reid-pytorch

My implementation of the paper [In Defense of the Triplet Loss for Person Re-Identification]
Python
100
star
3

gdGPT

Train llm (bloom, llama, baichuan2-7b, chatglm3-6b) with deepspeed pipeline mode. Faster than zero/zero++/fsdp.
Python
51
star
4

SphereReID

My implementation of paper: SphereReID: Deep Hypersphere Manifold Embedding for Person Re-Identification
Python
41
star
5

fixmatch-pytorch

90%+ with 40 labels. please see the readme for details.
Python
35
star
6

Deeplab-Large-FOV

My Implementation of the deeplab_v1 (known as deeplab large fov)
Python
27
star
7

MFM

code for paper "Masked Frequency Modeling for Self-Supervised Visual Pre-Training" (https://arxiv.org/pdf/2206.07706.pdf)
Python
21
star
8

SFT-ReID

My implementation of Spectral-Feature-Transformation-ReID, link to the paper: https://arxiv.org/abs/1811.11405
Python
19
star
9

DenseCL

DenseCL + regionCL-D
Python
14
star
10

SelfSup

ssl method pretrain experiments and weights: mocov2 + fast-moco + regioncl + mixup + densecl
Python
4
star
11

porn_identification

implement image processing with a combination of C and python3 based on socket communication
C
3
star
12

Segmentatron

My implementation of some segmentation algorithms
Python
3
star
13

AutoAugment_opencv

autoaugment and randomaugment implemented with python opencv(cv2)
Python
3
star
14

ImageNet-Loader

An imagenet dataloader implemented with opencv and pybind11 based on multi-threading
C++
2
star
15

mixMatch

Pytorch reproduction of the experiment in the paper of MixMatch.
Python
2
star
16

CAPTCHA_IND

Identify CAPTCHA basing on CNN implemented by mxnet
Python
1
star
17

GAN-mxnet

GAN implemented with mxnet
Python
1
star