Commit 12a37ba7 authored by Yu Luo's avatar Yu Luo Committed by Alykhan Tejani
Browse files

(fix) fix RandomCrop get_params output (#289)

parent 9fc7edfb
...@@ -749,7 +749,7 @@ class RandomCrop(object): ...@@ -749,7 +749,7 @@ class RandomCrop(object):
w, h = img.size w, h = img.size
th, tw = output_size th, tw = output_size
if w == tw and h == th: if w == tw and h == th:
return img return 0, 0, h, w
i = random.randint(0, h - th) i = random.randint(0, h - th)
j = random.randint(0, w - tw) j = random.randint(0, w - tw)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment