Trouble Shooting

A.Affine not working

  • Problem: AttributeError: module 'albumentations' has no attribute 'Affine'

  • Solution:

    pip uninstall albumentations
    pip install -U git+https://github.com/albumentations-team/albumentations
    

libmagic installation failed

MagickWand library not found

torchvision version to old

  • Problem: AttributeError: module 'torchvision.transforms.functional' has no attribute 'InterpolationMode'

  • Solution: Upgrade torchvision

    pip install --upgrade torchvision
    

Problem not solved: prune

  • Problem: other problem still not solved

  • beacon_aug support optional backend library. So the backend library will not be available unless the dependency is installed

  • You can simply remove the library dependency that your don’t need, check source: https://github.com/adobe-research/beacon-aug/blob/main/beacon_aug/generator/__init__.py

  • Solution1 :

    pip uninstall wand   # if no need to use `imagenet_c` backend library
    pip uninstall mmcv   # if no need to use `mmcv` backend library
    pip uninstall augly   # if no need to use `augly` backend library
    pip uninstall kornia   # if no need to use `kornia` backend library
    
  • Solution2 :
    • e.g. reinstall beacon-aug by replacing requirements.txt with requirements_prune.txt in a new virtual environment