Skip to content
This repository has been archived by the owner on Jun 11, 2020. It is now read-only.

Test shows nothing and date detection #43

Closed
alexng88 opened this issue Apr 30, 2019 · 6 comments
Closed

Test shows nothing and date detection #43

alexng88 opened this issue Apr 30, 2019 · 6 comments

Comments

@alexng88
Copy link

Hello,
I have 2 questions:

  1. when I run the command
    python run.py -ex ../samples/ -m ./save/ --test --restore it only shows the following pic...with 0. what that means?
  2. Can I use crnn to detect the date like the one I attached?
    Thanks
    num4

error

@alexng88
Copy link
Author

alexng88 commented May 5, 2019

I retrained the model and use textgenerator, with loss 0.2.
then I try to recognize the image
reault

the result is totally different, any suggestions?

@Belval
Copy link
Owner

Belval commented May 6, 2019

  1. It's a bug when there aren't enough sample in the batch, there's a related issue.
  2. Yes, but you will have to change the data_manager.py file to read the labels from a file as slashes cannot be in filenames.
  3. How long did you train, how big was your training set?

@alexng88
Copy link
Author

alexng88 commented May 7, 2019

date test:
roi9
Recognized result: 2610m8

041018
Recognized result: 0amom8

d

Recognized result: 0310tm8

I used your pre-trained weight.
I dont need the slash and I just need to number as accurate as possible, any clues?

@Belval
Copy link
Owner

Belval commented May 13, 2019

If you only read dates, you can reduce the number of chars so you won't end up training letters when they can't be found in your images.

As for the slashes, if you don't want the model to predict them you can just remove them from the labels.

EDIT: Just to be clear, for the above to work you'd need to retrain the model.

@alexng88
Copy link
Author

Hello, thanks for your reply.
I have changed another way to detect (use object detection methods)
I will re-try again your method soon.

@Belval
Copy link
Owner

Belval commented Sep 1, 2019

Closing for inactivity.

@Belval Belval closed this as completed Sep 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants