摘要: (x,y),(x_test,y_test) = tf.keras.datasets.cifar10.load_data() x = x/255. x = tf.cast(x,tf.float32) x_test = x_test/255. x_test = tf.cast(x_test,tf.flo 阅读全文
posted @ 2020-12-17 18:22 山…隹 阅读(301) 评论(0) 推荐(0) 编辑
摘要: # 图像增强 inputs = tf.image.random_flip_left_right(inputs) # 图像随机翻转 inputs = tf.image.random_brightness(inputs,max_delta=0.1) # 图像随机光照 inputs = tf.image. 阅读全文
posted @ 2020-12-17 13:32 山…隹 阅读(628) 评论(0) 推荐(0) 编辑