We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 221f3fd commit f1a532eCopy full SHA for f1a532e
vel/augmentations/random_scale.py
@@ -3,7 +3,7 @@
3
https://github.com/fastai/fastai/blob/master/fastai/transforms.py
4
"""
5
import cv2
6
-import collections
+import collections.abc as abc
7
import random
8
9
import vel.api.data as data
@@ -22,7 +22,7 @@ def __call__(self, x_data):
22
# Yes, do it
23
min_z = 1.
24
max_z = self.max_zoom
25
- if isinstance(self.max_zoom, collections.Iterable):
+ if isinstance(self.max_zoom, abc.Iterable):
26
min_z, max_z = self.max_zoom
27
28
mult = random.uniform(min_z, max_z)
0 commit comments