githubharald / SimpleHTR

Handwritten Text Recognition (HTR) system implemented with TensorFlow.
https://towardsdatascience.com/2326a3487cd5
MIT License
1.99k stars 893 forks source link

where is json #172

Closed rengxumiaoshou closed 8 months ago

rengxumiaoshou commented 8 months ago

你好,我想知道JSON文件在哪里,我该如何得到? I can't find where is the json

fn_char_list = 'E:\edge下载\SimpleHTR-master\SimpleHTR-master\model\wordCharList.txt' **fn_summary = '../model/summary.json'** fn_corpus = 'E:\edge下载\SimpleHTR-master\SimpleHTR-master\data\corpus.txt'

githubharald commented 8 months ago

please read the README

rengxumiaoshou commented 8 months ago

可能是我之前没有表述清楚

屏幕截图 2024-03-15 144616 屏幕截图 2024-03-15 144616
rengxumiaoshou commented 8 months ago

我已经解压并且导入了,但是他仍然提示模组有问题

githubharald commented 8 months ago

if you want to ask me something, please use English, or German, everything else I do not understand ;-)

githubharald commented 8 months ago

and most likely, you did not download the model weights

rengxumiaoshou commented 8 months ago

Sorry, I naively thought that you also had plug-ins for language translation, and then I would communicate in English. I downloaded and unzipped the word-model and line-model from your readme file as instructed and put it in the model folder as instructed. But the error seems to be saying I didn't save it, you can see the details in the previous image. In my case, I downloaded the pre-trained model from the link provided and placed the unzipped file into the model directory. This process is essentially to get and load the model weights, can you explain it for me, thank you very much. (This is machine translation. Some honorifics I know are not translated. In fact, I respect you very much and hope you could figive me.)

githubharald commented 8 months ago

ok, thanks for switching to English, now I understand your problem. I see you unzipped both models to the model/ directory. Please only put one model their, you can choose which one you want to use. So if you want to use the word model, you put all the contents under model/, so that the json and all those files are in model/.

rengxumiaoshou commented 8 months ago

thank you very much!!!!

rengxumiaoshou commented 7 months ago

Hello, I'm sorry to disturb you again. How to make a front-end webpage for this project, which only needs to be able to open locally. Could you please teach me?