You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At first i put 1000 photos in data/train ,then i run "python train_nn.py --cnf configs/c_128_5x5_32.py",there is nothing wrong, but when i put 35000 photos in data/train, i got error, I sure i have changed the labels too,failed as this:
Traceback (most recent call last):
File "train_nn.py", line 41, in
main()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 716, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "train_nn.py", line 38, in main
net.fit(files, labels)
File "/usr/local/lib/python2.7/dist-packages/nolearn-0.6a0.dev0-py2.7.egg/nolearn/lasagne/base.py", line 416, in fit
self.train_loop(X, y)
File "/home/zcx/kaggle_diabetic-deterministic/nn.py", line 219, in train_loop
X, y, self.eval_size)
File "/home/zcx/kaggle_diabetic-deterministic/nn.py", line 126, in train_test_split
X, y, test_size=eval_size)
File "/home/zcx/kaggle_diabetic-deterministic/data.py", line 293, in split
train, test = split_indices(files, labels, test_size, random_state)
File "/home/zcx/kaggle_diabetic-deterministic/data.py", line 281, in split_indices
labels = get_labels(names, per_patient=True)
File "/home/zcx/kaggle_diabetic-deterministic/data.py", line 222, in get_labels
return np.vstack([labels[left], labels[~left]]).T
File "/usr/local/lib/python2.7/dist-packages/numpy/core/shape_base.py", line 228, in vstack
return _nx.concatenate([atleast_2d(_m) for _m in tup], 0)
ValueError: all the input array dimensions except for the concatenation axis must match exactly
what should i do? can you give me some advice?
The text was updated successfully, but these errors were encountered:
At first i put 1000 photos in data/train ,then i run "python train_nn.py --cnf configs/c_128_5x5_32.py",there is nothing wrong, but when i put 35000 photos in data/train, i got error, I sure i have changed the labels too,failed as this:
Traceback (most recent call last):
File "train_nn.py", line 41, in
main()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 716, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "train_nn.py", line 38, in main
net.fit(files, labels)
File "/usr/local/lib/python2.7/dist-packages/nolearn-0.6a0.dev0-py2.7.egg/nolearn/lasagne/base.py", line 416, in fit
self.train_loop(X, y)
File "/home/zcx/kaggle_diabetic-deterministic/nn.py", line 219, in train_loop
X, y, self.eval_size)
File "/home/zcx/kaggle_diabetic-deterministic/nn.py", line 126, in train_test_split
X, y, test_size=eval_size)
File "/home/zcx/kaggle_diabetic-deterministic/data.py", line 293, in split
train, test = split_indices(files, labels, test_size, random_state)
File "/home/zcx/kaggle_diabetic-deterministic/data.py", line 281, in split_indices
labels = get_labels(names, per_patient=True)
File "/home/zcx/kaggle_diabetic-deterministic/data.py", line 222, in get_labels
return np.vstack([labels[left], labels[~left]]).T
File "/usr/local/lib/python2.7/dist-packages/numpy/core/shape_base.py", line 228, in vstack
return _nx.concatenate([atleast_2d(_m) for _m in tup], 0)
ValueError: all the input array dimensions except for the concatenation axis must match exactly
what should i do? can you give me some advice?
The text was updated successfully, but these errors were encountered: