vision.transforms应用举例
收藏
宝石数据增强paddle.vision.transforms应用举例
https://aistudio.baidu.com/aistudio/projectdetail/1409480
.旋转举例 import numpy as np from PIL import Image from paddle.vision.transforms import functional as F for (root , dirs, files ) in os.walk("dataset", topdown=False): for name in files: abs_name=os.path.join(root, name) print(absname) img = Image.open(abs_name) rotated_img = F.rotate(img, 90) print(rotated_img.size) fake_name=os.path.join(root,"fake_"+ name) print(fake_name) rotated_img.save(fake_name)
0
收藏
所以,hapi对萌新和老懒(不是癞)都是用处大大的~~
而且hapi对模型的封装更工整了,有赖于Model对象
睡不着发
这是被代码弄烦了 哈哈
禁止套娃= =