ultrasound-nerve-segmentation icon indicating copy to clipboard operation
ultrasound-nerve-segmentation copied to clipboard

data processing problem

Open lz666win opened this issue 6 years ago • 1 comments

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 avatar Jun 21 '18 02:06 lz666win

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

lz666win avatar Jun 22 '18 07:06 lz666win