falseu commited on
Commit
d992148
·
1 Parent(s): fd1065b

requirements

Browse files
Files changed (2) hide show
  1. README.md +3 -2
  2. requirements.txt +8 -0
README.md CHANGED
@@ -4,6 +4,8 @@ This is an unofficial Pytorch implementation of the paper, `Style Transfer with
4
 
5
  Requirements
6
  ----------------------------
 
 
7
  * Python 3.7+
8
  * PyTorch 1.10
9
  * Pillow
@@ -12,7 +14,6 @@ Requirements
12
  * imageio
13
  * tqdm
14
 
15
-
16
  Usage
17
  ----------------------------
18
 
@@ -43,7 +44,7 @@ optional arguments:
43
 
44
  Download [vgg19 weight](https://drive.google.com/file/d/1UcSl-Zn3byEmn15NIPXMf9zaGCKc2gfx/view?usp=sharing), [decoder weight](https://drive.google.com/file/d/18JpLtMOapA-vwBz-LRomyTl24A9GwhTF/view?usp=sharing) under the main directory.
45
 
46
- To test basic style transfer, run the script test_image.py. Specify `--content_image` \ `--style_img` to the image path, or specify `--content_dir` \ `--style_dir` to iterate all images under this directory. Specify `--grid_pth` to collect all outputs in a grid image.
47
 
48
  ```
49
  $ python test.py --content_image $IMG --style_image $STYLE --cuda
 
4
 
5
  Requirements
6
  ----------------------------
7
+ Install requirements by `$ pip install -r requirement.txt`.
8
+
9
  * Python 3.7+
10
  * PyTorch 1.10
11
  * Pillow
 
14
  * imageio
15
  * tqdm
16
 
 
17
  Usage
18
  ----------------------------
19
 
 
44
 
45
  Download [vgg19 weight](https://drive.google.com/file/d/1UcSl-Zn3byEmn15NIPXMf9zaGCKc2gfx/view?usp=sharing), [decoder weight](https://drive.google.com/file/d/18JpLtMOapA-vwBz-LRomyTl24A9GwhTF/view?usp=sharing) under the main directory.
46
 
47
+ To test basic style transfer, run the script test_image.py. Specify `--content_image`, `--style_img` to the image path, or specify `--content_dir`, `--style_dir` to iterate all images under this directory. Specify `--grid_pth` to collect all outputs in a grid image.
48
 
49
  ```
50
  $ python test.py --content_image $IMG --style_image $STYLE --cuda
requirements.txt ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ torch==1.10.0
2
+ torchvision==0.11.2
3
+ opencv-python==4.5.1.48
4
+ numpy == 1.18.4
5
+ Pillow==8.4.0
6
+ tqdm==4.62.3
7
+ imageio==2.9.0
8
+ imageio-ffmpeg==0.4.6