amdegroot/ssd.pytorch

Questions about `RandSampleCrop` in `augmentation.py`

zhiyiYo opened this issue · 1 comments

Hi, In lines 259 and 260 of augmentation.py, the code is

left = random.uniform(width - w)
top = random.uniform(height - h)

I don't understand why the lower limit is set for 'left' and 'top', not the upper limit like

left = random.uniform(high=width - w)
top = random.uniform(high=height - h)

Strangely enough, I tested this function and found that if only one parameter is passed, it corresponds to high.
image