-
Notifications
You must be signed in to change notification settings - Fork 44
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
about py2.7 topy3.5 #2
Comments
Hi @lz666win. Don't delete that line. fileList needs to be sorted. Instead I would suggest doing something like:
|
Sorry to bother you again.I finished train.py and began test.py, problem happened: |
@lz666win |
Sorry to bother you,but I notice that you use python2.7,now I want to transform it to python3.5,.But in py3.5,filter produce a generator format, not like py2.7(list format),I do not know how to transform it so I delete the line48 and 95(fileList.sort() can not work).
but problem still happened:
Traceback (most recent call last):
File "C:/Users/lz666/PycharmProjects/promise12_segmentation/codes/train.py", line 233, in
n_imgs=15*10**4, batch_size=32)
File "C:/Users/lz666/PycharmProjects/promise12_segmentation/codes/train.py", line 167, in keras_fit_generator
data_to_array(img_rows, img_cols)
File "C:/Users/lz666/PycharmProjects/promise12_segmentation/codes/train.py", line 72, in data_to_array
images = np.concatenate( images , axis=0 ).reshape(-1, img_rows, img_cols, 1)
ValueError: need at least one array to concatenate
I do not think that is the problem with py2.7 and 3.5,I use CPU only,can you fix it or transform it to py3.5?
The text was updated successfully, but these errors were encountered: