一個RandomCrop方案-深度學習

版權歸屬:

更多關注:

transform_list = []
if opt.resize_or_crop == 'resize_and_crop':
    osize = [192, 192]
    transform_list.append(transforms.Resize(osize, Image.BILINEAR))
    transform_list.append(transforms.RandomCrop(256, padding=64, fill=(255, 255, 255)))

這裏是PyTorch的代碼實現方案。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章