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

get_img_fit_flow fit_smpl_size not accepting floats #1

Open
norahik opened this issue Mar 22, 2019 · 0 comments
Open

get_img_fit_flow fit_smpl_size not accepting floats #1

norahik opened this issue Mar 22, 2019 · 0 comments

Comments

@norahik
Copy link

norahik commented Mar 22, 2019

hello!
i'm trying to use the function "get_img_fit_flow"
when i set 'fit_smpl_size' a float number (0.2)
the following line:
idx = np.random.choice(imgs.shape[0], batch_size*fit_smpl_size, replace=False)
raises an error:
"TypeError: 'float' object cannot be interpreted as an index"

i understand it cannot be an it since we done want to get all the data. could you please explain if i'm missing something?

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

No branches or pull requests

1 participant