Giter Site home page Giter Site logo

Comments (13)

githubharald avatar githubharald commented on July 20, 2024 1

thanks for sharing the results of your experiments.
I'll like to keep the model as simple and minimalistic as possible, but I'll link to this issue from the "Improve accuracy" section such that others can benefit from your findings.

from simplehtr.

Chazzz avatar Chazzz commented on July 20, 2024 1

Expanding the layers a bit more, I hit a top word accuracy of 78% using layer depth/width values similar to VGG16 but with batch normalization. Based off my other hyperparameter runs, increasing model size further than that won't meaningfully impact accuracy without a resnet-like approach (obviously outside the scope of this project).

from simplehtr.

Chazzz avatar Chazzz commented on July 20, 2024 1

Nice article btw. My results show that even with more layers the model only overfits by about 5% (even with data augmentation off!), and accuracy takes about a 1% hit when turning data augmentation off. If anything the model insufficiently overfits (by not overfitting on train it effectively underfits on test). He et al., 2015 demonstrated that increasing the number of layers is insufficient to guarantee overfit, and I would expect their results to apply to SimpleHTR as well.

from simplehtr.

Chazzz avatar Chazzz commented on July 20, 2024 1

@jevinruv Let me check, it should be possible.

from simplehtr.

Arideno avatar Arideno commented on July 20, 2024

Oh, well done. Thank you. And I have one question. How do you print this plot above?

from simplehtr.

Chazzz avatar Chazzz commented on July 20, 2024

Tensorboard plus a bunch of hooks which aren't committed anywhere.

from simplehtr.

githubharald avatar githubharald commented on July 20, 2024

When increasing the model size, at some point the model is able to perfectly learn the training data without improving validation accuracy, i.e. it overfits. Therefore you could try to make the task a bit harder while training by using data augmentation. At the moment, the model is very sensitive to small translations (see this article) [1]. By adding random translations, validation accuracy should get better.

[1] However, this behaviour improved since you uploaded the new pretrained model.

from simplehtr.

RajPratim21 avatar RajPratim21 commented on July 20, 2024

@Chazzz can you kindly let me know of a rough idea of how much time it took you to train the system with your system specific details. I am planning to apply a range of image augmentation like translation, adding Gaussian noise, Random cropping and etc to make the model more robust.

from simplehtr.

Chazzz avatar Chazzz commented on July 20, 2024

Hi @RajPratim21 I trained the above on a GTX 980 Ti, and as shown in the graph in my initial post, training would take between 40 mins to 80 mins. LMK if there are other system details which are of interest.

from simplehtr.

jevinruv avatar jevinruv commented on July 20, 2024

Tensorboard plus a bunch of hooks which aren't committed anywhere.

possible to share the code for the tensorboard integration? thanks!

from simplehtr.

jevinruv avatar jevinruv commented on July 20, 2024

@jevinruv Let me check, it should be possible.

Thank you, looking forward for it!

from simplehtr.

Chazzz avatar Chazzz commented on July 20, 2024

@jevinruv https://github.com/Chazzz/SimpleHTR-experimental

from simplehtr.

jevinruv avatar jevinruv commented on July 20, 2024

@jevinruv https://github.com/Chazzz/SimpleHTR-experimental
Thank you !

from simplehtr.

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.