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 31st December 2022, 13:09   #161  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
Too clean and after use it, i will add some noise to match my favourite

Last edited by kedautinh12; 31st December 2022 at 14:20.
kedautinh12 is offline   Reply With Quote
Old 31st December 2022, 13:20   #162  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
You could merge some % of the original clip back to add back some texture.
I just like the overall consistency of the denoising result.

examples of how clean it gets:
https://imgur.com/a/UOjtk8Y
https://imgur.com/a/HB02pCW
https://imgur.com/a/6mQuyIn
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database

Last edited by ChaosKing; 31st December 2022 at 13:32.
ChaosKing is offline   Reply With Quote
Old 1st January 2023, 01:38   #163  |  Link
lansing
Registered User
 
Join Date: Sep 2006
Posts: 1,657
Quote:
Originally Posted by ChaosKing View Post
New toy https://github.com/HolyWu/vs-scunet
Online demo https://replicate.com/cszn/scunet

So far I like it. It creates very consistent and clean results (a bit too clean).
Tested on my anime, the denoising is pretty good. There are some aggressive sharpening when it determined something is an blurred edges. The noise sensitivity is also too high, in my anime here it mistaken the pattern on the wall to be noise.

https://imgsli.com/MTQ0MTkz
lansing is offline   Reply With Quote
Old 1st January 2023, 01:38   #164  |  Link
zorr
Registered User
 
Join Date: Mar 2018
Posts: 447
Quote:
Originally Posted by ChaosKing View Post
New toy https://github.com/HolyWu/vs-scunet
Online demo https://replicate.com/cszn/scunet

So far I like it. It creates very consistent and clean results (a bit too clean).
This looks like an excellent prefilter to MVTools, especially for very noisy videos.

I tried to install this to my portable VapourSynth but it looks like vsscunet wants at least Python 3.10 and the latest FatPack is still at 3.9. Are you planning a new release?
zorr is offline   Reply With Quote
Old 1st January 2023, 02:00   #165  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,377
scunet is good on gaussian type noise (the pretrained models were trained on synthetic gaussian noise)

non anime example
https://imgsli.com/MTQ0MTk3/0/0

It would be nice if the psnr model had adjustable strength built in.

The gan model retains a bit more detail compared to psnr model; the gan model exhibits less denoising but shifts the colors a bit more
poisondeathray is offline   Reply With Quote
Old 1st January 2023, 08:49   #166  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
Quote:
Originally Posted by zorr View Post
This looks like an excellent prefilter to MVTools, especially for very noisy videos.
I was thinking the same

Quote:
Originally Posted by zorr View Post
I tried to install this to my portable VapourSynth but it looks like vsscunet wants at least Python 3.10 and the latest FatPack is still at 3.9. Are you planning a new release?
I was actually planning to release a GPU Edition but things got in the way and some laziness. I hope this month

Quote:
Originally Posted by poisondeathray View Post

The gan model retains a bit more detail compared to psnr model; the gan model exhibits less denoising but shifts the colors a bit more
yeah, color shifts are the most annoying thing with these trained filters.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Old 1st January 2023, 13:57   #167  |  Link
lollo2
Registered User
 
lollo2's Avatar
 
Join Date: Aug 2017
Location: Italy
Posts: 115
I used one of my S-VHS capture (affected by ghosting and halo) with typical noise and the result is very good: deep denoise, but not too much loss of details.
However, I still prefere a classic AviSynth TemporalDegrain2 + LSFmod flow.

Comparison between original and AviSynth: https://imgsli.com/MTI5NjI2

Comparison between original and Scunet: https://imgsli.com/MTQ0MTgw

Comparison between AviSynth and Scunet: https://imgsli.com/MTQ0MTgx

I will try to play with the Scunet options to match AviSynth more "natural" look.

The processing time is very high, >1 minute for a single frame, I hope it will not be like that on a local machine
__________________
A channel on S-VHS / VHS capture and AviSynth restoration https://www.youtube.com/channel/UCMs...h1MmNAs7I8nu4g
lollo2 is offline   Reply With Quote
Old 1st January 2023, 14:33   #168  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
Nice.
I agree, looks nice, but it would be nice to have some more control over the denoising strength.
(dot crawlers, light blocking get removed nicely, but general denoising and smoothing seems too strong, probably best applied with some masking)
__________________
Hybrid here in the forum, homepage

Last edited by Selur; 1st January 2023 at 16:44.
Selur is offline   Reply With Quote
Old 5th January 2023, 22:52   #169  |  Link
zorr
Registered User
 
Join Date: Mar 2018
Posts: 447
Quote:
Originally Posted by Selur View Post
I agree, looks nice, but it would be nice to have some more control over the denoising strength.
The strength can be somewhat controlled with a couple of tricks. The first one is to amplify the dark areas with gamma (in RGB space) before the denoising and then undoing the gamma change afterwards. It makes the noise look more like actual features so the denoiser leaves more of it intact. The effect is quite subtle though. And it seems to amplify the color drift scunet is doing.

Code:
gamma = 1.5
clip = core.std.Levels(clip, gamma=gamma, planes=[0,1,2])
clip = scunet(clip, model = 4)
clip = core.std.Levels(clip, gamma=1.0/gamma, planes=[0,1,2])
Another and more effective way is to upscale the clip before the denoising and rescaling it back to original size afterwards. Here for example with scaling factor 2:

Code:
orig_width = clip.width
orig_height = clip.height
clip = core.resize.Lanczos(clip, width=clip.width*2, height=clip.height*2, src_left = -0.25, src_top = -0.25)
clip = scunet(clip, model = 4)
clip = core.resize.Point(clip, width=orig_width, height=orig_height)
Obviously this takes 4 times as much memory and processing power. Scaling by 2 leaves quite a lot more noise so perhaps a smaller scale factor will be enough. And you can of course combine this with the gamma trick.
zorr is offline   Reply With Quote
Old 12th January 2023, 08:36   #170  |  Link
lansing
Registered User
 
Join Date: Sep 2006
Posts: 1,657
I'm trying to create a lower quality image from a higher quality image for training a model for anime. I need to recreate a dvd quality image from a cel scan,

from this:
https://imgur.com/FWW2p6B

to this:
https://imgur.com/VdrndTA

Do we have vapoursynth filters that can do that?
lansing is offline   Reply With Quote
Old 12th January 2023, 11:43   #171  |  Link
mastrboy
Registered User
 
Join Date: Sep 2008
Posts: 365
https://gitlab.com/bg123/vapoursynth.../-/tree/master (I have not tested it)
__________________
(i have a tendency to drunk post)
mastrboy is offline   Reply With Quote
Old 12th January 2023, 17:55   #172  |  Link
lansing
Registered User
 
Join Date: Sep 2006
Posts: 1,657
Quote:
Originally Posted by mastrboy View Post
The syntax was outdated? I'm getting "BlankClip: invalid length" error on this line:

Code:
attribute_clip = core.std.BlankClip(clip, length=math.floor(len(clip) * target_fps_num / target_fps_den * clip.fps_den / clip.fps_num), fpsnum=target_fps_num, fpsden=target_fps_den)
lansing is offline   Reply With Quote
Old 23rd January 2023, 01:49   #173  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
Almost perfect decrawl / Derainbow filter 1x_Dotzilla_Compact. https://upscale.wiki/wiki/Model_Data...e_and_Cartoons
It just works + speed is also ok.

https://imgsli.com/MTM4ODkz
https://i.imgur.com/hp6tBMC.jpeg
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Old 23rd January 2023, 13:55   #174  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
@ChaosKing: nice.
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 24th January 2023, 09:29   #175  |  Link
ReinerSchweinlin
Registered User
 
Join Date: Oct 2001
Posts: 454
Quote:
Originally Posted by ChaosKing View Post
Almost perfect decrawl / Derainbow filter 1x_Dotzilla_Compact. https://upscale.wiki/wiki/Model_Data...e_and_Cartoons
It just works + speed is also ok.

https://imgsli.com/MTM4ODkz
https://i.imgur.com/hp6tBMC.jpeg
looking good
ReinerSchweinlin is offline   Reply With Quote
Old 29th January 2023, 18:17   #176  |  Link
PatchWorKs
Registered User
 
PatchWorKs's Avatar
 
Join Date: Aug 2002
Location: Italy
Posts: 304
Quote:
Originally Posted by ChaosKing View Post
New toy https://github.com/HolyWu/vs-scunet
Online demo https://replicate.com/cszn/scunet

So far I like it. It creates very consistent and clean results (a bit too clean).
Nice, here's a "degrain" of a 1080p source (model - real image denoise):



Definition and shadows looks ok, blurry is minimal.

Anyway I can notice a little banding (check the sky in the center of the image).

EDIT: https://imgsli.com/MTUxMTY5 (overlay comparison)
__________________
Hybrid Multimedia Production Suite will be a platform-indipendent open source suite for advanced audio/video contents production.

Official git: https://www.forart.it/HyMPS/

Last edited by PatchWorKs; 31st January 2023 at 09:40.
PatchWorKs is offline   Reply With Quote
Old 29th January 2023, 19:47   #177  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
yeah its very good. But look at the guys shirt. It's like a "shadow" is removed or the shirt got wasched clean. Interessting effect

I wonder if a "temporal scunet" would be even better.

If think if you combine the scunet filtered frame with a smdegrain filtered frame the result would be almost perfect (maybe add some debanding too)
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Old 30th January 2023, 10:58   #178  |  Link
PatchWorKs
Registered User
 
PatchWorKs's Avatar
 
Join Date: Aug 2002
Location: Italy
Posts: 304
...it would be also interesting to have a "combined" (denoise+SDRtoHDR) tool:

https://github.com/MCG-NKU/FMNet

It could be also *very* useful to perform a block partitioning-optimization at the same time:

https://github.com/fengxinmin/iDepthmap-x265
__________________
Hybrid Multimedia Production Suite will be a platform-indipendent open source suite for advanced audio/video contents production.

Official git: https://www.forart.it/HyMPS/
PatchWorKs is offline   Reply With Quote
Old 1st February 2023, 09:37   #179  |  Link
PatchWorKs
Registered User
 
PatchWorKs's Avatar
 
Join Date: Aug 2002
Location: Italy
Posts: 304
Just discovered aydin, "a user-friendly, feature-rich, and fast image denoising tool that provides a number of self-supervised, auto-tuned, and unsupervised image denoising algorithms":




Website: https://royerlab.github.io/aydin/

Git: https://github.com/royerlab/aydin

Quite surprised that we didn't found any related search result here ad Doom9...
__________________
Hybrid Multimedia Production Suite will be a platform-indipendent open source suite for advanced audio/video contents production.

Official git: https://www.forart.it/HyMPS/
PatchWorKs is offline   Reply With Quote
Old 1st February 2023, 15:55   #180  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
Not that surprising, since there are not many threads that are image centric.
Usually it's about video. And image based filters can easily lead to temporal inconsistencies.
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Reply

Tags
esrgan, gan, upscale, vapoursynth

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 03:37.


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