RPi : CNNで深層学習

近年、画像分類技術の精度向上には目覚ましいものがあります。深層学習と呼ばれるニューラルネットワークを進化させた技術を画像分類に適用することにより、人間と同程度かそれ以上の高精度を実現できるようになりました。
そのような深層学習モデルの中でも、「畳み込みニューラルネットワーク(Convolutional Neural Network, CNN)」は、視覚野の特徴抽出の仕組みをモデル化したもので、画像解析において高い性能を発揮してきました。
集めた画像を CNNで解析
models/faceがない???
(env) pi@donkeypi3chen02:~/hello_ghome $ mkdir models/face
./dataset
|
|- dataA
|   |- image1a.jpg
|   |- image2a.jpg
|   |- image3a.jpg
|   |-       ・
|   |-       ・
|
|- dataB
|   |- image1b.jpg
|   |- image2b.jpg
|   |-       ・
|   |-       ・
|
沢山フォルダ作った。。。
(env) pi@donkeypi3chen02:~/hello_ghome $ python3 cnn/train.py
WARNING:tensorflow:From /home/pi/env/lib/python3.7/site-packages/tensorflow/__init__.py:98: The name tf.AUTO_REUSE is deprecated. Please use tf.compat.v1.AUTO_REUSE instead.
WARNING:tensorflow:From /home/pi/env/lib/python3.7/site-packages/tensorflow/__init__.py:98: The name tf.AttrValue is deprecated. Please use tf.compat.v1.AttrValue instead.
WARNING:tensorflow:From /home/pi/env/lib/python3.7/site-packages/tensorflow/__init__.py:98: The name tf.COMPILER_VERSION is deprecated. Please use tf.version.COMPILER_VERSION instead.
WARNING:tensorflow:From /home/pi/env/lib/python3.7/site-packages/tensorflow/__init__.py:98: The name tf.CXX11_ABI_FLAG is deprecated. Please use tf.sysconfig.CXX11_ABI_FLAG instead.
WARNING:tensorflow:From /home/pi/env/lib/python3.7/site-packages/tensorflow/__init__.py:98: The name tf.ConditionalAccumulator is deprecated. Please use tf.compat.v1.ConditionalAccumulator instead.
Traceback (most recent call last):
  File “cnn/train.py”, line 17, in <module>
    train_image ,train_label , test_image , test_label = image_dataset.make( img_path, train_num = 90 , test_num = 10 , img_size = IMG_SIZE )
  File “./cnn/util/image_dataset.py”, line 96, in make
    test_image.extend( test[0] )
IndexError: list index out of range
(env) pi@donkeypi3chen02:~/hello_ghome $
やり方間違っているかな?