深度学习执行main.py出现错误
拂晓序幕 2019-03-29 11:56:10 https://blog.csdn.net/accepthjp/article/details/73875108
https://github.com/hjptriplebee/Chinese_poem_generator
想执行这个LSTM神经网络机器写诗项目但是出了错,求帮助。
我刚开始学照着网上帖子安装了环境Windows,python3.6,TensorFlow1.8-gpu。
执行main.py出错:
Traceback (most recent call last):
File "main.py", line 22, in
trainData = data.POEMS(trainPoems)
File "D:\study\1.毕业设计\Chinese_poem_generator-master\data.py", line 17, in init
for line in file: #every line is a poem
UnicodeDecodeError: 'gbk' codec can't decode byte 0xaa in position 2: illegal multibyte sequence
删除poetrySong里的模型,python main.py -train但又出错了
usage: main.py [-h] [-m {train,test,head}]
main.py: error: unrecognized arguments: -train
我感觉我也不懂怎么运行,又不知道该怎么办,请求帮助,谢谢啦。