ria-com / nomeroff-net

Nomeroff Net. Automatic numberplate recognition system.
GNU General Public License v3.0
457 stars 159 forks source link

when change name of folder nomer_net code not work #265

Closed abdalkaderhajjouz closed 1 year ago

abdalkaderhajjouz commented 1 year ago

when change name of folder nomeroff_net code not work

there are any solution although I replace all references to the new name

paulpham1407 commented 1 year ago

Checkpoint model, you must pretrain and checkpoint yoủ model

dimabendera commented 1 year ago

In future releases we will update models where only weights will be saved. Now you can just resave the models before renaming the folder

from nomeroff_net import pipeline

number_plate_detection_and_reading = pipeline("number_plate_detection_and_reading", 
                                              image_loader="opencv")
number_plate_detection_and_reading.number_plate_classification.detector.save(
    number_plate_detection_and_reading.number_plate_classification.detector.load_meta())
for det in number_plate_detection_and_reading.number_plate_text_reading.detector.detectors:
    det.save(det.path_to_model)

After that, you can rename the folder, everything should work.

abdalkaderhajjouz commented 1 year ago

mot work

Model summary: 213 layers, 7012822 parameters, 0 gradients Adding AutoShape... Traceback (most recent call last): File "C:\Users\abdul\PycharmProjects\ssssss - Copy\tttt.py", line 6, in number_plate_detection_and_reading.number_plate_classification.detector.load_meta()) AttributeError: 'OptionsDetector' object has no attribute 'load_meta'

dimabendera commented 1 year ago

Try to update repo with git pull

abdalkaderhajjouz commented 1 year ago

is there are another solution? not work