ankandrew / fast-plate-ocr

Lightweight & fast OCR models for license plate text recognition.
https://ankandrew.github.io/fast-plate-ocr
MIT License
73 stars 16 forks source link

BUS ERROR :- Unable to train with colombian plates #21

Open victorothon opened 3 days ago

victorothon commented 3 days ago

Hi ankandrew, let me tell you great work, just happen to find your project and im trying to train it with colombian licence plates, but i could not get around this issue, thank you in advance with any help you can give me on this matter. I'm looking forward to be able to train the model successfully and share it!!!

KERAS_BACKEND=tensorflow fast_plate_ocr train --annotations ./col_train_dataset/train_anotaciones.csv \ --val-annotations ./col_train_dataset/valid_anotaciones.csv \ --config-file config.yaml \ --batch-size 128 \ --epochs 750 \ --dense \ --early-stopping-patience 100 \ --reduce-lr-patience 50

Screenshot 2024-10-19 at 9 22 19 PM

ankandrew commented 3 days ago

Hi! Can you share more about the environment in which you are running this? Did you try with a different framework other than TF?

victorothon commented 3 days ago

Hi!, thank you very much for the quick response, no just with tensorflow for now, I will try the other two frameworks that you suggested, I'm running all this in a M3 Mac, followed your instructions and install it with: pip install fast_plate_ocr pip install fast_plate_ocr[train] the config.yaml is in the root of the project where the running script is as well, and shell is zsh, i'll let you know how it goes with the other frameworks

ankandrew commented 3 days ago

Mmm it might have happened to me before, but I'm not 100% sure. I run inference (which I provide benchmarks) on my Mac, but haven't been training on Mac lately. I'd try with different frameworks or follow this guide, which seems to be similar to this issue https://forums.developer.apple.com/forums/thread/717831?answerId=733139022#733139022.