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

Completed Model Development #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Completed Model Development #3

wants to merge 2 commits into from

Conversation

sshivaditya2019
Copy link
Member

The tflite still does not support the Greedy CTC Decoder. Working on an alternative. The onnx version works on android using onnx-runtime-android(aar)

@sshivaditya2019 sshivaditya2019 requested a review from a team as a code owner June 12, 2022 06:39
@sshivaditya2019 sshivaditya2019 self-assigned this Jun 12, 2022
## Training Steps

1. Clone the repository
2. Create a data, logs and models directory in the root
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sshivaditya2019 Instead of explaining this in the documentation, can you create the directories data, logs and models, and remove this step from the README? Just to make it as easy as possible to reproduce the steps.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok will add the same

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sshivaditya2019 Or generate these folders using Python code. That would probably be the most robust solution?


1. Clone the repository
2. Create a data, logs and models directory in the root
3. Create a sub directory named nummodel inside the models and logs directory
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sshivaditya2019 Same comment as above.

Copy link
Member

@nya-elimu nya-elimu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sshivaditya2019 I'm getting this error message when running train.py:

Data Prepping
Data Shuffled
Data Generation completed
Total training Samples:40000
Toal validation samples: 5000
Total test samples: 5000
Traceback (most recent call last):
  File "src/nummodel/train.py", line 134, in <module>
    main()
  File "src/nummodel/train.py", line 35, in main
    train_img_paths,train_labels,validation_img_paths,validation_labels,test_img_paths,test_labels = get_lab()
  File "src/nummodel/data.py", line 100, in get_lab
    train_img_paths, train_labels = get_image_paths_and_labels(train_samples)
  File "src/nummodel/data.py", line 94, in get_image_paths_and_labels
    img.save(pa, "PNG")
  File "venv/lib/python3.8/site-packages/PIL/Image.py", line 2297, in save
    fp = builtins.open(filename, "w+b")
FileNotFoundError: [Errno 2] No such file or directory: 'data/data/nums/10060_6595.png'

Here is how to reproduce:

pip install tensorflow
pip install matplotlib
pip install tf2onnx
mkdir data
python3 src/nummodel/train.py

## Training Steps

1. Clone the repository
2. Create a data, logs and models directory in the root
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sshivaditya2019 Or generate these folders using Python code. That would probably be the most robust solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants