GithubHelp home page GithubHelp logo

vs-swinir's Introduction

SwinIR

Image Restoration Using Swin Transformer, based on https://github.com/JingyunLiang/SwinIR.

Dependencies

Installation

pip install -U vsswinir
python -m vsswinir

Usage

from vsswinir import swinir

ret = swinir(clip)

See __init__.py for the description of the parameters.

vs-swinir's People

Contributors

holywu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vs-swinir's Issues

denoising support

how about add denoising support? the result looks better than dpir in my test:smile:

unsupported operand type(s)

I used 2.0:
script:

ret= core.lsmas.LWLibavSource(r'D:\video\VapourSynth64Portable\1.mp4')
core.resize.Bicubic(ret, format=vs.RGBS,dither_type="error_diffusion")


ret =SwinIR(ret,model=0)


ret = core.resize.Bicubic(ret, format=vs.YUV420P16, matrix_s="709", range_s="full")



ret = core.resize.Bicubic(ret, format=vs.YUV420P8,matrix_s="709",range_s="full")




ret.set_output()>

result:

Failed to evaluate the script:
Python exception: unsupported operand type(s) for //: 'vapoursynth.VideoNode' and 'int'

Traceback (most recent call last):
File "src\cython\vapoursynth.pyx", line 2866, in vapoursynth._vpy_evaluate
File "src\cython\vapoursynth.pyx", line 2867, in vapoursynth._vpy_evaluate
File "D:/video/VapourSynth64Portablevb/swinir2.vpy", line 46, in 
ret =SwinIR(ret,model=0)
File "D:\video\VapourSynth64Portablevb\VapourSynth64\Lib\site-packages\vsswinir\network_swinir.py", line 561, in __init__
self.patch_embed = PatchEmbed(
File "D:\video\VapourSynth64Portablevb\VapourSynth64\Lib\site-packages\vsswinir\network_swinir.py", line 406, in __init__
patches_resolution = [img_size[0] // patch_size[0], img_size[1] // patch_size[1]]
TypeError: unsupported operand type(s) for //: 'vapoursynth.VideoNode' and 'int'>

but 1.0 is ok!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.