Other

项目介绍

chenxi116/DeepLabv3.pytorch 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 Other 许可证,目前获得 255 个 Star、46 次 Fork。

仓库全名
chenxi116/DeepLabv3.pytorch
开源许可证
Other
Star 数
255
Fork 数
46
未关闭 Issue
15

README 摘要

DeepLabv3.pytorch This is a PyTorch implementation of DeepLabv3 that aims to reuse the resnet implementation in torchvision as much as possible. This means we use the PyTorch model checkpoint when finetuning from ImageNet, instead of the one provided in TensorFlow. We try to match every detail in DeepLabv3, except that Multi-Grid other than (1, 1, 1) is not yet supported. On PASCAL VOC 2012 validation set, using the…

完整内容见 GitHub 原始 README 或本页 。

常见问题

DeepLabv3.pytorch 用什么语言开发?

主要使用 Python 编写,采用 Other 许可证,目前有 255 个 Star。

DeepLabv3.pytorch 可以免费商用吗?

仓库标注的许可证为 Other,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 DeepLabv3.pytorch 的源码?

可以直接克隆仓库:git clone https://github.com/chenxi116/DeepLabv3.pytorch.git,默认分支为 master;安装与运行步骤见仓库 README。

DeepLabv3.pytorch 最近还在维护吗?

仓库最近一次更新为 2020年11月18日,当前有 15 个未关闭 Issue;Star 数为 255,可作为社区活跃度的参考。

关于

PyTorch implementation of DeepLabv3

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
353
价值分
166
活跃状态
活跃

README

DeepLabv3.pytorch

This is a PyTorch implementation of DeepLabv3 that aims to reuse the resnet implementation in torchvision as much as possible. This means we use the PyTorch model checkpoint when finetuning from ImageNet, instead of the one provided in TensorFlow.

We try to match every detail in DeepLabv3, except that Multi-Grid other than (1, 1, 1) is not yet supported. On PASCAL VOC 2012 validation set, using the same hyperparameters, we reproduce the performance reported in the paper (GPU with 16GB memory is required). We also support the combination of Group Normalization + Weight Standardization:

Implementation Normalization Multi-Grid ASPP Image Pooling mIOU
Paper BN (1, 2, 4) (6, 12, 18) Yes 77.21
Ours BN (1, 1, 1) (6, 12, 18) Yes 76.49
Ours GN+WS (1, 1, 1) (6, 12, 18) Yes 77.20

To run the BN experiment, after preparing the dataset as follows, simply run:

python main.py --train --exp bn_lr7e-3 --epochs 50 --base_lr 0.007

To test the trained model, use the same command except delete --train. To use our trained model (76.49):

wget https://cs.jhu.edu/~cxliu/data/deeplab_resnet101_pascal_v3_bn_lr7e-3_epoch50.pth -P data/

To run the GN+WS experiment, begin by downloading the GN+WS ResNet101 trained on ImageNet:

wget https://cs.jhu.edu/~syqiao/WeightStandardization/R-101-GN-WS.pth.tar -P data/
python main.py --train --exp gn_ws_lr7e-3 --epochs 50 --base_lr 0.007 --groups 32 --weight_std

Again, to test the trained model, use the same command except delete --train. To use our trained model (77.20):

wget https://cs.jhu.edu/~cxliu/data/deeplab_resnet101_pascal_v3_gn_ws_lr7e-3_epoch50.pth -P data/

Prepare PASCAL VOC 2012 Dataset

mkdir data
cd data
wget http://host.robots.ox.ac.uk/pascal/VOC/voc2012/VOCtrainval_11-May-2012.tar
tar -xf VOCtrainval_11-May-2012.tar
cd VOCdevkit/VOC2012/
wget http://cs.jhu.edu/~cxliu/data/SegmentationClassAug.zip
wget http://cs.jhu.edu/~cxliu/data/SegmentationClassAug_Visualization.zip
wget http://cs.jhu.edu/~cxliu/data/list.zip
unzip SegmentationClassAug.zip
unzip SegmentationClassAug_Visualization.zip
unzip list.zip

Prepare Cityscapes Dataset

unzip leftImg8bit_trainvaltest.zip
unzip gtFine_trainvaltest.zip
git clone https://github.com/mcordts/cityscapesScripts.git
mv cityscapesScripts/cityscapesscripts ./
rm -rf cityscapesScripts
python cityscapesscripts/preparation/createTrainIdLabelImgs.py

评论

暂无评论