GithubHelp home page GithubHelp logo

Comments (6)

Holmeyoung avatar Holmeyoung commented on June 16, 2024 1

Hi, it doesn’t matter.

  1. You really need more data, maybe 100000 sample for 1000 classes.

  2. But even 100 samples should print loss either. Change the batchSize in params.py to 1 and see what will happen. If there is still nothing printed, it’s not the sample problem.

from crnn-pytorch.

Holmeyoung avatar Holmeyoung commented on June 16, 2024

Hi, check the file size of your lmdb file. I guess you didn’t access the image successfully. The txt file should looks like

absolute/path/to/your/image/1.jpg
المفضل

If there are still problems, you can tell me.

from crnn-pytorch.

niddal-imam avatar niddal-imam commented on June 16, 2024

I checked the lmdv files and they are 100 KB and 9 KB for training and 70 KB and 8 KB for val. They are small because I am using small data (100 sample). My txt files look like your example.

/Volumes/EXTERNAL/Models/crnn_pytorch-master/to_lmdb/val_images/img_almofdalh_11.jpg
المفضل

from crnn-pytorch.

Holmeyoung avatar Holmeyoung commented on June 16, 2024

Hi, check the following params in params.py

# training process
displayInterval = 100 # interval to be print the train loss
valInterval = 1000 # interval to val the model loss and accuray
saveInterval = 1000 # interval to save model
n_test_disp = 10 # number of samples to display when val the model

Look at the comment and you will know the reason is that your training sample amount didn’t reach the displayInterval valInterval...so change them smaller, for example 100%64=1 is ok for you(64 is the batch size)

from crnn-pytorch.

niddal-imam avatar niddal-imam commented on June 16, 2024

Thank you for your reply, and sorry for asking so many question. I made the changes that you suggest, but still does not print the loss. It just run for 15 - 20 mins and stop. I may need more data, right?

from crnn-pytorch.

niddal-imam avatar niddal-imam commented on June 16, 2024

I changed the batchSize, and it start printing.

Thanks

from crnn-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.