python - tensorflow:如何旋转图像以进行数据增强?

标签 python tensorflow

在 tensorflow 中,我想从随机角度旋转图像,以进行数据扩充。但我没有在 tf.image 模块中找到这种转换。

最佳答案

这可以在 tensorflow now 中完成:

tf.contrib.image.rotate(images, degrees * math.pi / 180, interpolation='BILINEAR')

关于python - tensorflow:如何旋转图像以进行数据增强?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34801342/

相关文章:

python - 拟合 TensorForestEstimator 时 TensorFlow 崩溃

python - 是否可以在 Google TPU 上运行常规的 python 代码?

python - 树莓派和 SPI 接口(interface) (Python) : how to transfer data?

python - 无服务器并将图像从 Lambda 端点上传到 S3

javascript - 如何使用 CustomJS 更新 Bokeh 源

python - 为C编写Tensorflow模型

python - Keras 中 CPU 和 GPU 的混合使用

tensorflow - 在 Tensorflow 中,如何生成标量摘要?

python django 或条件

java - 从 Java 调用 Python 代码的问题(不使用 jython)