Skip to content

Commit f1a532e

Browse files
committedMar 25, 2019
Import Iterable from abc.
1 parent 221f3fd commit f1a532e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎vel/augmentations/random_scale.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
https://github.com/fastai/fastai/blob/master/fastai/transforms.py
44
"""
55
import cv2
6-
import collections
6+
import collections.abc as abc
77
import random
88

99
import vel.api.data as data
@@ -22,7 +22,7 @@ def __call__(self, x_data):
2222
# Yes, do it
2323
min_z = 1.
2424
max_z = self.max_zoom
25-
if isinstance(self.max_zoom, collections.Iterable):
25+
if isinstance(self.max_zoom, abc.Iterable):
2626
min_z, max_z = self.max_zoom
2727

2828
mult = random.uniform(min_z, max_z)

0 commit comments

Comments
 (0)
Please sign in to comment.