facebookresearch / pytorchvideo

A deep learning library for video understanding research.

Home Page:https://pytorchvideo.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: forward() takes 2 positional arguments but 3 were given

soumyadbanik opened this issue · comments

In pytorchvideo/tutorials/video_detection_example while running the cell for generating the prediction I'm getting this error

    if isinstance(inputs, list):
        inputs = [inp.unsqueeze(0).to(device) for inp in inputs]
    else:
        inputs = inputs.unsqueeze(0).to(device)
    preds = video_model(inputs, inp_boxes.to(device))

Screenshot from 2022-12-14 22-25-26