Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
redzhepdx opened this issue Feb 24, 2020 · 1 comment

Comments

@redzhepdx
Copy link

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!

@ahmetgunduz
Copy link
Collaborator

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

kecsap added a commit to kecsap/vidaug that referenced this issue Jul 2, 2020
kecsap added a commit to kecsap/vidaug that referenced this issue Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants