Super Resolution Scraper
A scraper for Super Resolution image with torch-srgan AI made for Discord/Whatsapp bot.
Features
- Upscales image 2x
- Upscales image 4x
Instalation
npm install super-resolution-scraper
Usage
There is two function you can use:
srgan2x(url)
srgan4x(url)
Code Example:
const { srgan2x, srgan4x } = require('super-resolution-scraper');
// Upscales 200%
srgan2x(<IMG URL HERE>).then((res) => console.log(res));
// Upscales 400%
srgan4x(<IMG URL HERE>).then((res) => console.log(res));
Sample
for the samples i am using bad resolution meme xD.
Original | Upscaled 2x | Upscaled 4x |
---|---|---|