AI Neural Network image upscaling filters
- MusicallyInspired
- Village Elder
- Posts: 3143
- Joined: Fri Oct 10, 2008 8:46 am
- Gender: Male
- Location: Manitoba, Canada
- Contact:
AI Neural Network image upscaling filters
So this has been making the rounds in retro video game circles. It's been used with great effect for Doom sprite and texture upscaling and the Duke3D community has also been experimenting with it. I found a thread that featured upscaled backgrounds from Monkey Island 2 and the results are quite incredible (here's the thread with even more examples that are simply astounding). There are various models for filters available. One is waifu2x but that one makes things look only slightly better than your standard SuperEagle or hq2x filters. This one called ESRGAN (which uses a data set called Manga109 as a base) however....well, see for yourself.
Upscaled (no, seriously. this is an honest-to-god upscale without any post-editing):
Original:
And for the sake of comparison, here's the official MI2 Special Edition background:
The results are pretty fantastic. Here's another one from MI2:
Imagine seeing a filter like this generated in real-time in programs like ScummVM and DOSBox!
Upscaled (no, seriously. this is an honest-to-god upscale without any post-editing):
Original:
And for the sake of comparison, here's the official MI2 Special Edition background:
The results are pretty fantastic. Here's another one from MI2:
Imagine seeing a filter like this generated in real-time in programs like ScummVM and DOSBox!
01010100 01110010 01110101 01110011 01110100 00100000 01010100 01001000 00110001
- MusicallyInspired
- Village Elder
- Posts: 3143
- Joined: Fri Oct 10, 2008 8:46 am
- Gender: Male
- Location: Manitoba, Canada
- Contact:
Re: AI Neural Network image upscaling filters
A GIF comparison. I mean, just look at this. It's obviously not perfect but pretty darn close enough I'd say:
01010100 01110010 01110101 01110011 01110100 00100000 01010100 01001000 00110001
- MusicallyInspired
- Village Elder
- Posts: 3143
- Joined: Fri Oct 10, 2008 8:46 am
- Gender: Male
- Location: Manitoba, Canada
- Contact:
Re: AI Neural Network image upscaling filters
Curse of Monkey Island:
01010100 01110010 01110101 01110011 01110100 00100000 01010100 01001000 00110001
- notbobsmith
- Village Elder
- Posts: 5382
- Joined: Sun Mar 09, 2014 4:02 pm
- Location: Massachusetts
- Gender: Male
Re: AI Neural Network image upscaling filters
The comparison of the first two images are really quite impressive. I looks like it turned the background back into the original artwork. You can even see the brushstrokes.
- MusicallyInspired
- Village Elder
- Posts: 3143
- Joined: Fri Oct 10, 2008 8:46 am
- Gender: Male
- Location: Manitoba, Canada
- Contact:
Re: AI Neural Network image upscaling filters
On the King's Quest 6 CD-ROM there were a collection of hi-res versions of backgrounds from the game in 512x365 resolution (game resolution is 320x200). Using this upscaling method I converted one to 2048x1460 and it looks phenomenal!!!
Upscaled w/ESRGAN (click to download at full res!):
Hi-res scan on KQ6 CD-ROM:
In-game low-res original background:
Upscaled w/ESRGAN (click to download at full res!):
Hi-res scan on KQ6 CD-ROM:
In-game low-res original background:
01010100 01110010 01110101 01110011 01110100 00100000 01010100 01001000 00110001
Re: AI Neural Network image upscaling filters
Now if this could be done in real time in DOSBox with the pixel perfect patch...
01000010 01111001 01110100 01100101 00100000 01101101 01100101 00100001
- MusicallyInspired
- Village Elder
- Posts: 3143
- Joined: Fri Oct 10, 2008 8:46 am
- Gender: Male
- Location: Manitoba, Canada
- Contact:
Re: AI Neural Network image upscaling filters
Someone in the thread mentioned it took him 8 seconds to render an image with his new RTX video card. Give that 10 years (if that) and we'll have a silky smooth 60fps framerate out of that.
01010100 01110010 01110101 01110011 01110100 00100000 01010100 01001000 00110001
- Semi-Happy Partygoer
- Oldbie
- Posts: 525
- Joined: Sun Jun 25, 2017 11:44 pm
Re: AI Neural Network image upscaling filters
Wow. This is incredible. I'll have to give it a go, though I'm not sure if my PC is fully compatible. I guess I'll just have to try and see.
"It is better to know some of the questions than all of the answers" - James Thurber
- MusicallyInspired
- Village Elder
- Posts: 3143
- Joined: Fri Oct 10, 2008 8:46 am
- Gender: Male
- Location: Manitoba, Canada
- Contact:
Re: AI Neural Network image upscaling filters
01010100 01110010 01110101 01110011 01110100 00100000 01010100 01001000 00110001
- MusicallyInspired
- Village Elder
- Posts: 3143
- Joined: Fri Oct 10, 2008 8:46 am
- Gender: Male
- Location: Manitoba, Canada
- Contact:
Re: AI Neural Network image upscaling filters
01010100 01110010 01110101 01110011 01110100 00100000 01010100 01001000 00110001
Re: AI Neural Network image upscaling filters
Love it. Well, if someone wanted to take all of the graphics from KQ6 and pre-render them to remake the game it would be great. Of course it would need to be under the radar until after the release. What is the upper resolution that AGS will deal with?
01000010 01111001 01110100 01100101 00100000 01101101 01100101 00100001
- Semi-Happy Partygoer
- Oldbie
- Posts: 525
- Joined: Sun Jun 25, 2017 11:44 pm
Re: AI Neural Network image upscaling filters
Thank you for that. This is a bit beyond anything I've tried before, but I will make some time to give it a whirl. I always like learning new techniques.
"It is better to know some of the questions than all of the answers" - James Thurber
- Tawmis
- Grand Poobah's Servant
- Posts: 20947
- Joined: Wed Oct 08, 2008 1:19 am
- Gender: Not Specified
- Contact:
Re: AI Neural Network image upscaling filters
These are amazing.
Tawmis.com - Voice Actor
Comic Relief Podcast!
Neverending Nights
Hello, my name is Larry. Larry Laffer!
Comic Relief Podcast!
Neverending Nights
Hello, my name is Larry. Larry Laffer!
Re: AI Neural Network image upscaling filters
Wow those are so nice! The Lord of the Dead one is awesome.
- MusicallyInspired
- Village Elder
- Posts: 3143
- Joined: Fri Oct 10, 2008 8:46 am
- Gender: Male
- Location: Manitoba, Canada
- Contact:
Re: AI Neural Network image upscaling filters
I took most of yesterday and wrote a script that extracts background resources from a Sierra game, converts to PNG, and upscales with ESRGAN. I'm doing all the Sierra games and uploading them to a Google Drive folder. I'll upload more as time goes on: https://drive.google.com/drive/folders/ ... sp=sharing
For PQ4 (and some screens in PQ3) I'm going to try a different model that's more accustomed and trained to restore low resolution live photos. It's coming out more like a painting, and while that's cool, I think it can do these better.
For QFG4, all the backgrounds are in pieces with foreground objects as different picture resources entirely so I'm going to take more time with that one and stitch them all together before upscaling.
For PQ4 (and some screens in PQ3) I'm going to try a different model that's more accustomed and trained to restore low resolution live photos. It's coming out more like a painting, and while that's cool, I think it can do these better.
For QFG4, all the backgrounds are in pieces with foreground objects as different picture resources entirely so I'm going to take more time with that one and stitch them all together before upscaling.
01010100 01110010 01110101 01110011 01110100 00100000 01010100 01001000 00110001