You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
trainer/0 [0]: Declaration: torchcodec_ns::add_video_stream(Tensor(a!) decoder, *, int? width=None, int? height=None, int? num_threads=None, str? dimension_order=None, int? stream_index=None, str? device=None) -> ()
trainer/0 [0]:Cast error details: Unable to cast Python instance of type <class 'torch.device'> to C++ type '?' (#define PYBIND11_DETAILED_ERROR_MESSAGES or compile in debug mode for details)
trainer/0 [0]:Skipping video tensor([ 0, 0, 0, ..., 49, 48, 48], dtype=torch.uint8) due to decoding error: torchcodec_ns::add_video_stream() Expected a value of type 'Optional[str]' for argument 'device' but instead found type 'device'.
VideoDecoder(video, device=str(self.device)) fixes the issue.