vidaug icon indicating copy to clipboard operation
vidaug copied to clipboard

Downsample augmentation is not working because of the floating value of the nb_return_frame variable.

Open redzhepdx opened this issue 4 years ago • 1 comments

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!

redzhepdx avatar Feb 24 '20 12:02 redzhepdx

hi @redzhepdx , Thank you for informing! Could you please make a pull request for this? appreciated

ahmetgunduz avatar Feb 24 '20 17:02 ahmetgunduz