Skip to content

Commit 6c43621

Browse files
committed
Update install process
1 parent 3f6b061 commit 6c43621

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Image colorization is inherently an ill-posed problem with multi-modal uncertain
1919
In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020.
2020

2121
## Prerequisites
22+
* [CUDA 10.1](https://developer.nvidia.com/cuda-10.1-download-archive-update2)
2223
* Python3
2324
* Pytorch >= 1.5
2425
* Detectron2
@@ -35,12 +36,16 @@ cd InstColorization
3536
2. Install [conda](https://www.anaconda.com/).
3637
3. Install all the dependencies
3738
```sh
38-
conda env create --file env.yml --name instacolorization
39+
conda env create --file env.yml
3940
```
4041
4. Switch to the conda environment
4142
```sh
4243
conda activate instacolorization
4344
```
45+
5. Install other dependencies
46+
```sh
47+
sh scripts/install.sh
48+
```
4449

4550
## Pretrained Model
4651
1. Download it from [google drive](https://drive.google.com/open?id=1Xb-DKAA9ibCVLqm8teKd1MWk6imjwTBh).

env.yml

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: py37_pt14
1+
name: instacolorization
22
channels:
33
- conda-forge
44
- defaults
@@ -92,8 +92,6 @@ dependencies:
9292
- absl-py==0.9.0
9393
- cachetools==4.1.0
9494
- chardet==3.0.4
95-
- detectron2==0.1.2+cu101
96-
- dominate==2.4.0
9795
- future==0.18.2
9896
- fvcore==0.1.dev200506
9997
- google-auth==1.14.2
@@ -111,9 +109,7 @@ dependencies:
111109
- protobuf==3.11.3
112110
- pyasn1==0.4.8
113111
- pyasn1-modules==0.2.8
114-
- pycocotools==2.0
115112
- pydot==1.4.1
116-
- pyyaml==5.1
117113
- pyzmq==18.1.1
118114
- requests==2.23.0
119115
- requests-oauthlib==1.3.0
@@ -122,9 +118,6 @@ dependencies:
122118
- tensorboard==2.2.1
123119
- tensorboard-plugin-wit==1.6.0.post3
124120
- termcolor==1.1.0
125-
- torch==1.5.0+cu101
126-
- torchfile==0.1.0
127-
- torchvision==0.6.0+cu101
128121
- urllib3==1.25.8
129122
- visdom==0.1.8.9
130123
- websocket-client==0.57.0

scripts/install.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pip install -U torch==1.5 torchvision==0.6 -f https://download.pytorch.org/whl/cu101/torch_stable.html
2+
pip install cython pyyaml==5.1
3+
pip install -U 'git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI'
4+
pip install dominate==2.4.0
5+
pip install detectron2==0.1.2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/index.html

0 commit comments

Comments
 (0)