2020-05-07 13:58:25 +00:00
# Name: Video2X Configuration File
# Creator: K4YT3X
# Date Created: October 23, 2018
2020-05-09 05:01:12 +00:00
# Last Modified: May 8, 2020
2020-05-07 13:58:25 +00:00
# Items commented out are parameters handled by Video2x.
2019-10-20 01:45:44 +00:00
waifu2x_caffe :
2020-05-07 13:32:51 +00:00
path : '%LOCALAPPDATA%\video2x\waifu2x-caffe\waifu2x-caffe-cui'
2020-05-07 13:58:25 +00:00
tta : 0 # <0|1> 8x slower and slightly high quality
gpu : 0 # gpu device no
batch_size : 1 # input batch size
crop_h : null # input image split size(height)
crop_w : null # input image split size(width)
crop_size : 128 # input image split size
2020-05-09 09:39:19 +00:00
output_depth : 8 # output image chanel depth bit
2020-05-07 13:58:25 +00:00
output_quality : -1 # output image quality
process : gpu # <cpu|gpu|cudnn> process mode
model_dir : null # path to custom model directory (don't append last / )
#scale_height: null # custom scale height
#scale_width: null # custom scale width
#scale_ratio: null # custom scale ratio
noise_level : 3 # <0|1|2|3> noise reduction level
mode : noise_scale # <noise|scale|noise_scale|auto_scale> image processing mode
2020-05-09 09:39:19 +00:00
output_extention : null # extension to output image file when output_path is (auto) or input_path is folder
input_extention_list : null # extension to input image file when input_path is folder
2020-05-07 13:58:25 +00:00
#output_path: null # path to output image file (when input_path is folder, output_path must be folder)
#input_path: null # (required) path to input image file
2020-05-03 23:20:23 +00:00
waifu2x_converter_cpp :
2020-05-07 13:32:51 +00:00
path : '%LOCALAPPDATA%\video2x\waifu2x-converter-cpp\waifu2x-converter-cpp'
2020-05-07 13:58:25 +00:00
#list-supported-formats: null # dump currently supported format list
#list-opencv-formats: null # (deprecated. Use --list-supported-formats) dump opencv supported format list
#list-processor # dump processor list
output-format : null # The format used when running in recursive/folder mode
png-compression : 5 # Set PNG compression level (0-9), 9 = Max compression (slowest & smallest)
2020-05-09 05:01:12 +00:00
image-quality : -1 # JPEG & WebP Compression quality (-1-101, 0 being smallest size and lowest quality, -1 being default), use 101 for lossless WebP
2020-05-07 13:58:25 +00:00
block-size : 0 # block size
disable-gpu : false # disable GPU
force-OpenCL : false # force to use OpenCL on Intel Platform
2020-05-09 05:01:12 +00:00
processor : -1 # set target processor (-1 uses default device)
2020-05-07 14:03:42 +00:00
jobs : 0 # number of threads launching at the same time
2020-05-07 23:55:33 +00:00
model-dir: null # path to custom model directory (don't append last / ) default : models_rgb
2020-05-07 13:58:25 +00:00
#scale-ratio: 2.0 # custom scale ratio
noise-level : 1 # <0|1|2|3> noise reduction level
mode : noise-scale # <noise|scale|noise-scale> image processing mode
log-level : 1 # <0|1|2|3|4> Set log level
silent : true # Enable silent mode. (same as --log-level 1)
tta : 0 # Enable Test-Time Augmentation mode. (0 or 1)
#generate-subdir: 0 # Generate sub folder when recursive directory is enabled.
#auto-naming: 0 # Add postfix to output name when output path is not specified.
#recursive-directory: 0 # Search recursively through directories to find more images to process.
#output: null # path to output image file or directory (you should use the full path)
#input: null # (required) path to input image file or directory (you should use the full path)
2019-10-20 01:45:44 +00:00
waifu2x_ncnn_vulkan :
2020-05-07 13:32:51 +00:00
path : '%LOCALAPPDATA%\video2x\waifu2x-ncnn-vulkan\waifu2x-ncnn-vulkan'
2020-05-06 17:24:32 +00:00
v : null # verbose output
2020-05-07 13:58:25 +00:00
#i: null # input-path: input image path (jpg/png) or directory
#o: null # output-path: output image path (png) or directory
2020-05-06 17:24:32 +00:00
'n': 2 # noise-level : denoise level (-1/0/1/2/3, default=0)
s: 2 # scale : upscale ratio (1/2, default=2)
t: 400 # tile-size : tile size (>=32, default=400)
m: null # model-path : waifu2x model path (default=models-cunet)
g: 0 # gpu-id : gpu device to use (default=0)
j : '1:2:2' # thread count for load/proc/save (default=1:2:2)
x : false # enable tta mode
2020-04-27 00:00:01 +00:00
srmd_ncnn_vulkan :
2020-05-07 13:32:51 +00:00
path : '%LOCALAPPDATA%\video2x\srmd-ncnn-vulkan\srmd-ncnn-vulkan'
2020-05-06 17:24:32 +00:00
v : null # verbose output
2020-05-07 13:58:25 +00:00
#i: null # input-path: input image path (jpg/png) or directory
#o: null # output-path: output image path (png) or directory
2020-05-06 17:24:32 +00:00
'n': 3 # noise-level : denoise level (-1/0/1/2/3/4/5/6/7/8/9/10, default=3)
s : 2 # upscale ratio (2/3/4, default=2)
t: 400 # tile-size : tile size (>=32, default=400)
m : null # srmd model path (default=models-srmd)
g : 0 # gpu device to use (default=0)
j : '1:2:2' # thread count for load/proc/save (default=1:2:2)
x : false # enable tta mode
2020-05-03 23:20:23 +00:00
anime4kcpp :
2020-05-07 13:32:51 +00:00
path : '%LOCALAPPDATA%\video2x\anime4kcpp\CLI\Anime4KCPP_CLI\Anime4KCPP_CLI'
2020-05-07 13:58:25 +00:00
#input: null # File for loading (string [=./pic/p1.png])
#output: null # File for outputting (string [=output.png])
2020-05-06 17:24:32 +00:00
passes : 2 # Passes for processing (int [=2])
pushColorCount : 2 # Limit the number of color pushes (int [=2])
strengthColor : 0.3 # Strength for pushing color,range 0 to 1,higher for thinner (double [=0.3])
strengthGradient : 1.0 # Strength for pushing gradient,range 0 to 1,higher for sharper (double [=1])
zoomFactor : 2.0 # zoom factor for resizing (double [=2])
2020-05-07 14:03:42 +00:00
threads : 16 # Threads count for video processing (unsigned int [=16])
2020-05-06 17:24:32 +00:00
fastMode : false # Faster but maybe low quality
videoMode : true # Video process
preview : null # Preview image
2020-05-07 13:32:51 +00:00
preprocessing : False # Enable pre processing
postprocessing : False # Enable post processing
2020-05-06 17:24:32 +00:00
preFilters: 4 # Enhancement filter, only working when preProcessing is true,there are 5 options by binary:Median blur=0000001, Mean blur=0000010, CAS Sharpening=0000100, Gaussian blur weak=0001000, Gaussian blur=0010000, Bilateral filter=0100000, Bilateral filter faster=1000000, you can freely combine them, eg : Gaussian blur weak + Bilateral filter = 0001000 | 0100000 = 0101000 = 40(D) (unsigned int [=4])
postFilters: 40 # Enhancement filter, only working when postProcessing is true,there are 5 options by binary:Median blur=0000001, Mean blur=0000010, CAS Sharpening=0000100, Gaussian blur weak=0001000, Gaussian blur=0010000, Bilateral filter=0100000, Bilateral filter faster=1000000, you can freely combine them, eg : Gaussian blur weak + Bilateral filter = 0001000 | 0100000 = 0101000 = 40(D), so you can put 40 to enable Gaussian blur weak and Bilateral filter, which also is what I recommend for image that < 1080P, 48 for image that >= 1080P, and for performance I recommend to use 72 for video that < 1080P, 80 for video that >=1080P (unsigned int [=40])
GPUMode : False # Enable GPU acceleration
listGPUs : null # list GPUs
platformID : 0 # Specify the platform ID (unsigned int [=0])
deviceID : 0 # Specify the device ID (unsigned int [=0])
2020-05-07 13:32:51 +00:00
codec : mp4v # Specify the codec for encoding from mp4v(recommended in Windows), dxva(for Windows), avc1(H264, recommended in Linux), vp09(very slow), hevc(not support in Windowds), av01(not support in Windowds) (string [=mp4v])
2019-10-20 01:45:44 +00:00
ffmpeg :
2020-05-07 13:32:51 +00:00
ffmpeg_path : '%LOCALAPPDATA%\video2x\ffmpeg-latest-win64-static\bin'
2020-05-09 05:01:12 +00:00
# step 1: extract all frames from original video
# into temporary directory
2019-10-20 01:45:44 +00:00
video_to_frames :
output_options :
2020-04-27 00:00:01 +00:00
'-qscale:v' : null
'-pix_fmt' : rgba64be
'-hwaccel' : auto
'-y' : true
2020-05-09 05:01:12 +00:00
# step 2: stitch all frames back into a video
# with only a video track
2019-10-20 01:45:44 +00:00
frames_to_video :
input_options :
2020-04-27 00:00:01 +00:00
'-qscale:v' : null
'-qscale:a' : null
'-f' : image2
2019-10-20 01:45:44 +00:00
output_options :
2020-04-27 00:00:01 +00:00
'-vcodec' : libx264
'-crf' : 17
'-b:v' : null
'-pix_fmt' : null
'-hwaccel' : auto
'-y' : true
2020-05-09 05:01:12 +00:00
# step 3: migrate audio and subtitle tracks from original
# video into the upscaled video
2019-10-20 01:45:44 +00:00
migrating_tracks :
output_options :
2020-04-27 00:00:01 +00:00
'-map' :
- '0:v?'
- '1:a?'
- '1:s?'
- '1:d?'
- '1:t?'
'-c' : copy
'-pix_fmt' : null
2020-05-09 05:01:12 +00:00
'-metadata' : 'comment=Upscaled by Video2X'
2020-04-27 00:00:01 +00:00
'-hwaccel' : auto
'-y' : true
2019-10-20 01:45:44 +00:00
video2x :
2020-05-06 14:40:04 +00:00
video2x_cache_directory: null # default : %TEMP%\video2x
2019-10-20 01:45:44 +00:00
image_format : png
preserve_frames : false