Deep Learning

Deep Learning

kerasでinput_shapeとoutput_shapeを取得する

転移学習をする際、元になるモデルはVGG16やResNet、Xceptionなど種類が多い色々試してみたいけど、その度にソースコードのinput_shapeを書き換えるのが面倒くさいし、argeparseで引数にするのも手間なので、直接入力...
Deep Learning

YOLOで学習中のlossのグラフchart.png を100iteretion毎に保存する

YOLOにはlossのグラフを100iteration毎に保存してくれる機能があるしかし毎回chart.pngという名前で上書きされてしまうので、過去の状態を見たくなった時にちょっと困るそこで、グラフが上書き保存されないように書き換える使っ...
Deep Learning

kerasのmodel.summaryでThis model has not yet been builtと怒られる

model.summary()で出てくるエラーValueError: This model has not yet been built. Build the model first by calling build() or callin...
Deep Learning

kerasのmodel.summaryでbound method Network.summaryと表示される

model.summaryしてもこんなメッセージが出る。<bound method Network.summary of <keras.engine.training.Model object at 0x12222bf60>>想定してたモデ...