Efficient Segmentation Networks
1.0.0
該項目旨在為使用Pytorch的實時語義分割模型提供易於使用的可修改參考實現。

在運行腳本之前,需要安裝Pytorch和Torchvision ,支持Pytorch V1.1或更高版本。
pip3 install -r requirements.txt該項目支持這些語義分割模型如下:
該項目支持這些損失功能:
- 加權交叉熵
- 加權交叉熵,標籤光滑
- 局部損失
- OHEM交叉熵
- lovaszsoftmax
- Segloss列表
- ...
該項目支持這些優化器:
- SGD
- 亞當
- adamw
- radam
- radam + lookahead
- ...
- relu
- prelu
- relu6
- 轉
- Mish:自我正規化的非單調神經激活功能
- ...
該項目支持這些LR_SCHEDULERS:
- 多衰變
- 熱身poly
- ...
- 現場激活的batchnorm
- 可切換歸一化
- 體重標準化
- ...
- 注意家庭
- NAS家族
- ...
- Pytorch-Opcounter
- flops-counter.pytorch
- Netron:神經網絡模型的可視化器,在線URL:Netron
- falshtorch:Pytorch神經網絡的可視化工具包!
- 與卷積神經網絡的圖像分類的技巧袋
- ...
該項目是針對CityScapes和Camvid數據集進行了量身定制的。數據集的折疊需要滿足以下結構:
|-- dataset
| |-- camvid
| | |-- train
| | |-- trainannot
| | |-- val
| | |-- valannot
| | |-- test
| | |-- testannot
| | |-- ...
| |-- cityscapes
| | |-- leftImg8bit
| | | |-- train
| | | |-- val
| | | |-- test
| | |-- gtFine
| | | |-- train
| | | |-- val
| | | |-- test
| | |-- ...
git clone https://github.com/xiaoyufenfei/Efficient-Segmentation-Networks
cd Efficient-Segmentation-Networks
目前,代碼支持Python 3
火炬依賴性:
數據依賴性:
下載CityScapes並運行腳本createTrainIdLabelImgs.py以根據培訓標籤創建註釋。確保文件夾命名為CityScapes
python train.py --help
python train.py --help
python test.py --help
python predict.py --help
cd tools
python trainID2labelID.py
如果您認為這項工作有用,請給我一顆星星!如果您發現任何錯誤或有任何建議,請與我聯繫。
github: xiaoyufenfei電子郵件: [email protected]
如果這項工作有助於您的研究,則鼓勵您引用以下論文。
@misc{Efficient-Segmentation-Networks,
author = {Yu Wang},
title = {Efficient-Segmentation-Networks Pytorch Implementation},
year = {2019},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = { u rl{https://github.com/xiaoyufenfei/Efficient-Segmentation-Networks}},
commit = {master}
}該項目根據麻省理工學院許可發布。有關其他詳細信息,請參見許可證。