Skip to content

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

@nihpat19

Description

@nihpat19

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions