Skip to content

Latest commit

 

History

History
31 lines (27 loc) · 577 Bytes

20180606000000-keras-js-model-docker-compose.md

File metadata and controls

31 lines (27 loc) · 577 Bytes
templateKey title date tags
blog-post
Keras.js用のmodel変換をdocker-composeで怠ける
2018-06-06T11:53:49+09:00
python
docker
keras

model.binとしてmodelは保存してる前提で。

version: '3'
services:
  python:
    image: python:3
    volumes:
      - ./:/tmp/volume/
    command: > 
      sh -c
      "pip3 install protobuf numpy h5py &&
      cd /tmp/volume &&
      python3 ./node_modules/keras-js/python/encoder.py model.bin"

Dockerfile作るのすら面倒あのでcommandで全部処理

$ docker-compose up