Closed DikaArdnt closed 1 year ago
My code :
const { default: waifu } = require('waifu2x')
let progress = (percent: number) => { console.log(Percent: ${percent}) if (percent > 50) return true } await waifu.upscaleImage("./temp/ex.jpg", "./temp/ex-scaled.jpg", { scale: 4, upscaler: "real-esrgan" }, progress)
Percent: ${percent}
On MacOS you have to run the provided chmod777 function at least once.
chmod777
waifu.chmod777()
My code :
const { default: waifu } = require('waifu2x')
let progress = (percent: number) => { console.log(
Percent: ${percent}
) if (percent > 50) return true } await waifu.upscaleImage("./temp/ex.jpg", "./temp/ex-scaled.jpg", { scale: 4, upscaler: "real-esrgan" }, progress)