Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Works perfectly on image input but inaccurate on video input #112

Open
ghost opened this issue Apr 29, 2022 · 1 comment
Open

Works perfectly on image input but inaccurate on video input #112

ghost opened this issue Apr 29, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Apr 29, 2022

Describe the bug
Very accurate on input images but not so much on video inputs

Code and Data
image
image

Code is identical to the Detecto Colab demo

Environment:
Windows 7 but I'm on Colab
torch.version = 1.11.0+cu113
torchvision.version = 0.12.0+cu113

Additional context
It's kind of weird since I've tried several Coca-Cola images aside from what I uploaded and it was perfect. It just doesn't recognize it when the input is a video file.

Is there something wrong with the video input method?

@ghost ghost added the bug Something isn't working label Apr 29, 2022
@ghost ghost changed the title Works perfectly on image input but horrible on video input Works perfectly on image input but inaccurate on video input Apr 29, 2022
@alankbi
Copy link
Owner

alankbi commented Apr 30, 2022

There shouldn't be much of a difference between image vs. video inference, the underlying model is still the same. Maybe try diversifying your set of training images to include more far away or varied shots? From the image above it seems like those images are cleaner (less background, no shadows, etc.) than the video footage, which could lead to the issue you're having.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant