@ibaraki-douji/waifu2x
Version:
Upscale image with waifu2x-ncnn-vulkan.
32 lines (31 loc) • 692 B
TypeScript
export interface Options {
/**
* Noise Reduction
*/
noise?: -1 | 0 | 1 | 2 | 3;
/**
* Upscale Multiplier
*/
scale?: 1 | 2 | 4 | 8 | 16 | 32;
/**
* Choose your GPU
* -1 = CPU
*/
gpu?: number;
/**
* Use only for CPU usage else that useless \
* The RAMLimit is the tile-size option \
* Testing to upscale a 128x128 to 4096x4096 (x32) \
* min: 32 \
* \
* 2.6 GB | 400 \
* 4.2 GB | 500 \
* 7.0 GB | 600 \
* 8.6 GB | 700 \
* 11.4 GB | 800 \
* 13.6 GB | 900 \
* 16.3 GB | 1000
*/
ramLimit?: number;
outputAsBuffer?: boolean;
}