这是indexloc提供的服务,不要输入任何密码
Skip to content

Passing argument auto_download=True results in error #75

@F0903

Description

@F0903

Hello!

The following error has started to occur when running my vapoursynth script with no models downloaded and the auto_download paramter set to True:

[   4.911][f][vapoursynth] Script evaluation failed:
[   4.911][f][vapoursynth] Python exception: 'NoneType' object has no attribute 'write'
[   4.911][f][vapoursynth] 
[   4.911][f][vapoursynth] Traceback (most recent call last):
[   4.911][f][vapoursynth]   File "src\\cython\\vapoursynth.pyx", line 3387, in vapoursynth._vpy_evaluate
[   4.912][f][vapoursynth]   File "src\\cython\\vapoursynth.pyx", line 3388, in vapoursynth._vpy_evaluate
[   4.912][f][vapoursynth]   File "C:\Program Files\mpv\portable_config\rife.vpy", line 95, in <module>
[   4.912][f][vapoursynth]     clip = rife(
[   4.912][f][vapoursynth]            ^^^^^
[   4.912][f][vapoursynth]   File "contextlib.py", line 81, in inner
[   4.912][f][vapoursynth]   File "F:\mpv-enhanced\Lib\site-packages\torch\utils\_contextlib.py", line 116, in decorate_context
[   4.912][f][vapoursynth]     return func(*args, **kwargs)
[   4.912][f][vapoursynth]            ^^^^^^^^^^^^^^^^^^^^^
[   4.912][f][vapoursynth]   File "F:\mpv-enhanced\Lib\site-packages\vsrife\__init__.py", line 200, in rife
[   4.912][f][vapoursynth]     download_model(f"https://github.com/HolyWu/vs-rife/releases/download/model/flownet_v{model}.pkl")
[   4.912][f][vapoursynth]   File "F:\mpv-enhanced\Lib\site-packages\vsrife\__main__.py", line 11, in download_model
[   4.912][f][vapoursynth]     with tqdm(
[   4.912][f][vapoursynth]          ^^^^^
[   4.912][f][vapoursynth]   File "F:\mpv-enhanced\Lib\site-packages\tqdm\std.py", line 1098, in __init__
[   4.912][f][vapoursynth]     self.refresh(lock_args=self.lock_args)
[   4.912][f][vapoursynth]   File "F:\mpv-enhanced\Lib\site-packages\tqdm\std.py", line 1347, in refresh
[   4.912][f][vapoursynth]     self.display()
[   4.912][f][vapoursynth]   File "F:\mpv-enhanced\Lib\site-packages\tqdm\std.py", line 1495, in display
[   4.912][f][vapoursynth]     self.sp(self.__str__() if msg is None else msg)
[   4.912][f][vapoursynth]   File "F:\mpv-enhanced\Lib\site-packages\tqdm\std.py", line 459, in print_status
[   4.912][f][vapoursynth]     fp_write('\r' + s + (' ' * max(last_len[0] - len_s, 0)))
[   4.912][f][vapoursynth]   File "F:\mpv-enhanced\Lib\site-packages\tqdm\std.py", line 452, in fp_write
[   4.912][f][vapoursynth]     fp.write(str(s))
[   4.912][f][vapoursynth]     ^^^^^^^^
[   4.912][f][vapoursynth]   File "F:\mpv-enhanced\Lib\site-packages\tqdm\utils.py", line 140, in __getattr__
[   4.912][f][vapoursynth]     return getattr(self._wrapped, name)
[   4.912][f][vapoursynth]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[   4.912][f][vapoursynth] AttributeError: 'NoneType' object has no attribute 'write'

It would appear that rife isn't able to download the model for some reason.

I should note that running python -m vsrife works perfectly fine, it is just the auto-download that is not working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions