YCG09 / chinese_ocr

CTPN + DenseNet + CTC based end-to-end Chinese OCR implemented using tensorflow and keras
Apache License 2.0
2.76k stars 1.08k forks source link

train raise ValueError('An operation has `None` for gradient. #307

Closed zgq91 closed 5 years ago

zgq91 commented 5 years ago

Hi: 你好,python train.py 时会报梯度出错的问题; "File "train.py", line 171, in callbacks = [checkpoint, earlystop, changelr, tensorboard]) " " raise ValueError('An operation has None for gradient. ' ValueError: An operation has None for gradient. Please make sure that all of your ops have a gradient defined (i.e. are differentiable). Common ops without gradient: K.argmax, K.round, K.eval. 我的tensorflow1.13.1版本 数据用的你提供的