vidaug
vidaug copied to clipboard
Downsample augmentation is not working because of the floating value of the nb_return_frame variable.
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!
hi @redzhepdx , Thank you for informing! Could you please make a pull request for this? appreciated