我将densenet_predict.py中的image_path默认进行了设置
parser.add_argument("--image_path", help="图像位置",
default='E:\Python\Recognition\dlocr\picture\1.jpg')
结果运行报了错,请问怎么办
Traceback (most recent call last):
File "E:/Python/Recognition/dlocr/densenet_predict.py", line 37, in
print('\n'.join(densenet.predict(image_path, id_to_char)[1]))
TypeError: can only join an iterable
我将densenet_predict.py中的image_path默认进行了设置 parser.add_argument("--image_path", help="图像位置", default='E:\Python\Recognition\dlocr\picture\1.jpg') 结果运行报了错,请问怎么办 Traceback (most recent call last): File "E:/Python/Recognition/dlocr/densenet_predict.py", line 37, in
print('\n'.join(densenet.predict(image_path, id_to_char)[1]))
TypeError: can only join an iterable