czczup / captcha-recognition Goto Github PK
View Code? Open in Web Editor NEW基于深度学习和TensorFlow的英文和汉字验证码识别
基于深度学习和TensorFlow的英文和汉字验证码识别
模型还没训练完,在五万step左右,运行test后正确率是0,为什么啊,正常吗
C:\Users\86182\Desktop\Captcha-Recognition-master\venv\Scripts\python.exe C:\Users\86182\Desktop\Captcha-Recognition-master\level1\generate_tfrecord.py
2024-04-18 16:40:44.886591: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0
.
2024-04-18 16:40:46.200939: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0
.
Traceback (most recent call last):
File "C:\Users\86182\Desktop\Captcha-Recognition-master\level1\generate_tfrecord.py", line 89, in
_convert_dataset('train', training_filenames, class_names_to_ids, conf.TFRECORD_PATH)
File "C:\Users\86182\Desktop\Captcha-Recognition-master\level1\generate_tfrecord.py", line 62, in _convert_dataset
tfrecord_writer = tf.python_io.TFRecordWriter(output_filename)
^^^^^^^^^^^^
AttributeError: module 'tensorflow' has no attribute 'python_io'
请问楼主训练多少步
请问下我的第二类第三类模型为啥训练了两三天还没训练完
level2的例子中,我想用ckpt文件生成pb模型,但是需要指定输出名字。我是用ArgMax显示不存在。 使用FC2/wx_plus_b结果好像对不上。
[ WARN:[email protected]] global loadsave.cpp:248 cv::findDecoder imread_('./image/train/0000.jpg'): can't open/read file: check file path/integrity
Process Process-1:
Traceback (most recent call last):
File "C:\Program Files\Python312\Lib\multiprocessing\process.py", line 314, in _bootstrap
self.run()
File "C:\Program Files\Python312\Lib\multiprocessing\process.py", line 108, in run
self._target(*self._args, **self.kwargs)
File "C:\Users\86182\Desktop\Captcha-Recognition-master\level1\denoise_opencv.py", line 134, in remove_batch
remove_noise(i)
File "C:\Users\86182\Desktop\Captcha-Recognition-master\level1\denoise_opencv.py", line 116, in remove_noise
image = RGB_clean(image)
^^^^^^^^^^^^^^^^
File "C:\Users\86182\Desktop\Captcha-Recognition-master\level1\denoise_opencv.py", line 31, in RGB_clean
B, G, R = [int(i) for i in get_threshold(image)]
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\86182\Desktop\Captcha-Recognition-master\level1\denoise_opencv.py", line 17, in get_threshold
pixels = np.array([image[y-1, x-1], image[y-1, x], image[y-1, x+1],
~~~~~^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
[ WARN:[email protected]] global loadsave.cpp:248 cv::findDecoder imread('./image/train/2000.jpg'): can't open/read file: check file path/integrity
Process Process-2:
Traceback (most recent call last):
File "C:\Program Files\Python312\Lib\multiprocessing\process.py", line 314, in _bootstrap
self.run()
File "C:\Program Files\Python312\Lib\multiprocessing\process.py", line 108, in run
self._target(*self._args, **self.kwargs)
File "C:\Users\86182\Desktop\Captcha-Recognition-master\level1\denoise_opencv.py", line 134, in remove_batch
remove_noise(i)
File "C:\Users\86182\Desktop\Captcha-Recognition-master\level1\denoise_opencv.py", line 116, in remove_noise
image = RGB_clean(image)
^^^^^^^^^^^^^^^^
File "C:\Users\86182\Desktop\Captcha-Recognition-master\level1\denoise_opencv.py", line 31, in RGB_clean
B, G, R = [int(i) for i in get_threshold(image)]
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\86182\Desktop\Captcha-Recognition-master\level1\denoise_opencv.py", line 17, in get_threshold
pixels = np.array([image[y-1, x-1], image[y-1, x], image[y-1, x+1],
~~~~~^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
[ WARN:[email protected]] global loadsave.cpp:248 cv::findDecoder imread('./image/train/4000.jpg'): can't open/read file: check file path/integrity
Process Process-3:
Traceback (most recent call last):
File "C:\Program Files\Python312\Lib\multiprocessing\process.py", line 314, in _bootstrap
self.run()
File "C:\Program Files\Python312\Lib\multiprocessing\process.py", line 108, in run
self._target(*self._args, **self.kwargs)
File "C:\Users\86182\Desktop\Captcha-Recognition-master\level1\denoise_opencv.py", line 134, in remove_batch
remove_noise(i)
File "C:\Users\86182\Desktop\Captcha-Recognition-master\level1\denoise_opencv.py", line 116, in remove_noise
image = RGB_clean(image)
^^^^^^^^^^^^^^^^
File "C:\Users\86182\Desktop\Captcha-Recognition-master\level1\denoise_opencv.py", line 31, in RGB_clean
B, G, R = [int(i) for i in get_threshold(image)]
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\86182\Desktop\Captcha-Recognition-master\level1\denoise_opencv.py", line 17, in get_threshold
pixels = np.array([image[y-1, x-1], image[y-1, x], image[y-1, x+1],
~~~~~^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
[ WARN:[email protected]] global loadsave.cpp:248 cv::findDecoder imread('./image/train/6000.jpg'): can't open/read file: check file path/integrity
Process Process-4:
Traceback (most recent call last):
File "C:\Program Files\Python312\Lib\multiprocessing\process.py", line 314, in _bootstrap
self.run()
File "C:\Program Files\Python312\Lib\multiprocessing\process.py", line 108, in run
self._target(*self._args, **self.kwargs)
File "C:\Users\86182\Desktop\Captcha-Recognition-master\level1\denoise_opencv.py", line 134, in remove_batch
remove_noise(i)
File "C:\Users\86182\Desktop\Captcha-Recognition-master\level1\denoise_opencv.py", line 116, in remove_noise
image = RGB_clean(image)
^^^^^^^^^^^^^^^^
File "C:\Users\86182\Desktop\Captcha-Recognition-master\level1\denoise_opencv.py", line 31, in RGB_clean
B, G, R = [int(i) for i in get_threshold(image)]
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\86182\Desktop\Captcha-Recognition-master\level1\denoise_opencv.py", line 17, in get_threshold
pixels = np.array([image[y-1, x-1], image[y-1, x], image[y-1, x+1],
~~~~~^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
[ WARN:[email protected]] global loadsave.cpp:248 cv::findDecoder imread('./image/train/8000.jpg'): can't open/read file: check file path/integrity
Process Process-5:
Traceback (most recent call last):
File "C:\Program Files\Python312\Lib\multiprocessing\process.py", line 314, in _bootstrap
self.run()
File "C:\Program Files\Python312\Lib\multiprocessing\process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\86182\Desktop\Captcha-Recognition-master\level1\denoise_opencv.py", line 134, in remove_batch
remove_noise(i)
File "C:\Users\86182\Desktop\Captcha-Recognition-master\level1\denoise_opencv.py", line 116, in remove_noise
image = RGB_clean(image)
^^^^^^^^^^^^^^^^
File "C:\Users\86182\Desktop\Captcha-Recognition-master\level1\denoise_opencv.py", line 31, in RGB_clean
B, G, R = [int(i) for i in get_threshold(image)]
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\86182\Desktop\Captcha-Recognition-master\level1\denoise_opencv.py", line 17, in get_threshold
pixels = np.array([image[y-1, x-1], image[y-1, x], image[y-1, x+1],
~~~~~^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
The passed save_path is not a valid checkpoint: ./model/model_level3.ckpt-800
运行test.py报错
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.