Moebits / waifu2x

waifu2x image upscaling in Node.js
MIT License
70 stars 11 forks source link

real-esrgan upscaler not working #28

Closed DikaArdnt closed 1 year ago

DikaArdnt commented 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)

Moebits commented 1 year ago

On MacOS you have to run the provided chmod777 function at least once.

waifu.chmod777()