← 开源
Deeachain

Segmentation-Pytorch

Semantic Segmentation in Pytorch. Network include: FCN、FCN_ResNet、SegNet、UNet、BiSeNet、BiSeNetV2、PSPNet、DeepLabv3_plus、 HRNet、DDRNet

Model DevelopmentDataset engineeringArchitecturePython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
520
Star
75
Fork
+0
本周
1
贡献者
创建于 2020-04-19 · 更新于 2026-09-24 · 今日第 17844 名
主要开发者

Deeachain/Segmentation-Pytorch 排名第 17,844,有 520 个星标。

同类别比较

Deeachain/Segmentation-Pytorch 排名第 17,844,此处有 8 个同类条目;OpenDriveLab/WorldEngine 排名第 17,846。

同类别比较
名称排名指标
bhanML/Co-teaching17,833
语言:
Python
星标数:
521
分叉数:
109
简介:
NeurIPS'18: Co-teaching: Robust Training of Deep Neural Networks with Extremely Noisy Labels
google-deepmind/narrativeqa17,837
语言:
Shell
星标数:
521
分叉数:
70
简介:
This repository contains the NarrativeQA dataset. It includes the list of documents with Wikipedia summaries, links to full stories, and questions and answers.
kLabUM/rrcf17,838
语言:
Python
星标数:
521
分叉数:
118
简介:
🌲 Implementation of the Robust Random Cut Forest algorithm for anomaly detection on streams
lucasjinreal/keras_frcnn17,840
语言:
Python
星标数:
521
分叉数:
272
简介:
Keras Implementation of faster-rcnn
OpenDriveLab/WorldEngine17,846
语言:
Python
星标数:
520
分叉数:
34
简介:
WorldEngine: Towards the Era of Post-Training for Autonomous Driving
TellinaTool/nl2bash17,847
语言:
NewLisp
星标数:
520
分叉数:
69
简介:
Generating bash command from natural language https://arxiv.org/abs/1802.08979
XingangPan/deep-generative-prior17,848
语言:
Python
星标数:
520
分叉数:
69
简介:
Code for deep generative prior (ECCV2020 oral)
maszhongming/MatchSum17,858
语言:
Python
星标数:
520
分叉数:
105
简介:
Code for ACL 2020 paper: "Extractive Summarization as Text Matching"
关键参数与规格
关键参数与规格
参数值
语言Python
类别Model Development
子类别Dataset engineering,Architecture
关键词Computer vision, Distributed training, Model architecture, Visual understanding
星标数520
分叉数75
贡献者1
创建日期2020-04-19
更新日期2026-09-24
1 天星标数0
7 天星标数0
排名17,844
上次排名17,627
排名变化-217
7 天星标排名16,327
上次 7 天星标排名16,335
7 天星标排名变化8
总星标排名18,772
上次总星标排名18,748
总星标排名变化-24
国家China
README 摘录

10 Project structure adjustment, the previous code has been deleted, the adjustment will be re-uploaded code 2021. 09 Re-upload the code, "V1 Commit" 2021. 22 update torch distributed training Ongoing update . Display (Cityscapes) Using model DDRNet 1525 test sets, official MIOU =78. 4069% Comparison of the original and predicted images 2. Install Experimental environment: Ubuntu 16. 5 See Dependency Installation Package for details in requirement. 54% | - | √ | PSPNet | | DeeplabV3+ | ResNet 50 | 77. 78% | - | √ | DeeplabV3+ | | DDRNet23_slim | - | | | DDRNet23_slim_imagenet

| | | DDRNet23 | - | | | DDRNet23_imagenet | | | DDRNet39 | - | 79. 63% | - | DDRNet39_imagenet | DDRNet39 | Updating more model. Data preprocessing This project enables you to expose data sets: 、 The data set is uploaded later . **Cityscapes data set preparation is shown here:** 4. 1 Download the dataset Download the dataset from the link on the website, You can get suffix of original image under folder , 、 、 suffix of fine labeled image under folder . 2 Onehot encoding of label image The real label gray scale image Onehot encoding used

by the semantic segmentation task is 0-18, so the label needs to be encoded. Using scripts to process the image and get the result . png gtFine/train/cologne/cologne_000000_000019_gtFine_labelTrainIds. png leftImg8bit/train/cologne/cologne_000001_000019_leftImg8bit. png gtFine/train/cologne/cologne_000001_000019_gtFine_labelTrainIds. origin image path + the separator '\t' + label path + the separator '\n' sh train.

常见问题

记录了多少星标和分叉?

Deeachain/Segmentation-Pytorch 有 520 个星标和 75 个分叉。

仓库排名是多少?

Deeachain/Segmentation-Pytorch 排名第 17,844。

记录的语言和类别是什么?

Deeachain/Segmentation-Pytorch 有 520 个星标,语言为 Python,类别为 Model Development。

哪个仓库排名最接近?

Deeachain/Segmentation-Pytorch 与 OpenDriveLab/WorldEngine 比较,后者排名第 17,846,有 520 个星标。

README

:rocket: If it helps you, click a star! :star:

Update log

  • 2020.12.10 Project structure adjustment, the previous code has been deleted, the adjustment will be re-uploaded code
  • 2021.04.09 Re-upload the code, "V1 Commit"
  • 2021.04.22 update torch distributed training
  • Ongoing update .....

1. Display (Cityscapes)

  • Using model DDRNet 1525 test sets, official MIOU =78.4069%

Average results

Class results1

Class results2

Class results3

  • Comparison of the original and predicted images

origin

label

predict

2. Install

pip install -r requirements.txt

Experimental environment:

  • Ubuntu 16.04 Nvidia-Cards >= 1

  • python==3.6.5

  • See Dependency Installation Package for details in requirement.txt

3. Model

All the modeling is done in builders/model_builder.py

  • [x] FCN
  • [x] FCN_ResNet
  • [x] SegNet
  • [x] UNet
  • [x] BiSeNet
  • [x] BiSeNetV2
  • [x] PSPNet
  • [x] DeepLabv3_plus
  • [x] HRNet
  • [x] DDRNet
Model Backbone Val mIoU Test mIoU Imagenet Pretrain Pretrained Model
PSPNet ResNet 50 76.54% - √ PSPNet
DeeplabV3+ ResNet 50 77.78% - √ DeeplabV3+
DDRNet23_slim - DDRNet23_slim_imagenet
DDRNet23 - DDRNet23_imagenet
DDRNet39 - 79.63% - DDRNet39_imagenet DDRNet39
Updating more model.......

4. Data preprocessing

This project enables you to expose data sets: Cityscapes、ISPRS

The data set is uploaded later .....

Cityscapes data set preparation is shown here:

4.1 Download the dataset

Download the dataset from the link on the website, You can get *leftImg8bit.png suffix of original image under folder leftImg8bit, a) *color.png、b) *labelIds.png、c) *instanceIds.png suffix of fine labeled image under folder gtFine.

*leftImg8bit.png          : the origin picture
a) *color.png             : the class is encoded by its color
b) *labelIds.png          : the class is encoded by its ID
c) *instanceIds.png       : the class and the instance are encoded by an instance ID

4.2 Onehot encoding of label image

The real label gray scale image Onehot encoding used by the semantic segmentation task is 0-18, so the label needs to be encoded. Using scripts dataset/cityscapes/cityscapes_scripts/process_cityscapes.py to process the image and get the result *labelTrainIds.png. process_cityscapes.py usage: Modify 486 lines `Cityscapes_path'is the path to store your own data.

  • Comparison of original image, color label image and gray label image (0-18)

***_leftImg8bit

***_gtFine_color

***_gtFine_labelTrainIds

  • Local storage path display /data/open_data/cityscapes/:
data
  |--open_data
        |--cityscapes
               |--leftImg8bit
                    |--train
                        |--cologne
                        |--*******
                    |--val
                        |--*******
                    |--test
                        |--*******
               |--gtFine
                    |--train
                        |--cologne
                        |--*******
                    |--val
                        |--*******
                    |--test
                        |--*******

4.3 Generate image path

  • Generate a txt containing the image path

Use script dataset/generate_txt.py to generate the path txt file containing the original image and labels. A total of 3 txt files will be generated: cityscapes_train_list.txt、cityscapes_val_list.txt、 cityscapes_test_list.txt, and copy the three files to the dataset root directory.

data
  |--open_data
        |--cityscapes
               |--cityscapes_train_list.txt
               |--cityscapes_val_list.txt
               |--cityscapes_test_list.txt
               |--leftImg8bit
                    |--train
                        |--cologne
                        |--*******
                    |--val
                        |--*******
                    |--test
                        |--*******
               |--gtFine
                    |--train
                        |--cologne
                        |--*******
                    |--val
                        |--*******
                    |--test
                        |--*******
  • The contents of the txt are shown as follows:
leftImg8bit/train/cologne/cologne_000000_000019_leftImg8bit.png gtFine/train/cologne/cologne_000000_000019_gtFine_labelTrainIds.png
leftImg8bit/train/cologne/cologne_000001_000019_leftImg8bit.png gtFine/train/cologne/cologne_000001_000019_gtFine_labelTrainIds.png
..............
  • The format of the txt are shown as follows:
origin image path + the separator '\t' + label path +  the separator '\n'

TODO.....

5. How to train

sh train.sh

5.1 Parameters

python -m torch.distributed.launch --nproc_per_node=2 \
                train.py --model PSPNet_res50 --out_stride 8 \
                --max_epochs 200 --val_epochs 20 --batch_size 4 --lr 0.01 --optim sgd --loss ProbOhemCrossEntropy2d \
                --base_size 768 --crop_size 768  --tile_hw_size 768,768 \
                --root '/data/open_data' --dataset cityscapes --gpus_id 1,2

6. How to validate

sh predict.sh
排名相邻
同类项目