Join us on Discord!
You can help CodeWalrus stay online by donating here.

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

#15
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)
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
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

#16
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.

Here is the Waifu one.


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

#17
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:
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
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)

Dream of 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.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

p2

yep that's exavtly what I'm looking forward to O.O
but doing it manually is an awful amount of work >.<
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
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

#20
I am not happy until it runs flawless in real time over the game :)

p2

#21
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
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
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

#22
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...  :-\
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
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)

Yuki

I'm not that good, and pretty sure you can find docs in English.
  • Calculators owned: TI-83+ (dead?), Casio Prizm (also dead???)
  • Consoles, mobile devices and vintage computers owned: A lot
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:
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
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%
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
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)

Dream of Omnimaga

I wonder what would be the minimum requirements for a PC  to render Waifu2x videos at 30 fps...
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

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