Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > VapourSynth

Reply
 
Thread Tools Search this Thread Display Modes
Old 23rd July 2015, 07:24   #1  |  Link
HolyWu
Registered User
 
HolyWu's Avatar
 
Join Date: Aug 2006
Location: Taiwan
Posts: 574
Waifu2x-w2xc

https://github.com/HomeOfVapourSynth...-Waifu2x-w2xc/

Another implementation of waifu2x, based on the w2xc library. It can run on either GPU or CPU.

On my GTX 660, it runs about 25~45% faster when the color family of input clip is RGB than YUV/YCoCg.

Last edited by HolyWu; 13th May 2016 at 14:51.
HolyWu is offline   Reply With Quote
Old 23rd July 2015, 09:41   #2  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: Los Angeles, California
Posts: 2,119
tried photo=True on some RGB clips, and nnedi3 still works better on photo like clips imho.... (waifu2x looks like some stuff over warpsharped or whatever)
__________________
If I got new ideas, will post here: https://github.com/IFeelBloated
feisty2 is offline   Reply With Quote
Old 26th July 2015, 02:39   #3  |  Link
MonoS
Registered User
 
Join Date: Aug 2012
Posts: 176
Where did you get the photo model??
MonoS is offline   Reply With Quote
Old 26th July 2015, 02:50   #4  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,106
Here: https://github.com/nagadomi/waifu2x/...models/ukbench
Reel.Deel is offline   Reply With Quote
Old 26th July 2015, 03:15   #5  |  Link
MonoS
Registered User
 
Join Date: Aug 2012
Posts: 176
Quote:
Originally Posted by Reel.Deel View Post
I feel really stupid sometimes, thanks.

I'll make some tries with this models in the next weeks even if actually i was trying to train my own model for movies but was unable to find a good dataset
MonoS is offline   Reply With Quote
Old 19th October 2015, 13:14   #6  |  Link
HolyWu
Registered User
 
HolyWu's Avatar
 
Join Date: Aug 2006
Location: Taiwan
Posts: 574
Update r3.
  • Update w2xc library to r314.
  • Add processor and list_proc parameters.

The new parameters are mainly to let users be able to specify which device to use when there are more than one GPUs in the system.
HolyWu is offline   Reply With Quote
Old 4th January 2016, 10:02   #7  |  Link
HolyWu
Registered User
 
HolyWu's Avatar
 
Join Date: Aug 2006
Location: Taiwan
Posts: 574
Update r4.
  • Update w2xc library to r419.
  • Update anime_style_art_rgb and photo models. The old ukbench folder isn't used anymore and you can delete it.
  • Now the W2XConv object is initialized and destroyed only once per instance.
  • Fix forget to free the node in one error.
HolyWu is offline   Reply With Quote
Old 9th February 2016, 14:17   #8  |  Link
HolyWu
Registered User
 
HolyWu's Avatar
 
Join Date: Aug 2006
Location: Taiwan
Posts: 574
Update r5.
  • Update w2xc library to r423 which fixes memory leaks.
  • Add "-w2xc" to error messages and some other places.
  • Put shared memory in instance data instead of allocating them every frame.
HolyWu is offline   Reply With Quote
Old 20th February 2016, 02:10   #9  |  Link
Elegant
Registered User
 
Join Date: Jul 2014
Posts: 55
Hi HolyWu, I was wondering if you could add the library/headers you're using to compile your project. Building the waifu2x-converter-cpp from tanakamura with CMake is not well suited for Windows.
Elegant is offline   Reply With Quote
Old 20th February 2016, 06:40   #10  |  Link
HolyWu
Registered User
 
HolyWu's Avatar
 
Join Date: Aug 2006
Location: Taiwan
Posts: 574
Quote:
Originally Posted by Elegant View Post
Hi HolyWu, I was wondering if you could add the library/headers you're using to compile your project. Building the waifu2x-converter-cpp from tanakamura with CMake is not well suited for Windows.
His CMakeLists isn't well written to detect OpenCV on Windows, so you probably need to manually add a "HAVE_OPENCV" entry and set the path to OpenCV's directory in CMake before generating project files. Anyway, http://www.mediafire.com/download/53...nverter-cpp.7z contains project files of MSVC 2013 x64 for your information.
HolyWu is offline   Reply With Quote
Old 13th May 2016, 14:52   #11  |  Link
HolyWu
Registered User
 
HolyWu's Avatar
 
Join Date: Aug 2006
Location: Taiwan
Posts: 574
Update r6.
  • Update models and add noise reduction level 3.
HolyWu is offline   Reply With Quote
Old 18th September 2016, 18:52   #12  |  Link
brucethemoose
Registered User
 
Join Date: Sep 2016
Posts: 61
Did you change the syntax?

For the life of me, I can't figure out how to call the function... I have all the plugins, but "w2xc.Waifu2x(clip)" just throws the exception

Code:
Python exception: name 'w2xc' is not defined

EDIT: Also, I KNOW all the DLLs are loaded. If I try to import in manually, it throws and error saying the plugin is already loaded.

Last edited by brucethemoose; 18th September 2016 at 19:03.
brucethemoose is offline   Reply With Quote
Old 18th September 2016, 19:18   #13  |  Link
brucethemoose
Registered User
 
Join Date: Sep 2016
Posts: 61
EDIT: Stupid syntax error on my part, my mistake.

Last edited by brucethemoose; 18th September 2016 at 19:27.
brucethemoose is offline   Reply With Quote
Old 18th September 2016, 19:20   #14  |  Link
Are_
Registered User
 
Join Date: Jun 2012
Location: Ibiza, Spain
Posts: 275
That's not the proper error message for an incorrect namespace, can you post your full script?

EDIT: But let me do a wild guess, you didn't include de "core" portion in the call, did you?

Last edited by Are_; 18th September 2016 at 19:24.
Are_ is offline   Reply With Quote
Old 18th September 2016, 19:36   #15  |  Link
brucethemoose
Registered User
 
Join Date: Sep 2016
Posts: 61
Quote:
Originally Posted by Are_ View Post
That's not the proper error message for an incorrect namespace, can you post your full script?

EDIT: But let me do a wild guess, you didn't include de "core" portion in the call, did you?
At first yes, and I figured that out. What got me stuck was a silly path typo though, thanks.
brucethemoose is offline   Reply With Quote
Old 8th August 2018, 08:23   #16  |  Link
HolyWu
Registered User
 
HolyWu's Avatar
 
Join Date: Aug 2006
Location: Taiwan
Posts: 574
Update r7.
  • Now use DeadSix27's fork of w2xc.
  • Update models.
  • There is no 32 bit dll for windows now. 32 bit is super dead.
HolyWu is offline   Reply With Quote
Old 8th August 2018, 10:01   #17  |  Link
amayra
Quality Checker
 
amayra's Avatar
 
Join Date: Aug 2013
Posts: 220
thanks but how about using this fork i think this will give a better results
__________________
I love Doom9
amayra is offline   Reply With Quote
Old 8th August 2018, 11:49   #18  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 1,921
Quote:
Originally Posted by HolyWu View Post
Update r7.
  • Now use DeadSix27's fork of w2xc.
  • Update models.
  • There is no 32 bit dll for windows now. 32 bit is super dead.
Nice, you didn't use an ancient intel compiler that needs extra runtimes. I'll update it.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 20th June 2019, 10:24   #19  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 1,921
Could you stop using different directory structures and separate/not separate models between releases? Updating every release in vsrepo is quite annoying.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 20th June 2019, 16:31   #20  |  Link
HolyWu
Registered User
 
HolyWu's Avatar
 
Join Date: Aug 2006
Location: Taiwan
Posts: 574
Quote:
Originally Posted by Myrsloik View Post
Could you stop using different directory structures and separate/not separate models between releases? Updating every release in vsrepo is quite annoying.
OK. I'll unify the way of archiving the binaries.
HolyWu is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:41.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.