Skip to content

Commit 19e4c58

Browse files
Updated installation instructions
1 parent 66411e3 commit 19e4c58

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

classification/README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
1-
# DynConv
1+
# DynConv - classification
22

3-
This repository contains the implementation of DynConv ( [https://arxiv.org/abs/1912.03203](https://arxiv.org/abs/1912.03203) ) on classification. For simplicity, the code on classification does not include CUDA optimization for faster inference. To get that part, check the code on human pose estimation ( [https://github.com/thomasverelst/dynconv/tree/master/pose](https://github.com/thomasverelst/dynconv/tree/master/pose) ). This version just masks out spatial positions (e.g. similar to other works like Spatially Adaptive Computation Time).
3+
This repository contains the implementation of DynConv ( [https://arxiv.org/abs/1912.03203](https://arxiv.org/abs/1912.03203) ) on classification (CIFAR-10 / ImageNet). For simplicity, the code on classification does not include CUDA optimization for faster inference. To get that part, check the code on human pose estimation ( [https://github.com/thomasverelst/dynconv/tree/master/pose](https://github.com/thomasverelst/dynconv/tree/master/pose) ). This version just masks out spatial positions (e.g. similar to other works like Spatially Adaptive Computation Time).
44

55

66

77
## Installation
88
### Requirements
99
The main requirements of this work are:
10-
> Python 3.6
11-
> PyTorch 1.2
10+
> python 3.6
11+
> PyTorch 1.2 with torchvision 0.4
1212
1313
These can be easily installed by creating a Conda environment. Otherwise look up instructions on how to install CuPy.
1414

15-
conda create -n dynconv python=3.6 pytorch=1.2 torchvision cupy tensorboardX=1.6 -c conda-forge -c pytorch
16-
The other requirements (matplotlib, tqdm, numpy...) can be installed using pip:
15+
conda create -n dynconv python=3.6 -c conda-forge -c pytorch
16+
17+
Install Pytorch 1.2:
18+
19+
pip install torch==1.2.0+cu92 torchvision==0.4.0+cu92 -f https://download.pytorch.org/whl/torch_stable.html
20+
21+
The other requirements (matplotlib, scipy...) can be installed using pip:
1722

1823
pip install -r requirements.txt
1924

0 commit comments

Comments
 (0)