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

invalid input pixels with scale=1 (waifu2x) #37

Closed
hooke007 opened this issue Mar 25, 2023 · 2 comments
Closed

invalid input pixels with scale=1 (waifu2x) #37

hooke007 opened this issue Mar 25, 2023 · 2 comments

Comments

@hooke007
Copy link
Contributor

vs-mlrt/scripts/vsmlrt.py

Lines 339 to 348 in c4e5cb6

if scale == 1 and clip.width // width == 2:
# emulating cv2.resize(interpolation=cv2.INTER_CUBIC)
# cr: @AkarinVS
clip = core.fmtc.resample(
clip, scale=0.5,
kernel="impulse", impulse=[-0.1875, 1.375, -0.1875],
kovrspl=2
)
return clip

related #32

WolframRhodium added a commit that referenced this issue Mar 26, 2023
WolframRhodium added a commit that referenced this issue Mar 26, 2023
@hooke007
Copy link
Contributor Author

@WolframRhodium another similar issue

Snipaste_2023-04-14_00-16-53

@WolframRhodium
Copy link
Contributor

Thanks!

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

2 participants