Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cann't deploy your easy122306 successfully on my PC #30

Open
iridescend opened this issue Aug 16, 2023 · 4 comments
Open

cann't deploy your easy122306 successfully on my PC #30

iridescend opened this issue Aug 16, 2023 · 4 comments

Comments

@iridescend
Copy link

I just copied your programme and downloaded your datamodes(12306.image.model.h5,model.v3.0.h5) in accordance to your README guidance, unfortunately,a scrutable problem happened after I added datamodes to the same file where the rest of programme is stored .I will share the message that indicates error from python console.

Traceback (most recent call last): File "C:\Users\XM8\Desktop\easy12306-master\easy12306-master\main.py", line 60, in <module> main(sys.argv[1]) IndexError: list index out of range

@zhaipro
Copy link
Owner

zhaipro commented Aug 16, 2023

这需要在命令行中运行,并将<img.jpg>替换成自身待识别的图片的路径,如:

python3 main.py 2.jpg

@iridescend
Copy link
Author

iridescend commented Aug 16, 2023 via email

@codeNiuMa
Copy link

codeNiuMa commented Dec 28, 2023

相似问题,2.jpg即为项目中的图片,存放在项目文件夹下了

C:\Users\admin\Desktop\easy12306-master>D:\anaconda\python.exe ./main.py ./2.jpg

WARNING:tensorflow:No training configuration found in the save file, so the model was *not* compiled. Compile it manually.
1/1 [==============================] - 0s 105ms/step
Traceback (most recent call last):
  File "C:\Users\admin\Desktop\easy12306-master\main.py", line 60, in <module>
    main(sys.argv[1])
  File "C:\Users\admin\Desktop\easy12306-master\main.py", line 34, in main
    text = texts[label]
IndexError: list index out of range

@zhaipro
Copy link
Owner

zhaipro commented Dec 29, 2023

相似问题,2.jpg即为项目中的图片,存放在项目文件夹下了

C:\Users\admin\Desktop\easy12306-master>D:\anaconda\python.exe ./main.py ./2.jpg

WARNING:tensorflow:No training configuration found in the save file, so the model was *not* compiled. Compile it manually.
1/1 [==============================] - 0s 105ms/step
Traceback (most recent call last):
  File "C:\Users\admin\Desktop\easy12306-master\main.py", line 60, in <module>
    main(sys.argv[1])
  File "C:\Users\admin\Desktop\easy12306-master\main.py", line 34, in main
    text = texts[label]
IndexError: list index out of range

可以把textslabel 打印出来看看。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants