Author Topic: At it again...  (Read 25447 times)

yarLson

  • *
  • Posts: 708
  • spr nrd
    • View Profile
At it again...
« on: 2016-02-01 02:44:56 »
So I just can't leave well enough alone I suppose.  I know someone already did an upscale using waifu2x but I believe his model choice was poor.  He used the original "trained" model for anime art, whereas there is another "trained" model you can use with waifu2x that is based off of photography. 

Using this "photo" model instead of the anime model I have gotten incredibly clean and sharp results without the blotched or smudgy look of the anime style waifu2x.  I already modified Omzy's facepalmer script to work with waifu-caffe, trained with this new model and using cuDNN to make the processing time reasonable.   As a result I am posting a demo of the bombing mission so you can get an in game taste of this new method.  Also posting some sample images from an imgur album but keep in mind these are compressed a bit.

So here is the demo, just rename "demofin" to "field" and place in modpath.
http://www.mediafire.com/download/o8p04qwwaifgsms/demofin.7z

Also here are just a few samples to see what I am talking about
https://imgur.com/a/IjxFa

What do you think?  Would it be worth processing the whole game again?  With my new rig it probably wouldn't take nearly as much time as it did in the past, but then again even with CUDA and cuDNN the waifu2x resizing does take a fair bit of time to process even with a gtx 970, so just looking for feedback as to whether or not I should go for it?
« Last Edit: 2016-02-01 02:46:38 by yarLson »

obesebear

  • *
  • Posts: 1389
    • View Profile
Re: At it again...
« Reply #1 on: 2016-02-01 03:07:08 »
I'm on my phone right now but from what I can tell it would definitely be worth it.

There are also a few battle scenes that haven't been remade yet that would probably benefit as well

EQ2Alyza

  • 7th Heaven Crew
  • Global moderator
  • *
  • Posts: 3200
  • Dilly-Dally Shilly-Shally
    • View Profile
    • EQ2Alyza - YouTube Channel
Re: At it again...
« Reply #2 on: 2016-02-01 03:22:40 »
Would you consider these better quality overall than your previous processing of the game? I have your first one in the 7H Catalog atm, but if you consider this one to be better, I could replace it. It's up to you.

mitzmitra

  • *
  • Posts: 94
  • one winged artist
    • View Profile
Re: At it again...
« Reply #3 on: 2016-02-01 09:32:38 »
that is a nice looking field..  8)

EDIT:
sir yarlson, up to what stage of the game is this demo fields completed? i want to try it  ;D i'm still in golden saucer level :D
« Last Edit: 2016-02-01 09:35:49 by mitzmitra »

Luigi Brosse

  • *
  • Posts: 55
    • View Profile
Re: At it again...
« Reply #4 on: 2016-02-01 10:14:27 »
Too me, this looks better than the previous waifu release, in the fact that there is less the "cel shade"effect that might have been a consequence of using the anime trained approach.
However, it would be good if you could have a comparison on the same field.

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: At it again...
« Reply #5 on: 2016-02-01 16:34:18 »
It looks like the best I've seen so far, regarding the upscaled backgrounds.  Doesn't look anywhere near as plastic as some attempts or like what fractals does.

edit.

It's actually at a standard that I can say is "good"  - which I couldn't with the rest.  It's pretty impressive.
« Last Edit: 2016-02-01 18:30:52 by DLPB »

cmh175

  • *
  • Posts: 862
    • View Profile
    • Chris Hendrickson's Artstation
Re: At it again...
« Reply #6 on: 2016-02-01 18:35:55 »
Wow, this is really impressive! I didn't think the original backgrounds could ever be this crisp and clear.

Covarr

  • Covarr-Let
  • Administrator
  • *
  • Posts: 3941
  • Just Covarr. No "n".
    • View Profile
Re: At it again...
« Reply #7 on: 2016-02-01 18:42:17 »
This is genuinely good. I've always avoided upscaled backgrounds in the past, because I felt like the scaling artifacts, the weird blotches, etc., looked worse than the pixellation of the originals. This is the first attempt I've seen that I would actually use myself.

It's not perfect; among other things, some of the higher contrast dithering still scales weirdly (most obvious with the back wall near the top in the first screen). Have you considered running a low-strength noise removal filter over it before scaling? I've found that Photoshop's noise removal is pretty good at blending dithering like that without eating away at detail. For example, using these settings, I processed that same screen and came up with this:



At this size, the original size, the difference is virtually indistinguishable to the naked eye. But with the dithering blurred, I'd imagine this would scale much more nicely with that improved scaling system you've got set up. Just a thought, maybe worth trying. If you don't wanna put in the effort of preprocessing fields through Photoshop, I certainly won't blame you, and I can't guarantee that the results would even be as good as I suspect they would (I don't have waifu2x handy to test it myself right now). Still, it could be worth trying.

In any case, what you've got is already so much better than anything I've seen. I'm really excited to see where this goes. I'd use it.

satsuki

  • *
  • Posts: 778
    • View Profile
    • My softs (french only)
Re: At it again...
« Reply #8 on: 2016-02-01 19:49:13 »
I'm not agry with you with the "photo" preset.
here's a side by side samples of the waifu "anime" (left) and your waifu "photo" right (best looking at full size of course).
the waifu "photo" is simply less sharp than the "anime" one and way less precise in large colors areas (lock at the red in the warning sign)
also the omzy script is a good starting point but it's full of miss-cut in the layers witch generating black pixels areas (the warning sign for exemple).



Fischkopf

  • *
  • Posts: 217
    • View Profile
Re: At it again...
« Reply #9 on: 2016-02-01 21:25:54 »
I think anime looks good enough... Apart from the fact that the "photo" version is a little blurrier the difference seems really minor.

obesebear

  • *
  • Posts: 1389
    • View Profile
Re: At it again...
« Reply #10 on: 2016-02-01 21:48:34 »
The only issue I have with the original waifu upscale was the creation of lines that weren't there originally.  You can kind of see what I mean on the 3rd image that satsuki posted on the big wall on the right.  I can't unsee them

yarLson

  • *
  • Posts: 708
  • spr nrd
    • View Profile
Re: At it again...
« Reply #11 on: 2016-02-01 23:25:30 »
Well this is just to suite my personal taste.  I don't like distortion or stylized upscales.  While the anime is decent in sharpness it definitely changes the style of the original scenes.  This result with photo is the best and sharpest image I have ever gotten without completely botching the style.  In addition I now have a 2k display and the 4x upscales aren't working anymore I may need to go as much as 6x.  Also satsuki, if you have a better script that your willing to share that'd be great otherwise I'll just use omzy's and fix some scenes that need manual tuning. To answer some other questions the demo goes up to the point where you get off the train after the bombing mission with that scene not including. 

Also I have considered doing some noise reduction on the scenes I just wanted to post the results of the raw upscales to showcase how crisp it looks. 

I have even considered just training my own waifu2x model completely from scratch based on the FF7's style but I don't know where I would be able to find upwards of 6000 or so largescale images all in the style of the original ff7 with as little noise as possible to train the model.  I know I could use some of the fields that have been upscaled manually as input but I would need a lot more data to be able to train an effective model

EQ2Alyza  I wouldn't replace anything just yet until I decide on a finalized process but I definitely consider this higher quality from my previous work.  When you compare the raws side by side there is really no comparison
« Last Edit: 2016-02-01 23:32:25 by yarLson »

EQ2Alyza

  • 7th Heaven Crew
  • Global moderator
  • *
  • Posts: 3200
  • Dilly-Dally Shilly-Shally
    • View Profile
    • EQ2Alyza - YouTube Channel
Re: At it again...
« Reply #12 on: 2016-02-01 23:36:04 »
I'm not going to replace anything until you're finished. You asked in the OP if it'd be worth processing the whole game again, and I wanted to motivate you to do it by saying I'd use your newest work in the 7H Catalog :)

lionheart82

  • *
  • Posts: 229
    • View Profile
Re: At it again...
« Reply #13 on: 2016-02-02 07:03:23 »
Hey yarlson these are A-ff7ing-mazing! They are the best ive seen so far, amateur speaking mind you. Afai am concerned go for it full speed!

satsuki

  • *
  • Posts: 778
    • View Profile
    • My softs (french only)
Re: At it again...
« Reply #14 on: 2016-02-02 07:54:23 »
Also satsuki, if you have a better script that your willing to share that'd be great otherwise I'll just use omzy's and fix some scenes that need manual tuning.

It's not a script, it's 2 home made vb6 software generating .bat file to use ImageMagick + ImageResizer + a special version of waifu2x (cpu and no alpha channel to have better result).
most of the fields are ok with one of the 2 software but i had to fix about 50 field by and and adjust maybe 80 to have smoother layers transition, but if you test my version you'll see not a single black pixel area (done the whole game twice to be sure), with the onzy's script a found about 120 fields with missing pixels so i go with my own version.

If you want the software i could send  them to you with a "howto" but if you're familiar with scripting you may have better result by modifying the omzy's one
If you want i could also say in a precise way how the software i made works so you counld adapt it to the omzy script to your taste
« Last Edit: 2016-02-02 07:56:41 by satsuki »

Luigi Brosse

  • *
  • Posts: 55
    • View Profile
Re: At it again...
« Reply #15 on: 2016-02-02 10:10:12 »
Thanks Satsuki for posting comparison.
This confirmed that the photo preset looks better to me, because it is less sharp than the anime one.
I am perfectly fine with the fact that some people would prefer the anime version, though.
So yarLson, please go forward with this project! I would love to use it!

PS: and if you need some computing power, I can run some processing.

yarLson

  • *
  • Posts: 708
  • spr nrd
    • View Profile
Re: At it again...
« Reply #16 on: 2016-02-03 00:03:09 »
If you want the software i could send  them to you with a "howto" but if you're familiar with scripting you may have better result by modifying the omzy's one
If you want i could also say in a precise way how the software i made works so you counld adapt it to the omzy script to your taste

Yeah sounds like you put a lot of good work into the the software and a how-to would be very useful.  I should have enough experience to be able to use it.  Also knowing how it works in a precise way would also be useful if you have the time.  Now also if you documented which scenes it was that you needed to edit manually that'd be great as well that way I already know what to work on.  Basically whatever your willing to share I'll take.  You have done a lot of good work.

On a side note. hope my statement about "poor" choice wasn't offensive.  I would be more correct to say "poor to my taste"  but I rather admire your work from a technical standpoint. 

Now I am also serious about training my own waifu model but does anyone have any clear idea about where we could get that many images.  I mean using google's advanced search might not be a bad way to find the images but how exactly could we define the original  Final Fantasy 7's style from a purely objective standpoint, in order to collect only those images that conform to that definition?  If we can define that clearly I may just start compiling images.

satsuki

  • *
  • Posts: 778
    • View Profile
    • My softs (french only)
Re: At it again...
« Reply #17 on: 2016-02-03 07:06:28 »
Yeah sounds like you put a lot of good work into the the software and a how-to would be very useful.  I should have enough experience to be able to use it.  Also knowing how it works in a precise way would also be useful if you have the time.  Now also if you documented which scenes it was that you needed to edit manually that'd be great as well that way I already know what to work on.  Basically whatever your willing to share I'll take.  You have done a lot of good work.
Ok i'll do a howto when i'll have some time (need to do some clean up to make the forware more user friendly) but for the documentation of scene i've edited manualy i haven't done a list ^^'

Now I am also serious about training my own waifu model but does anyone have any clear idea about where we could get that many images.  I mean using google's advanced search might not be a bad way to find the images but how exactly could we define the original  Final Fantasy 7's style from a purely objective standpoint, in order to collect only those images that conform to that definition?  If we can define that clearly I may just start compiling images.
I thought about it to when i started working on waifu but never found a good way to train waifu for FF7 design specificly

Kaldarasha

  • *
  • Posts: 2449
  • Prince of Model Editing
    • View Profile
Re: At it again...
« Reply #18 on: 2016-02-03 19:17:55 »
What would happen if you use the animie trained waifu images with full noise reduction and use these for training waifu?

yarLson

  • *
  • Posts: 708
  • spr nrd
    • View Profile
Re: At it again...
« Reply #19 on: 2016-02-04 01:04:45 »
Well theoretically you'd end up with the same or worse image quality.  Basically you need something better to learn from. Using the same images but processed once through would just cause a reduction in quality most likely if any difference at all.

Jahiliyyah

  • *
  • Posts: 49
    • View Profile
Re: At it again...
« Reply #20 on: 2016-02-21 14:40:51 »
Now I am also serious about training my own waifu model but does anyone have any clear idea about where we could get that many images.  I mean using google's advanced search might not be a bad way to find the images but how exactly could we define the original  Final Fantasy 7's style from a purely objective standpoint, in order to collect only those images that conform to that definition?  If we can define that clearly I may just start compiling images.

The closest I think you could get is using assets from newer HD games or original artwork of the same artists? What were the latest Square Enix titles that used static backgrounds?

obesebear

  • *
  • Posts: 1389
    • View Profile
Re: At it again...
« Reply #21 on: 2016-02-21 14:55:25 »

Mako

  • *
  • Posts: 669
    • View Profile
Re: At it again...
« Reply #22 on: 2016-02-24 12:21:20 »
This project all the way... Mainly since I cant seem to get the other Waifu2x pack in it's entirety without dead links. But I'm more interested in accuracy vs stylized. :)

yarLson

  • *
  • Posts: 708
  • spr nrd
    • View Profile
Re: At it again...
« Reply #23 on: 2016-02-24 15:41:45 »
I just recently placed an order for the 980 ti.  I am just waiting for it to arrive and I will get to work on process the full game with this method.

Fischkopf

  • *
  • Posts: 217
    • View Profile
Re: At it again...
« Reply #24 on: 2016-02-24 15:51:53 »
This project all the way... Mainly since I cant seem to get the other Waifu2x pack in it's entirety without dead links. But I'm more interested in accuracy vs stylized. :)
It's in the 7th heaven catalog.