HolyWu / vs-rife

RIFE function for VapourSynth
MIT License
103 stars 8 forks source link

Getting Error when interpolating #10

Closed banjaminicc closed 2 years ago

banjaminicc commented 2 years ago

    model.load_model(os.path.join(os.path.dirname(__file__), model_dir), -1)
  File "C:\Users\\AppData\Local\Programs\Python\Python39\lib\site-packages\vsrife\RIFE_HDv2.py", line 164, in load_model
    convert(torch.load('{}/flownet.pkl'.format(path), map_location=self.torch_device)))
  File "C:\Users\\AppData\Local\Programs\Python\Python39\lib\site-packages\torch\serialization.py", line 608, in load
    return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
  File "C:\Users\\AppData\Local\Programs\Python\Python39\lib\site-packages\torch\serialization.py", line 777, in _legacy_load
    magic_number = pickle_module.load(f, **pickle_load_args)
EOFError: Ran out of input  ```

Source file is a 720p 30fps mp4, loaded into VS through Lsmash source, set the format to RGBS. Nothing else
System specs are R7 3700x, 32GB of ram and a RTX 3060
HolyWu commented 2 years ago

Which version are you using? The latest version does not have RIFE_HDv2.py.

banjaminicc commented 2 years ago

Which version are you using? The latest version does not have RIFE_HDv2.py.

This is version 1.3.0 as I would like to run the 2.3 model Is this a simple bug that I can fix or something that would require extra effort on your end?

HolyWu commented 2 years ago

You need to run python -m vsrife first. I forget to add a check in the old versions to make sure the model files have been downloaded.

banjaminicc commented 2 years ago

You need to run python -m vsrife first. I forget to add a check in the old versions to make sure the model files have been downloaded.

Thanks a lot it works now!