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

not an issue but suggestion #6

Open
zelenooki87 opened this issue May 11, 2023 · 3 comments
Open

not an issue but suggestion #6

zelenooki87 opened this issue May 11, 2023 · 3 comments

Comments

@zelenooki87
Copy link

Could you please implement vapoursynth to this project.
https://github.com/sunny2109/SAFMN
cause it is fenomenal for low res input
Thank you very much in advance!

@Selur
Copy link

Selur commented Apr 6, 2024

espeically SAFMN++, seems interessting.

@HolyWu
Copy link
Owner

HolyWu commented Apr 7, 2024

If it's supported by chaiNNer then you can convert the model to onnx and run inference with vs-mlrt.

@Selur
Copy link

Selur commented Apr 7, 2024

sadly model team23_safmnpp.pth is unsupported by chaiNNer.

But there is https://github.com/sunny2109/SAFMN/tree/main/scripts/to_onnx and SAFMN_onnx_pt.zip contains an onnx-file which supports 940x640 resolution, and:

w = clip.width
h = clip.height
clip = core.resize.Bicubic(clip=clip, width=960, height=640, format=vs.RGBS, matrix_in_s="470bg", range_s="full")
from vsmlrt import Backend
clip = vsmlrt.inference([clip],network_path="C:/Users/Selur/Desktop/SAFMN_640_960_x2.onnx", backend=Backend.OV_CPU(num_streams=1))
clip = core.resize.Bicubic(clip=clip, width=w*2, height=h*2)

does seem to work.

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

No branches or pull requests

3 participants