You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 2, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: README.rst
+20-14Lines changed: 20 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,8 +19,6 @@ The catch? The neural network is hallucinating details based on its training fro
19
19
20
20
|Python Version| |License Type| |Project Stars|
21
21
22
-
----
23
-
24
22
1. Examples & Usage
25
23
===================
26
24
@@ -36,29 +34,37 @@ The default is to use ``--device=cpu``, if you have NVIDIA card setup with CUDA
36
34
37
35
.. code:: bash
38
36
39
-
# Run the super-resolution script for one or more images.
37
+
# Run the super-resolution script for one image.
40
38
python3 enhance.py example.png
41
39
42
-
# Display output image that has `_enhanced.png` suffix.
43
-
open example_enhanced.png
40
+
# Also process multiple files with a single run.
41
+
python3 enhance.py file1.jpg file2.jpg
42
+
43
+
# Display output images that were given `_ne4x.png` suffix.
44
+
open *_ne4x.png
44
45
45
46
46
47
1.b) Training Super-Resolution
47
48
------------------------------
48
49
50
+
Pre-trained models are provided in the GitHub releases. Training your own is a delicate process that may require you to pick parameters based on your image dataset.
51
+
49
52
.. code:: bash
50
53
51
-
rm -f ne4x.pkl.bz2
54
+
# Remove the model file as don't want to reload the data to fine-tune it.
55
+
rm -f ne4x*.pkl.bz2
52
56
53
-
python3.4 enhance.py --train --epochs=25 \
54
-
--scales=2 --perceptual-layer=conv2_2 \
55
-
--generator-block=16 --generator-filters=128 \
56
-
--smoothness-weight=1e7 --adversary-weight=0.0
57
+
# Pre-train the model using perceptual loss from paper [1] below.
0 commit comments