这个问题可能是由于Keras版本不兼容导致的。您可以尝试以下步骤来解决问题:

  1. decode替换为encode,即将f.attrs['keras_version'].decode('utf8')替换为f.attrs['keras_version'].encode('utf8')

  2. 更新Keras版本,使其与您的代码兼容。

  3. 如果您使用的是Python 3.x版本,则可以尝试将代码中的所有.decode('utf8')替换为.decode('utf-8', 'ignore')

希望这些步骤可以帮助您解决问题。

Instructions for updatingPlease use rate instead of keep_prob Rate should be set to rate = 1 - keep_probTraceback most recent call last File EPycharmProjectsImage-Caption2apppy line 78 in module m

原文地址: https://www.cveoy.top/t/topic/hlVS 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录