Duke4.net Forums: The ESRGAN AI Upscale non-Duke thread - Duke4.net Forums

Jump to content

  • 12 Pages +
  • « First
  • 7
  • 8
  • 9
  • 10
  • 11
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

The ESRGAN AI Upscale non-Duke thread

User is offline   MrFlibble 

#241

View PostPhredreeke, on 06 May 2021 - 07:17 AM, said:

The AA sprites are far too different from the originals.

Pixellated faces are also very different from photorealistic images, yet that face model which was shown some pages ago produced rather decent results with pixel art faces from video games.

Or the ESRGAN model you're playing around with here evidently tries to add teeth, eyes and nose in places where they do belong. It makes a lot of errors and produces garbage, but nonetheless it's trying to work in the right direction. It seems not entirely implausible that ESRGAN would learn certain patterns from pairs of vanilla sprites and sebab's higher-res versions and produce something decent or maybe even novel and interesting.

I believe it is worth trying out, if the new sprites are exactly 2x the original size, and someone with a powerful enough GPU for model training is willing to spend time and effort on that. It might fluke just as well, but if the manpower cost of training such a model is not exceedingly high, it seems like worth a try.

View PostPhredreeke, on 06 May 2021 - 07:17 AM, said:

What could be done would be if sebab did two renders at different scales, with the lower resolution renders being used as LR.

It's not a bad idea per se but there are already several ESRGAN models that can make decent upscales of the same kind as you're suggesting here. My entire point is that maybe if the source and target material differ more, the AI will learn to improvise in some consistent manner.
0

User is online   Phredreeke 

#242

Time to subvert your expectations

Posted Image

Slide-over comparison
0

User is offline   NightFright 

  • The Truth is in here

#243

Looks like it's a lot better with more abstract/generic stuff than with faces.

This post has been edited by NightFright: 08 May 2021 - 02:51 PM

0

User is offline   MrFlibble 

#244

View PostPhredreeke, on 08 May 2021 - 02:02 PM, said:

Time to subvert your expectations

This is not the first time you're posting something like this (an upscale of an image with very low pixel count), but in all honesty I can't say I'm particularly impressed. So the upscale looks like a painting, so what. It's still very low-detailed, but the fact it's supposed to be a painting probably makes you overlook some of the deficiencies.

The tree looks okay-ish I guess, but the house - I believe the light-brown thing behind the tree is supposed to be a house - well, it clearly looks like a mess in the upscale. On the whole, this model appears to like making oblong, slightly curved shapes from pixels of similar colours.

It will probably work as a texture in an upscale pack, as the player is unlikely to closely examine this image, and the original was already low-res and limited in detail. In fact, this kind of decoration is originally more of a symbolic nature, like it's more signifying a painting, rather than being one.
0

User is online   Phredreeke 

#245

I thought it looked good, as opposed to the recent monstrosities I posted. (Different upscaling model btw)

I guess monstrosities are more well received. Thank you for subverting my expectations :lol:
1

User is offline   MrFlibble 

#246

I can count at least three pareidolic creepy faces in that painting upscale.
0

User is online   Phredreeke 

#247

Spoiler

2

User is offline   NightFright 

  • The Truth is in here

#248

Only suitable comment I was able to find:
Posted Image

This post has been edited by NightFright: 12 May 2021 - 07:42 AM

1

User is offline   MrFlibble 

#249

Now, that was mildly amusing. I don't recognise the source image, it must be something from a CGI intro for a console Duke game I am not familiar with?

Anyway, I feel the need to point out that when there are new posts in this thread, I generally expect some successful results being shown. I don't follow the AI upscale scene closely now but new models keep popping up every now and then, and they produce decent to good results with at least some kinds of images. But as it stands, this thread seems to have become almost exclusively a showcase of ESRGAN failures. Funny? Not sure, but these samples certainly do nothing to reinforce my faith in the capabilities of AI upscales in general.
0

User is online   Phredreeke 

#250

I wouldn't call the Tekwar painting a failure.

The image is a cropped part of the Land of the Babes intro, upscaled with tinyface.

Right now my focus has been on Duke3D and successful upscales have been posted in the HRP thread.

Anyway, since you want to see something successful, here's something I achieved with a rather tedious setup involving upscaling the tile twice, once normal and once mirrored, then blending the results before downscale and palettising

Posted Image

Models used were Jaywreck2 and Nickelback.
This should be the same tile but only using one of the upscale

Posted Image

Here's another. I think this one used Nickelback as well (doesn't use the mirror process, unsure about what I preprocessed with, probably dedither)
Posted Image



I also posted some new weapon upscales for PowerslaveGDX in the BuildGDX Discord some time ago Here's the link for those I don't think I've posted them anywhere else

(also used Nickelback, with my redither process)

This post has been edited by Phredreeke: 12 May 2021 - 01:58 PM

0

User is offline   MrFlibble 

#251

View PostPhredreeke, on 12 May 2021 - 01:53 PM, said:

I wouldn't call the Tekwar painting a failure.

I wasn't referring to it, it was the rest of the bunch really :P

View PostPhredreeke, on 12 May 2021 - 01:53 PM, said:

The image is a cropped part of the Land of the Babes intro, upscaled with tinyface.

Just asking, what exactly did you expect to get when you ran that image through the tinyface model? A more photorealistic face for Duke?

View PostPhredreeke, on 12 May 2021 - 01:53 PM, said:

Here's another. I think this one used Nickelback as well (doesn't use the mirror process, unsure about what I preprocessed with, probably dedither)

So for now we're still at the stage when "upscale" basically means "depixelising" the image. It's a good result compared to purely algorithmic methods like xBRZ but I feel that AI can do more than that.

I guess my suggestion to try training a model on vanilla sprites and sebab's high-res versions is not going to get any traction, and I have neither a powerful GPU nor the time too do that on my own. But consider this: what ESRGAN and other AI models do is not simply upscaling an image like hq2x or xBRZ do, they actually transform the image, to a greater or lesser extent. It's just that most ESRGAN models are trained so as to be as close to the source material as possible, hence the output is thus similar to algorithmic scalers (but much more advanced). I suppose that if you train a model on more dissimilar source and target images, like the Alien Armageddon high-res enemies, this might produce more drastic, but still meaningful transformations of source images by such a model.

I just checked a sample Octabrain sprite from AA and as I suspected, the dimensions are not exactly 2:1 compared to the original Duke3D sprite. But I think both the source and target images may be put into a uniform correspondence by slightly enlarging the canvas of the high-res counterparts.
0

User is online   Phredreeke 

#252

I asked about your suggestion in the game upscale Discord and this is the response I got:
Yeah I think that training that would produce nightmare fuel

As for what I expected running that Duke pic through tinyface, I expected an abomination. I wouldn't even say it's that bad given the extremely low quality of the source material.
0

User is online   Phredreeke 

#253

Using an inpainting model on Ecce Homo (the famous monkey Jesus from a few years back)

Posted Image

I wonder what results I could have gotten from a higher quality source
1

User is offline   NightFright 

  • The Truth is in here

#254

Well... way better than what that old lady did to that painting...
0

User is offline   MrFlibble 

#255

I just checked a 8x model called HugePeeps by DinJerr, does some pretty amazing attempts to create realistic faces from pixel art (Daggerfall commoners here).
Spoiler

One more sprite and original low-res images for comparison here.

UPD: Oh, and I couldn't resist trying out this:
Attached Image: shelly_8x_HugePeeps_v1.png
Yup, the model saw an extra eye on the bikini top :)

This post has been edited by MrFlibble: 23 May 2021 - 11:31 AM

0

User is offline   NightFright 

  • The Truth is in here

#256

What's going on with placing eyes everywhere? It's inspired by Dalí or something?
1

User is online   Phredreeke 

#257

if a model is trained only on faces then it sees anything vaguely shaped like an eye as one,
0

User is offline   MrFlibble 

#258

View PostNightFright, on 23 May 2021 - 11:22 PM, said:

What's going on with placing eyes everywhere? It's inspired by Dalí or something?

It does not place eyes "everywhere". The model recognises certain patterns of pixels as eyes, this can be clearly seen with male commoner sprites from Daggerfall: these do not have as large and pronounced eyes as the females, but the model still creates eyes for them (e.g. male Redguard). That Shelly sprite just happens to have a similar arrangement of pixels on the bikini top that "looked" like an eye to the model.
0

User is offline   NightFright 

  • The Truth is in here

#259

Her cleavage looks like... something else, btw.
1

User is online   Phredreeke 

#260

brings a new meaning to titty-f*cking...
1

User is offline   jkas789 

#261

Not gonna lie, I once had a nightmare where a eldritch horror catfished me as a blonde babe.

10/10 best upscale ever.
1

User is offline   MrFlibble 

#262

BTW, I was playing with other models as well and realised that DinJerr's 4x_ArtStation1000_Sharp actually produces some fairly decent results (at least, when compared to many other models) with pre-rendered sprites:
Posted Image
Compare to earlier Doom 64 attempts here and here.

Characters from IPOG also came out rather well (never mind the facial expressions though!):
Posted Image

Powerslave:
Posted Image

But sadly Shadow Warrior sprites came out rather poorly:
Posted Image
0

User is online   Phredreeke 

#263

Pixelperfect -> 25% downscale -> Hugepeeps -> 25% downscale

Posted Image

https://imgsli.com/NTc0NDY
0

User is offline   NightFright 

  • The Truth is in here

#264

Lo Wang come for you, little snake coward!
0

User is offline   MrFlibble 

#265

In the meantime someone tested an Nvidia face model that produces photorealistic faces (from Daggerfall character portraits in this case):
http://forums.dfwork...e9ed5e07#p55430
1

User is online   Phredreeke 

#266

Posted Image

I realised I could use my redithering scripts with other models to add back some texture, in this case a degif upscale which was repalettised afterwards
0

User is offline   MusicallyInspired 

  • The Sarien Encounter

#267

Dang that looks good.
0

User is online   Phredreeke 

#268

What a wonderful smell I've discovered

Posted Image

This is similar to the last one except instead of DeGif I used Farthestneighbor + Fatal Photo
0

User is online   Mark 

#269

I was curious what I could do using just a few filters in my ancient Paint Shop Pro 7 program. I wasn't expecting anything as good as the upscale but its not too bad considering the source and only 5 minutes of trial and error with a few simple filters. Mine is on the left. Using a color replacer brush I could have turned those white speck to the colors of the robe but I wanted to see what I could do with using only filters.

Attached thumbnail(s)

  • Attached Image: filters.png


This post has been edited by Mark: 08 July 2021 - 12:49 PM

0

User is offline   MrFlibble 

#270

View PostPhredreeke, on 08 July 2021 - 03:58 AM, said:

Posted Image

I'm sorry to say this but I don't like this upscale at all. First off, some straight lines are not really straight in the upscale (like the right part of the door handle at the bottom), and secondly, it looks over-sharpened. Maybe it looks okay in-game though, I cannot tell.

Also it looks like your dithering script has a preponderance for creating rectangular patterns or pixels neatly lined up in straight horizontal and vertical lines.

I've run the same image through some 2x models, and while they are not perfect they do not have these two issues that I pointed out above:
Posted ImagePosted ImagePosted Image

The models used here are: 2x_Faithful_v2_130000_G.pth, 2x_FakeFaith-Lite_105000_G.pth, 2x_Faithful-Lite_275000_G.pth

Once again, I'm really sorry to say this, I appreciate your work and the amount of effort you put into this.
0

Share this topic:


  • 12 Pages +
  • « First
  • 7
  • 8
  • 9
  • 10
  • 11
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options