我应该用哪种方法来预处理图像?

问题描述 投票:0回答:1

使用keras的ImageDataGenerator和使用tensorflow的tf.data来预处理图像,哪个性能更好?

tensorflow keras deep-learning computer-vision
1个回答
0
投票

根据我的经验,应该使用tf.data,因为在使用tensorflow进行预处理时,通过调整并行调用的次数,有很大的优化空间。map 在数据集上。

例如 https:/www.tensorflow.orgguidedata#decoding_image_data_and_resizing_it

平行化数据转换。https:/www.tensorflow.orgguidedata_performance#parallelizing_data_transformation

© www.soinside.com 2019 - 2024. All rights reserved.