etokone / license_plate_recognition Goto Github PK
View Code? Open in Web Editor NEWDetection and recognition of Russian license plates using YoloV5 and License Plate Recognition Network.
Detection and recognition of Russian license plates using YoloV5 and License Plate Recognition Network.
After docker run have error:
Downloading: "https://github.com/ultralytics/yolov5/archive/master.zip" to /home/lpr/.cache/torch/hub/master.zip
Traceback (most recent call last):
File "/home/lpr/License_Plate_Recognition/app.py", line 23, in <module>
YoloV5 = load_yolo(weights='./models/best.pt', device=device)
File "/home/lpr/License_Plate_Recognition/src/models/load_functions.py", line 8, in load_yolo
yolo = torch.hub.load('ultralytics/yolov5', 'custom', path=weights)
File "/home/lpr/.local/lib/python3.7/site-packages/torch/hub.py", line 404, in load
model = _load_local(repo_or_dir, model, *args, **kwargs)
File "/home/lpr/.local/lib/python3.7/site-packages/torch/hub.py", line 433, in _load_local
model = entry(*args, **kwargs)
File "/home/lpr/.cache/torch/hub/ultralytics_yolov5_master/hubconf.py", line 83, in custom
return _create(path, autoshape=autoshape, verbose=_verbose, device=device)
File "/home/lpr/.cache/torch/hub/ultralytics_yolov5_master/hubconf.py", line 33, in _create
from models.common import AutoShape, DetectMultiBackend
File "/home/lpr/.cache/torch/hub/ultralytics_yolov5_master/models/common.py", line 28, in <module>
from utils.dataloaders import exif_transpose, letterbox
File "/home/lpr/.cache/torch/hub/ultralytics_yolov5_master/utils/dataloaders.py", line 31, in <module>
from utils.augmentations import (Albumentations, augment_hsv, classify_albumentations, classify_transforms, copy_paste,
File "/home/lpr/.cache/torch/hub/ultralytics_yolov5_master/utils/augmentations.py", line 15, in <module>
from utils.general import LOGGER, check_version, colorstr, resample_segments, segment2box, xywhn2xyxy
File "/home/lpr/.cache/torch/hub/ultralytics_yolov5_master/utils/general.py", line 38, in <module>
from ultralytics.yolo.utils.checks import check_requirements
ModuleNotFoundError: No module named 'ultralytics'
Where can I find weights for yolo that are named "best.pt" in your code?
Also, can you share the dataset that you learned on?
Добрый день, какие наборы данных использовались для обучения сетей?
Скачал репозиторий, скопировал best-модель из докер образа и запускаю app.py из PyCharm и получаю ошибку:
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2023.2\plugins\python\helpers\pydev\pydevd.py", line 1500, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "C:\Program Files\JetBrains\PyCharm 2023.2\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "E:\Face\Projects\License_Plate_Recognition\app.py", line 25, in <module>
STNet = load_stn(cfg, model=SpatialTransformer, weights='./models/SpatialTransformer_Ep_BEST_model.ckpt', device=device)
TypeError: load_stn() got multiple values for argument 'model'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.