waifu2x
Version:
2x upscaling of images with waifu2x
15 lines (13 loc) • 401 B
text/typescript
import waifu2x from "./waifu2x"
const start = async () => {
const progress = (current: number, total: number) => {
console.log(`${current}/${total}`)
}
try {
const result = await waifu2x.upscaleImage("./images/1.jpg", "./images/2.jpg", {upscaler: "real-esrgan", scale: 4})
console.log(result)
} catch (e) {
console.log(e)
}
}
start()