import numpy as np
from itertools import permutations
indices = list(permutations(range(3), 3))
image = np.random.rand(576,480,3)
image = Image.fromarray(image[...,list(indices[np.random.randint(0, len(indices) - 1)])])
数据增强 python随机交换图像通道
最新推荐文章于 2023-03-06 10:13:52 发布