GithubHelp home page GithubHelp logo

prec@1 prec@3 about two-stream-pytorch HOT 3 CLOSED

bryanyzhu avatar bryanyzhu commented on July 22, 2024
prec@1 prec@3

from two-stream-pytorch.

Comments (3)

bryanyzhu avatar bryanyzhu commented on July 22, 2024

Prec@3 means as long as one of your top 3 predictions is correct, your prediction is correct. It is a loose metric, so it should be higher than Prec@1. This makes sense.

For your problem, the most common explanation would be overfitting. How large is your own dataset? For example, how many classes, how many videos for each class, etc. As you should know, resnet152 can overfit UCF101 (UCF101 has 101 classes, each class has more than 100 videos). So if your dataset is smaller than UCF101, overfitting should be the reason. You can try different things, like choosing a smaller network, early stopping, turn off BN, add more data augmentations etc.

There is also another possibility, which is the domain similarity. Maybe your training data and validation data look very different, so that your model can't generalize.

In general, validation accuracy will be lower than training accuracy, this is expected. Take UCF101 as an example, the training accuracy could be 90+, the validation accuracy is 80+. There is a 10% gap there as well. But again, since datasets are different, there is no direct comparison can be made. Hope this helps.

from two-stream-pytorch.

Augus-smile avatar Augus-smile commented on July 22, 2024

Thank you for your answer. My dataset is similar to the UCF101 dataset. There are 100 classes, each with 250 videos. I think it should be the reason for overfitting, I will adopt your suggestion and try it. Thank you very much!

from two-stream-pytorch.

bryanyzhu avatar bryanyzhu commented on July 22, 2024

No problem at all, good luck with your experiments. Close the issue for now.

from two-stream-pytorch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.