chineseocr / chineseocr

yolo3+ocr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kera-yolo运行到编译阶段loss报错

FIVE9523 opened this issue · comments

到这一段出错:
textModel.compile(optimizer=adam, loss={'xy_loss':lambda y_true, y_pred:y_pred,
'wh_loss':lambda y_true, y_pred:y_pred,
'confidence_loss':lambda y_true, y_pred:y_pred,
'class_loss':lambda y_true, y_pred:y_pred,
}
)
报错:
ValueError: Unknown entry in loss dictionary: "xy_loss". Only expected the following keys: ['conv2d_134', 'conv2d_142', 'conv2d_150']

想请教下各位前辈怎么解决的

大佬,你问题解决了吗,我遇到了相同的问题

大佬,你问题解决了吗,我遇到了相同的问题

找到原因了
from text.keras_yolo3 import yolo_text
text.keras_yolo3文件app和master搞混了,换master的就好了