Alternatively, join us on Discord.

+-Recent Topics

Scaling algorithms

Started by gameblabla, September 09, 2016, 02:05:54 am

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

p2

March 29, 2017, 11:50:59 am #15 Last Edit: March 29, 2017, 12:04:33 pm by p2
could someone maybe try this on a lil 20sec movie or something?
I'd love to see how this style (u called it painting) looks like if its an animated thing O.O

*currently doing SFG Sharpen Edge in the walrii
Edit01: resembles original image 1m) 99.553474%
Edit01: resembles original image 2m) 99.43323%
Edit: it didnt change much at all... looked like some jpeg artifacts all over the pic, nothing special... :/
now trying some more fancy stuff (parts of AoE2 screenshots)
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

VMike

March 29, 2017, 12:05:31 pm #16 Last Edit: March 29, 2017, 12:14:39 pm by p2
Quote from: p2 on March 29, 2017, 11:50:59 am
could someone maybe try this on a lil 20sec movie or something?
I'd love to see how this style (u called it painting) looks like if its an animated thing O.O

*currently doing SFG Sharpen Edge in the walrii


Edit01: resembles original image 1m) 99.553474%
Edit01: resembles original image 2m) 99.43323%


Someone put the frames from the original Tomb Raider 1 intro thru it.

Here is the original.
https://www.youtube.com/watch?v=_tOnWSV4Thk
Here is the Waifu one.
https://www.youtube.com/watch?v=UFZe7zAweRM

Am going to do a little video myself maybe. I will url it here then.

The more I see of it the more I need it, haha.


Edit by p2: fixed youtube links

p2

March 29, 2017, 01:22:52 pm #17 Last Edit: March 29, 2017, 03:34:32 pm by p2
My first try of an AgeOfEmpires2 screenshot:
Original Image:

always resizing it from 54x66 to 540x714













98,218445%98,73424%98,84584%99,29145%99,50681%99,70652%99,81886%99,93266%100,0%From now on taking an image every few minutesnüflast round half way done...
Step2 - 97,653%halfway through98,10193%98,38588%%%%%%%%%...



For the whole process my CPU was below 20% - while running Firefox, mail client, Telegram, iTunes, Appstore, iMessage, ...
Pls fix this <_<
Except if it's only taking the GPU which would explain a lot of things... ::)
but still it takes much longer than I expected on my machine :ninja:
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

DJ Omnimaga

Wow, those Resident Evil pictures look great. As for a video, I guess what could be done is split the video into multiple PNG files, bulk-apply Waifu2x to all of them then re-merge them into a video.

p2

yep that's exavtly what I'm looking forward to O.O
but doing it manually is an awful amount of work >.<
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

VMike

March 29, 2017, 05:20:09 pm #20 Last Edit: March 29, 2017, 05:24:53 pm by VMike
I am not happy until it runs flawless in real time over the game :)

p2

March 29, 2017, 08:08:54 pm #21 Last Edit: April 03, 2017, 09:57:38 pm by p2
well Waifu2x is indeed most impressive snd pretty fast but still...
on an amd radeon pro 460 (macbook pro 15" late 2016 with max available hardware) it takes about 3 seconds for a pic to upscale from 765x335 to 6120x2680 and apply it.
so for regular videos I'd say 2seconds per frame which is 0.5FPS... we need 60x the speed of that to get it running....
And it's gonna be rather hard to find hardware 60x faster (i7 at 3.8GHz and Inter 460 here).

But still I only tested the thing inside the browser from http://waifu2x.me/ so doing it directly with an app might be a bit faster, that I do not know.

Still I really REALLY hope it'll work one day! ^.^


EDIT:
Some linux (ubuntu) pro should read through this, it looks like there IS a method to apply it to videos O.O
https://github.com/nagadomi/waifu2x
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

VMike

March 29, 2017, 08:14:23 pm #22 Last Edit: March 29, 2017, 08:25:57 pm by VMike
Quote from: p2 on March 29, 2017, 08:08:54 pm
well Waifu2x is indeed most impressive snd pretty fast but still...
on an Intel pro 460 (macbook pro 15" late 2016 with max available hardware) it takes about 3 seconds for a pic to upscale from 765x335 to 6120x2680 and apply it.
so for regular videos I'd say 2seconds per frame which is 0.5FPS... we need 60x the speed of that to get it running....
And it's gonna be rather hard to find hardware 60x faster (i7 at 3.8GHz and Inter 460 here).

But still I only tested the thing inside the browser from http://waifu2x.me/ so doing it directly with an app might be a bit faster, that I do not know.

Still I really REALLY hope it'll work one day! ^.^

EDIT:
Some linux (ubuntu) pro should read through this, it looks like there IS a method to apply it to videos O.O
https://github.com/nagadomi/waifu2x


Here is a glsl version, if that helps.
https://github.com/ues h i t a/waifu2x-converter-glsl

A Open GL port.
https://github.com/MaverickTse/aviutl-waifu2x-gl

Here is the Windows version that can run on your gpu if you have Nvidia.
https://github.com/lltcggie/waifu2x-caffe

As I said, someone did mention that optimization to achieve 30fps(Ps1 runs in like 24 fps or so) is not impossible. But I am no coder, I dont know this stuff. Otherwise I would convert it into a emu upscaler at once :)

p2

Looks like mpost of the material on Waifu2x is Japanese which means we need somone who can read Japanese... :ninja:
Maybe @Juju could help us out with this? <3 (Japanese + Ubuntu) But I doubt he'd have the time for this...  :-\
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

Juju

I'm not that good, and pretty sure you can find docs in English.
Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron



if you wanna throw money at me and/or CodeWalrus monthly it's here

p2

Doing SFG in Detail Recovery Mode on a 765x335px picture since 2 days.....  :ninja: Can't wait for the reults  :thumbsup:
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

p2

still calculating...
Round 96, which means 96 Million rounds of machine learning so far.
The formula resembles the picture 99.15898%
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

DJ Omnimaga

I wonder what would be the minimum requirements for a PC  to render Waifu2x videos at 30 fps...

VMike

Quote from: DJ Omnimaga on March 31, 2017, 04:16:38 pm
I wonder what would be the minimum requirements for a PC  to render Waifu2x videos at 30 fps...

I think we will have what is needed in ten years.

aeTIos

Hey @VMike welcome aboard and thanks for digging up this thread, I hadn't seen it yet haha.
By the way would you mind introducing yourself in the [link incoming] appropriate topic? Looking forward to seeing you around :D (although *I* probaby should be around more <_<)
ceci n'est pas une signature

Powered by EzPortal