UnboundLocalError: local variable 'epoch_logs' referenced before assignment

来源:互联网 发布:中国铁器知乎 编辑:程序博客网 时间:2024/05/01 10:22

在调试keras程序的时候,莫名出了这个误:

UnboundLocalError: local variable 'epoch_logs' referenced before assignment

不知是哪儿的错,多次试验发现是model.fit_generator()函数中的samples_per_epoch设置 的太小了。

呵呵,一个低级错误,但愿别的同鞋不进坑。

大笑

阅读全文
0 0