preprocess.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:bigBatch 作者: eladhoffer 项目源码 文件源码
def inception_color_preproccess(input_size, normalize=__imagenet_stats):
    return transforms.Compose([
        transforms.RandomSizedCrop(input_size),
        transforms.RandomHorizontalFlip(),
        transforms.ToTensor(),
        ColorJitter(
            brightness=0.4,
            contrast=0.4,
            saturation=0.4,
        ),
        Lighting(0.1, __imagenet_pca['eigval'], __imagenet_pca['eigvec']),
        transforms.Normalize(**normalize)
    ])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号