[Python] TRACKNET: Tracking a Shuttlecock in real-time with a webcam using tracknet and...

Discussão em 'Python' iniciado por Stack, Março 29, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to develop a badminton live tracking and scoring system for a project. Will i be able to use tracknet to get the live data.

    I am using https://github.com/qaz812345/TrackNetV3 this model It works fine to detect video but when I try to run a code with live tracking that I got from chatgpt, it shows error:

    RuntimeError: Error(s) in loading state_dict for TrackNet:

    size mismatch for down_block_1.conv_1.conv.weight: copying a param with shape torch.Size([64, 27, 3, 3]) from checkpoint, the shape in current model is torch.Size([64, 24, 3, 3]).


    Also another error with seq leng

    If it is not possible, is there any other way? Will it work with setting a buffer to load some live frames and then process it in an ongoing cycle?

    Continue reading...

Compartilhe esta Página