1. 程式人生 > >是要成為海賊王的男人——日記4.21

是要成為海賊王的男人——日記4.21

A.M:

學習目標:

研究一手CRNN,昨天讀了CRNN的論文
https://blog.csdn.net/quincuntial/article/details/77679463),今天 主要皮一手chinese-ocr的原始碼,它的效果確實很好玩:
CRNN效果一(基於影象的序列識別):
這裡寫圖片描述

專案地址: https://github.com/JiHanFly/chinese-ocr

專案目錄結構:
這裡寫圖片描述

原始碼閱讀順序:
demo.py –> utils.py–>/models/crnn.py

CRNN結構:完全符合論文中的CRNN結構
這裡寫圖片描述

學習過程:

python enumerate用法總結 :

https://blog.csdn.net/churximi/article/details/51648388
(原來當同時需要遍歷 字串、字典的鍵、值時,使用enumerate會更方便)
Python 中的註釋規範 :https://www.cnblogs.com/Rubick7/p/7755337.html (突然興起,決定稍微遵守下)
python的 initstrnewcall 幾種方法總結 :https://www.cnblogs.com/qlshine/p/6049457.html (之前自己寫程式碼,很不規範,也不怎麼寫類,所以、、、、、、、)
斷言assert的用法:https://blog.csdn.net/humanking7/article/details/45950781

Python format 格式化函式:http://www.runoob.com/python/att-string-format.html
複習哈卷積層後尺寸計算公式
這裡寫圖片描述
CTCLoss : https://www.zhihu.com/search?type=content&q=CTCLoss ()

將要學習:

tensor基本概念、方法走一波,注意維度這個概念
http://pytorch-cn.readthedocs.io/zh/latest/package_references/Tensor/