keras 多个模型测试阶段速度越来越慢问题的解决方法
问题描述在实际应用或比赛中,经常会用到交叉验证(10倍或5倍)来提高泛化能力,这样在预测时需要加载多个模型。常用的方法为 mods = [] from keras.utils.generic_utils import CustomObjectScope with CustomObjectScope({}): for model_file in tqdm.t...
原创
2019-11-11 10:26:25 ·
1733 阅读 ·
0 评论