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

A problem about loading data #8

Closed
lowkeygit opened this issue Sep 20, 2017 · 2 comments
Closed

A problem about loading data #8

lowkeygit opened this issue Sep 20, 2017 · 2 comments

Comments

@lowkeygit
Copy link

lowkeygit commented Sep 20, 2017

I got an Error when I try to run data.py.

When running the create_train_data() function, it returns:
imgs = np.ndarray((total, 1, image_rows, image_cols), dtype=np.uint8)
TypeError: 'float' object cannot be interpreted as an integer

How to fix this problem?

Thanks a lot.

@ethanhe42
Copy link
Owner

try int(total)

@lowkeygit
Copy link
Author

lowkeygit commented Sep 21, 2017

@yihui-he
Thank you for your reply. It helps.

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

2 participants