|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
Internal Server Error: /upload_handle/
Traceback (most recent call last):
File "D:\Anaconda\lib\site-packages\django\core\handlers\exception.py", line 41, in inner
response = get_response(request)
File "D:\Anaconda\lib\site-packages\django\core\handlers\base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "D:\Anaconda\lib\site-packages\django\core\handlers\base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "D:\pycharm\djangocode\project6\myApp\views.py", line 29, in upload_handle
str1 = demo.recognizeOneImage(path)
File "D:\pycharm\djangocode\project6\myApp\python_LPR\demo.py", line 70, in recognizeOneImage
model = pr.LPR("model/cascade.xml", "model/model12.h5", "model/ocr_plate_all_gru.h5")
File "D:\pycharm\djangocode\project6\myApp\python_LPR\lpr\LPRLite.py", line 24, in __init__
self.modelFineMapping.load_weights(model_finemapping)
File "D:\Anaconda\lib\site-packages\keras\engine\network.py", line 1157, in load_weights
with h5py.File(filepath, mode='r') as f:
File "D:\Anaconda\lib\site-packages\h5py\_hl\files.py", line 272, in __init__
fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr)
File "D:\Anaconda\lib\site-packages\h5py\_hl\files.py", line 92, in make_fid
fid = h5f.open(name, flags, fapl=fapl)
File "h5py\_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (C:\Minonda\conda-bld\h5py_1482647201869\work\h5p
y\_objects.c:2866)
File "h5py\_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (C:\Minonda\conda-bld\h5py_1482647201869\work\h5p
y\_objects.c:2824)
File "h5py\h5f.pyx", line 76, in h5py.h5f.open (C:\Minonda\conda-bld\h5py_1482647201869\work\h5py\h5f.c:2112)
OSError: Unable to open file (Unable to open file: name = 'model/model12.h5', errno = 2, error message = 'no such file or
directory', flags = 0, o_flags = 0)
[21/Mar/2020 21:25:25] "POST /upload_handle/ HTTP/1.1" 500 90819
|
|