Public | Automated Build

Last pushed: 2 years ago
Short Description
waifu2x-converter-cpp with I/O redirection
Full Description

waifu2x-converter-cpp by WL-Amigo built from source

Intended Usage

Specifically written to handle a single .png file (on host, without somehow moving it inside a container) at a run.

The entrypoint handles I/O (stdin/out) redirection so do not NOT specify -i nor -o (for waifu2x-converter, not to be confused with -i for docker run, which is required).

Set arguments after siomiz/waifu2x like -m scale, --scale_ratio 3.0, etc.

 docker run --rm -i siomiz/waifu2x -m noise_scale < in.png > out.png

If you forgot to feed < in.png, press Ctrl+D to terminate (will result in a container core dump).

General Usage

The executable is at /opt/w2x/waifu2x-converter.
You can directly run it as:

$ docker run --rm -it --entrypoint=/opt/w2x/waifu2x-converter siomiz/waifu2x --help

USAGE: 

   /opt/w2x/waifu2x-converter  [-j <integer>] [--model_dir <string>]
                               [--scale_ratio <double>] [--noise_level <1
                               |2>] [-m <noise|scale|noise_scale>] [-o
                               <string>] -i <string> [--] [--version] [-h]


Where: 

   -j <integer>,  --jobs <integer>
     number of threads launching at the same time

   --model_dir <string>
     path to custom model directory (don't append last / )

   --scale_ratio <double>
     custom scale ratio

   --noise_level <1|2>
     noise reduction level

   -m <noise|scale|noise_scale>,  --mode <noise|scale|noise_scale>
     image processing mode

   -o <string>,  --output_file <string>
     path to output image file (you should input full path)

   -i <string>,  --input_file <string>
     (required)  path to input image file (you should input full path)

   --,  --ignore_rest
     Ignores the rest of the labeled arguments following this flag.

   --version
     Displays version information and exits.

   -h,  --help
     Displays usage information and exits.


   waifu2x reimplementation using OpenCV
Docker Pull Command
Owner
siomiz
Source Repository

Comments (0)