Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add resizer "AiUpscale" AviSynth filter #1186

Open
rafpigna opened this issue Jan 12, 2024 · 2 comments
Open

Add resizer "AiUpscale" AviSynth filter #1186

rafpigna opened this issue Jan 12, 2024 · 2 comments

Comments

@rafpigna
Copy link

rafpigna commented Jan 12, 2024

Feature request:
Would be great to add AiUpscale filter to the Resize filters.
It's based on Neural Networks and gives very good quality results.
The filter is available here https://github.com/Alexkral/AviSynthAiUpscale

I'm upscaling a huge tv shows library from 720x480 to 1440x1080 and this filter could boost up my upscaling quality.
I tried to add the filter myself, but I lack the knowledge to do it so I failed.

If it's not possible to add the filter, it would be great some suggestion on how to use it with StaxRip to use together with other filters in my upscaling workflof (deinterlace, denoise, sharpen and at this moment nnedi3 for upscaling)

Thanks!

@rafpigna
Copy link
Author

rafpigna commented Jan 12, 2024

After all night long searching on google and messing with scripts, paths and libraries, I found the way to add this and get it working.
It needs to point to some dll


LoadPlugin("C:\AviShaders\Shader-x64.dll")  (the one downloaded with the script package)
Import("C:\AviShaders\Shader.avsi") (the one downloaded with th script package)
Import("%settings_dir%Plugins\AviSynth\AiUpscale\AiUpscale.avsi")
AiUpscale(Factor=3,Luma="HQ Sharp",Chroma="HQ Sharp",CResample="",Mode="Photo",CPlace="MPEG2",OutDepth=10)   #just and example

the main script avssi file (AiUpscale.avsi) needs to be corrected in line 109 with the full absoluthe path to the shader folder (C:\yoursettingdir\Plugins\AviSynth\AiUpscale\Shaders\)
that contains the Shaders sub-folders downloaded with the package.

I didnt investigate if something from the StaxRip dll or shaders could be used instead of the dowloaded ones.

Anyway could be nice to have it added in StaxRip since the use will be easier without messing with paths and other files, so my request is still valid :)

Thanks

@Dendraspis
Copy link
Collaborator

I have tried a few solutions, but this filter is somehow special. But I stopped because it would take even more hours and in my opinion the filter is, with its 3 years, too old for that.

So sadly if you want to use it, you have to stick to your own guide, that is very appreciated and might help some others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants