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

data processing problem #73

Open
lz666win opened this issue Jun 21, 2018 · 1 comment
Open

data processing problem #73

lz666win opened this issue Jun 21, 2018 · 1 comment

Comments

@lz666win
Copy link

I use python3.5.2,numpy is 1.14.3,here is traceback:

Traceback (most recent call last):
File "C:/Users/lz666/PycharmProjects/ultrasound-nerve-segmentation/data.py", line 93, in
create_train_data()
File "C:/Users/lz666/PycharmProjects/ultrasound-nerve-segmentation/data.py", line 37, in create_train_data
imgs[i] = img
ValueError: setting an array element with a sequence.
in function create_train_data ,imgs[i] = img is not work ,but in create_test_data,it is no problem,please help me about this problem

@lz666win
Copy link
Author

I got result, when processing data, author use 'total = len(images)/2', then total is float.I changed as'total = int(len(images)/2)',there is no problem

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