Skip to content

Commit

Permalink
[Fix] Fix incompatibility of ImgAug and latest Numpy (#2451)
Browse files Browse the repository at this point in the history
  • Loading branch information
cir7 authored May 6, 2023
1 parent 588acac commit 718a17d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion .circleci/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ jobs:
docker build .circleci/docker -t mmaction:gpu --build-arg PYTORCH=<< parameters.torch >> --build-arg CUDA=<< parameters.cuda >> --build-arg CUDNN=<< parameters.cudnn >>
docker run --gpus all -t -d -v /home/circleci/project:/mmaction -w /mmaction --name mmaction mmaction:gpu
docker exec mmaction apt-get update
docker exec mmaction pip install "numpy==1.23"
docker exec mmaction apt-get upgrade -y
docker exec mmaction apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6 libturbojpeg pkg-config
docker exec mmaction apt-get install -y libavdevice-dev libavfilter-dev libopus-dev libvpx-dev libsrtp2-dev libsndfile1
Expand Down
3 changes: 3 additions & 0 deletions mmaction/datasets/transforms/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ class ImgAug(BaseTransform):
"""

def __init__(self, transforms):
# Hack to fix incompatibility of ImgAug and latest Numpy
if digit_version(np.__version__) >= digit_version('1.24.0'):
np.bool = bool
import imgaug.augmenters as iaa

if transforms == 'default':
Expand Down
1 change: 0 additions & 1 deletion src/pytorch-sphinx-theme
Submodule pytorch-sphinx-theme deleted from 6f42dc

0 comments on commit 718a17d

Please sign in to comment.