falseu
commited on
Commit
·
19a4010
1
Parent(s):
d992148
update readme
Browse files
README.md
CHANGED
@@ -4,7 +4,7 @@ This is an unofficial Pytorch implementation of the paper, `Style Transfer with
|
|
4 |
|
5 |
Requirements
|
6 |
----------------------------
|
7 |
-
Install requirements by `$ pip install -r requirement.txt
|
8 |
|
9 |
* Python 3.7+
|
10 |
* PyTorch 1.10
|
@@ -44,7 +44,7 @@ optional arguments:
|
|
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
|
@@ -70,7 +70,7 @@ optional arguments:
|
|
70 |
|
71 |
### Test Image Interpolation Style Transfer
|
72 |
|
73 |
-
To test style transfer interpolation, run the script test_interpolate.py. Specify `--style_image` with multiple paths separated by comma. Specify `--interpolation_weights` to interpolate once. Specify `--grid_pth` to interpolate with different built-in weights and provide 4 style images.
|
74 |
|
75 |
```
|
76 |
$ python test_interpolation.py --content_image $IMG --style_image $STYLE $WEIGHT --cuda
|
@@ -97,7 +97,7 @@ optional arguments:
|
|
97 |
|
98 |
### Test Video Style Transfer
|
99 |
|
100 |
-
To test video style transfer, run the script test_video.py.
|
101 |
|
102 |
```
|
103 |
$ python test_video.py --content_video $VID --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
|
|
|
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. All outputs are saved in `./results/`. Specify `--grid_pth` to collect all outputs in a grid image.
|
48 |
|
49 |
```
|
50 |
$ python test.py --content_image $IMG --style_image $STYLE --cuda
|
|
|
70 |
|
71 |
### Test Image Interpolation Style Transfer
|
72 |
|
73 |
+
To test style transfer interpolation, run the script test_interpolate.py. Specify `--style_image` with multiple paths separated by comma. Specify `--interpolation_weights` to interpolate once. All outputs are saved in `./results_interpolate/`. Specify `--grid_pth` to interpolate with different built-in weights and provide 4 style images.
|
74 |
|
75 |
```
|
76 |
$ python test_interpolation.py --content_image $IMG --style_image $STYLE $WEIGHT --cuda
|
|
|
97 |
|
98 |
### Test Video Style Transfer
|
99 |
|
100 |
+
To test video style transfer, run the script test_video.py. All outputs are saved in `./results_video/`.
|
101 |
|
102 |
```
|
103 |
$ python test_video.py --content_video $VID --style_image $STYLE --cuda
|