From dfcfc624ab2620e7214ee0e5ae05cbe3bf07b14b Mon Sep 17 00:00:00 2001 From: Feng Date: Mon, 20 Jun 2022 17:10:09 +0200 Subject: [PATCH] fetch modified models from mounted folder, as is explained in readme. --- readme.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 118d444..777675f 100644 --- a/readme.md +++ b/readme.md @@ -62,17 +62,24 @@ Click `Open Model...` to upload the ONNX model to edit. The model will be parsed We create a docker container like this: ```bash +git clone git@github.com:ZhangGe6/onnx-modifier.git +cd onnx-modifier docker build --file Dockerfile . -t onnx-modifier ``` -After building the container, we run onnx-modifier from it by mapping docker port 5000 to host port 5000 +After building the container, we run onnx-modifier by mapping docker port and a local folder `modified_onnx` ```bash -docker run -d -t --name onnx-modifier -p 5000:5000 onnx-modifier +mkdir -p modified_onnx +docker run -d -t \ + --name onnx-modifier \ + -u $(id -u ${USER}):$(id -g ${USER}) \ + -v $(pwd)/modified_onnx:/modified_onnx \ + -p 5000:5000 \ + onnx-modifier ``` -Then we have access to onnx-modifer from URL . - +Then we have access to onnx-modifer from URL . The modified ONNX models are expected to be found inside the local folder `modified_onnx`. # Usage