fyu/dilation
소개
의미론적 이미지 분할을 위한 확장 합성곱
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalMulti-Scale Context Aggregation by Dilated Convolutions
Introduction
Properties of dilated convolution are discussed in our ICLR 2016 conference paper. This repository contains the network definitions and the trained models. You can use this code together with vanilla Caffe to segment images using the pre-trained models. If you want to train the models yourself, please check out the document for training.
If you are looking for dilation models with state-of-the-art performance and Python implementation, please check out Dilated Residual Networks.
Citing
If you find the code or the models useful, please cite this paper:
@inproceedings{YuKoltun2016,
author = {Fisher Yu and Vladlen Koltun},
title = {Multi-Scale Context Aggregation by Dilated Convolutions},
booktitle = {ICLR},
year = {2016},
}
License
The code and models are released under the MIT License (refer to the LICENSE file for details).
Installation
Caffe
Install Caffe and its Python interface. Make sure that the Caffe version is newer than commit 08c5df.
Python
The companion Python script is used to demonstrate the network definition and trained weights.
The required Python packages are numba numpy opencv. Python release from Anaconda is recommended.
In the case of using Anaconda
conda install numba numpy opencv
Running Demo
predict.py is the main script to test the pre-trained models on images. The basic usage is
python predict.py <dataset name> <image path>
Given the dataset name, the script will find the pre-trained model and network definition. We currently support models trained from four datasets: pascal_voc, camvid, kitti, cityscapes. The steps of using the code is listed below:
Clone the code from Github
git clone [email protected]:fyu/dilation.git cd dilationDownload pre-trained network
sh pretrained/download_pascal_voc.shRun pascal voc model on GPU 0
python predict.py pascal_voc images/dog.jpg --gpu 0
Training
You are more than welcome to train our model on a new dataset. To do that, please refer to the document for training.
Implementation of Dilated Convolution
Besides Caffe support, dilated convolution is also implemented in other deep learning packages. For example,
- Torch: SpatialDilatedConvolution
- Lasagne: DilatedConv2DLayer
관련 프로젝트 살펴보기
불러오는 중…