amdegroot / ssd.pytorch

A PyTorch Implementation of Single Shot MultiBox Detector
MIT License
5.12k stars 1.74k forks source link

np.random.choice doesn't support tuple (or something like that) anymore #587

Open Hope1337 opened 1 year ago

Hope1337 commented 1 year ago

In augmetation file, at function RandomSampleCrop, we use np.random.choice, but I guess that there was some change in numpy lib or python so we can't use it for tupe like : a = (None, (1, 2), 3)

Solution : replace np.random.choice by random.choice in random lib.