Found 14604 images belonging to 11 classes.
Found 3645 images belonging to 11 classes.
2021-01-19 16:19:47,171 - [INFO]: train data:14604, valid data:3645
WARNING:tensorflow:From /tf/maix_train/train/classifier/init.py:177: Model.fit_generator (from tensorflow.python.keras.engine.training) is deprecated and will be removed in a future version.
Instructions for updating:
Please use Model.fit, which supports generators.
/usr/local/lib/python3.6/dist-packages/keras_preprocessing/image/image_data_generator.py:716: UserWarning: This ImageDataGenerator specifies featurewise_center, but it hasn't been fit on any training data. Fit it first by calling .fit(numpy_data).
warnings.warn('This ImageDataGenerator specifies '
/usr/local/lib/python3.6/dist-packages/keras_preprocessing/image/image_data_generator.py:724: UserWarning: This ImageDataGenerator specifies featurewise_std_normalization, but it hasn't been fit on any training data. Fit it first by calling .fit(numpy_data).
warnings.warn('This ImageDataGenerator specifies '
WARNING:tensorflow:sample_weight modes were coerced from
...
to
['...']
WARNING:tensorflow:sample_weight modes were coerced from
...
to
['...']
Train for 2920 steps, validate for 729 steps
我做了一个中文手势数字识别,效果非常不理想。在实际使用中,准确率低到完全无法接受。而且,有几个数字特别强势,比如4/9/8/0。其他数字几乎没有机会。maix_train 提供的训练调整手段非常有限,请指导。谢谢。
使用的时图片分类训练,数据来源这里: https://github.com/tz28/Chinese-number-gestures-recognition
我下载了他们的基础图片包,然后运行他们提供的 data_augmentation.py [程序,最后对图片进行了一些规整,大小调整到224x224,每个数字有1800-2000 张图片。我们没有对instance/config.py做调整。训练结果报告如下:
另外在启动训练时看到如下WARNING:
Found 14604 images belonging to 11 classes. Found 3645 images belonging to 11 classes. 2021-01-19 16:19:47,171 - [INFO]: train data:14604, valid data:3645 WARNING:tensorflow:From /tf/maix_train/train/classifier/init.py:177: Model.fit_generator (from tensorflow.python.keras.engine.training) is deprecated and will be removed in a future version. Instructions for updating: Please use Model.fit, which supports generators. /usr/local/lib/python3.6/dist-packages/keras_preprocessing/image/image_data_generator.py:716: UserWarning: This ImageDataGenerator specifies
featurewise_center
, but it hasn't been fit on any training data. Fit it first by calling.fit(numpy_data)
. warnings.warn('This ImageDataGenerator specifies ' /usr/local/lib/python3.6/dist-packages/keras_preprocessing/image/image_data_generator.py:724: UserWarning: This ImageDataGenerator specifiesfeaturewise_std_normalization
, but it hasn't been fit on any training data. Fit it first by calling.fit(numpy_data)
. warnings.warn('This ImageDataGenerator specifies ' WARNING:tensorflow:sample_weight modes were coerced from ... to ['...'] WARNING:tensorflow:sample_weight modes were coerced from ... to ['...'] Train for 2920 steps, validate for 729 steps