且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Keras中拟合生成器和数据增强

更新时间:2023-02-07 14:11:05

不幸的是-当您将batch_size设置为50时,如果只有5个示例,则生成器将每批仅返回5个示例(尽管batch_size).因此,它不会将您的批次扩展到50.

Unfortunately - when you set the batch_size to 50 when you have only 5 examples will make your generator to return only 5 examples in each batch (despite the batch_size). So it will not extend your batch to 50.