Search code examples
pythonimportgoogle-colaboratorydata-augmentation

How to import ImgAug 0.4.0 in Colab?


I would like to use some augmentation techniques of the package imgaug 0.4.0 (link: https://github.com/aleju/imgaug) in Google Colab. Currently, there is version 0.2.9 imported by default. Is there a way to import 0.4.0?

I already tried to install it using !pip install imgaug.

Thanks a lot!


Solution

  • pip uninstall imgaug unistall current version of imgaug
    pip install imgaug install latest version of imgaug or pip install img==version

    it is not recomended because other library depend on that specifc version will stop working best way to do this is by creating virtual environment so it not mess with other libraries