ZFTurbo / volumentations

Library for 3D augmentations
MIT License
220 stars 35 forks source link

Name error: 'border_mode' is not defined when using 'rescale_warp' #20

Open nihpat19 opened 1 year ago

nihpat19 commented 1 year ago

File "/workspace/utils/dataloader3d.py", line 78, in getitem seg_augmented = self.aug(image=A_img, mask=A_label) File "/opt/conda/lib/python3.7/site-packages/volumentations/core/composition.py", line 60, in call data = tr(force_apply, self.targets, data) File "/opt/conda/lib/python3.7/site-packages/volumentations/core/transforms_interface.py", line 117, in call data[k] = self.apply(v, params) File "/opt/conda/lib/python3.7/site-packages/volumentations/augmentations/transforms.py", line 131, in apply return F.rescale_warp(img, scale, interpolation=self.interpolation) File "/opt/conda/lib/python3.7/site-packages/volumentations/augmentations/functional.py", line 441, in rescale_warp return map_coordinates(img, coords, order=interpolation, mode=border_mode, cval=value) NameError: name 'border_mode' is not defined