Fannovel16 / ComfyUI-Frame-Interpolation

A custom node set for Video Frame Interpolation in ComfyUI.
MIT License
355 stars 34 forks source link

After pyTorch Update i received this error on node FILM VFI #66

Open dcastleproject opened 3 weeks ago

dcastleproject commented 3 weeks ago
!!! Exception during processing!!! The following operation failed in the TorchScript interpreter.
Traceback of TorchScript, serialized code (most recent call last):
  File "code/__torch__/util.py", line 30, in forward
    features1 = pyramid1[_9]
    features2 = pyramid2[_9]
    _10 = torch.cat([features1, features2], 1)
          ~~~~~~~~~ <--- HERE
    _11 = torch.append(_7, _10)
  return _7

Traceback of TorchScript, original code (most recent call last):
  File "C:\Users\Danylo\PycharmProjects\frame-interpolation-pytorch\util.py", line 143, in forward
    result = []
    for features1, features2 in zip(pyramid1, pyramid2):
        result.append(torch.cat([features1, features2], dim=1))
                      ~~~~~~~~~ <--- HERE
    return result
RuntimeError: Allocation on device

Traceback (most recent call last):
  File "C:\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute
    output_data, output_ui = get_output_data(obj, input_data_all)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI_windows_portable\ComfyUI\execution.py", line 81, in get_output_data
    return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list
    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Frame-Interpolation\vfi_models\film\__init__.py", line 94, in vfi
    relust = inference(model, frame_0, frame_1, multipliers[frame_itr] - 1)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Frame-Interpolation\vfi_models\film\__init__.py", line 36, in inference
    prediction = model(x0, x1, dt)
                 ^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1532, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1541, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: The following operation failed in the TorchScript interpreter.
Traceback of TorchScript, serialized code (most recent call last):
  File "code/__torch__/util.py", line 30, in forward
    features1 = pyramid1[_9]
    features2 = pyramid2[_9]
    _10 = torch.cat([features1, features2], 1)
          ~~~~~~~~~ <--- HERE
    _11 = torch.append(_7, _10)
  return _7

Traceback of TorchScript, original code (most recent call last):
  File "C:\Users\Danylo\PycharmProjects\frame-interpolation-pytorch\util.py", line 143, in forward
    result = []
    for features1, features2 in zip(pyramid1, pyramid2):
        result.append(torch.cat([features1, features2], dim=1))
                      ~~~~~~~~~ <--- HERE
    return result
RuntimeError: Allocation on device
Pedroman1 commented 6 days ago

me too

dcastleproject commented 5 days ago

me too

I managed to solve it, if you are using the VHS node to load the video, force the video size to its value. It worked for me and I no longer got the error