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

NoneType object has no attribute write #34

Open
hooke007 opened this issue Feb 16, 2025 · 2 comments
Open

NoneType object has no attribute write #34

hooke007 opened this issue Feb 16, 2025 · 2 comments

Comments

@hooke007
Copy link

hooke007 commented Feb 16, 2025

这个错误毫无头绪,复现在mpv的vs接口中

import vapoursynth as vs
from vapoursynth import core

from ccrestoration import AutoModel, BaseModelInterface, ConfigType

model: BaseModelInterface = AutoModel.from_pretrained(
    pretrained_model_name=ConfigType.RealESRGAN_AnimeJaNai_HD_V3_Compact_2x,
    tile=None
)

clip = video_in
clip = core.resize.Bilinear(clip=clip, matrix_in_s="709", format=vs.RGBH)
clip = model.inference_video(clip)
clip = core.resize.Bilinear(clip=clip, matrix_s="709", format=vs.YUV420P8)
clip.set_output()
@Tohrusky
Copy link
Member

模型没自动下载下来 看看代理连上没
#16

@hooke007
Copy link
Author

手动下了模型后,程序直接崩溃掉,甚至抓不到log

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