nb_return_frame = np.floor(self.ratio * len(clip))
numpy floor return a value in float64 and linspace function doesn't support float to integer conversion.
nb_return_frame = int(np.floor(self.ratio * len(clip)))
I tried to run it like this and it works!
Note : It is the same for Upsample augmentation too!
nb_return_frame = np.floor(self.ratio * len(clip))numpy floor return a value in float64 and linspace function doesn't support float to integer conversion.
nb_return_frame = int(np.floor(self.ratio * len(clip)))I tried to run it like this and it works!
Note : It is the same for Upsample augmentation too!