概要 Kerasを使ってネコの画像分類モデルを畳み込みニューラルネットワークで構築。(今回) Flaskを使って、htmlページからアップロードした画像を構築したモデルで推測する。 AWSのEC2上に公開 → ネコ画像分類App(停止中) 開発環境 Macbook air (Early 2015) メモリ 8GB Python 3.5.5 Tensorflow 1.9.0 Keras 2.2.0 KerasのCifar10をベースにCNN(畳み込みニューラルネットワーク)を構築。以下の記事を参考に、画像データはオックスフォード大学の提供している動物のデータを使用。 Deep Learningで猫の品種識別 The Oxford-IIIT-Pet dataset データ加工 画像データを224✕224それぞれの領域において平均のRGB値に変換。また、そのRGB値をnumpyのarray形式に