MiniGoogLeNet在CIFAR - 10和Tiny ImageNet上的实践
1. MiniGoogLeNet在CIFAR - 10上的训练
在使用MiniGoogLeNet对CIFAR - 10数据集进行训练时,我们需要进行一系列的准备工作。首先,构建数据增强器:
aug = ImageDataGenerator(rotation_range=18, zoom_range=0.15,
width_shift_range=0.2, height_shift_range=0.2,
shear_range=0.15, horizontal_flip=True,
fill_mode="nearest")
接着,构建回调函数集来监控训练进度并调用学习率调度器:
figPath = os.path.sep.join([args["output"], "{}.png".format(os.getpid())])
jsonPath = os.path.sep.join([args["output"], "{}.json".format(os.getpid())])
callbacks = [TrainingMonitor(figPath, jsonPath=jsonPath),
LearningRateScheduler(poly_decay)]
超级会员免费看
订阅专栏 解锁全文
3286

被折叠的 条评论
为什么被折叠?



