AutoRCCar: Error in `mlp_training.py`
Hi, @hamuchiwa
After running mlp_training.py it shows an error…
Loading training data...
(0, 38400)
(0, 4)
Loading image duration: 0.017612816
Training MLP ...
Traceback (most recent call last):
File "/home/pi/CAR/computer/mlp_training.py", line 49, in <module>
num_iter = model.train( train, train_labels, None, params = params)
error: /home/pi/opencv/modules/ml/src/ann_mlp.cpp:690: error: (-5) input training data should be a floating-point matrix withthe number of rows equal to the number of training samples and the number of columns equal to the size of 0-th (input) layer in function CvANN_MLP::prepare_to_train
>>>
i would like to know which version of OpenCV you’re using…because some months before this code were working perfectly! unfortunately that whole data was lost so i have installed latest dependencies…
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (6 by maintainers)
@nimasmbm I think your training data quality needs to be improved first.