Skip to content

Instantly share code, notes, and snippets.

@lilacs2039
Last active December 9, 2017 13:45
Show Gist options
  • Save lilacs2039/ca3da6c69ce932bd80eaa733a844270a to your computer and use it in GitHub Desktop.
Save lilacs2039/ca3da6c69ce932bd80eaa733a844270a to your computer and use it in GitHub Desktop.
WEBDNNのWebAssemblyコンパイル環境をDockerで用意 ref: https://qiita.com/lilacs/items/90c08538283918902d69
# (事前にカレントディレクトリを変換したいモデルのあるディレクトリへ移動すること)
docker run --rm -v "$(pwd):/src" -it lilacs2039/debian_webasm_webdnn
python /webdnn/bin/convert_keras.py resnet50.h5 --input_shape '(1,224,224,3)' --out output --backend webassembly
docker run --rm -v c:/Users:/data alpine ls /data
#成功例
Administrator
All Users
...
cd /path/to/model
docker run --rm -v "$(pwd):/src" -it lilacs2039/debian_webasm_webdnn
python /webdnn/bin/convert_keras.py resnet50.h5 --input_shape '(1,224,224,3)' --out output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment