Skip to content

Commit

Permalink
Update base image, and add parameters file
Browse files Browse the repository at this point in the history
  • Loading branch information
janjongboom committed Jul 7, 2023
1 parent 6180451 commit c0debac
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG UBUNTU_VERSION=20.04

ARG ARCH=
ARG CUDA=11.2
FROM nvidia/cuda${ARCH:+-$ARCH}:${CUDA}.1-base-ubuntu${UBUNTU_VERSION} as base
FROM nvidia/cuda${ARCH:+-$ARCH}:${CUDA}.2-base-ubuntu${UBUNTU_VERSION} as base
ARG CUDA
ARG CUDNN=8.1.0.77-1
ARG CUDNN_MAJOR_VERSION=8
Expand Down Expand Up @@ -73,4 +73,6 @@ WORKDIR /scripts
# Copy the normal files (e.g. run.sh and the extract_dataset scripts in)
COPY . ./

ENV PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python

ENTRYPOINT ["/bin/bash", "run.sh"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ You can also push this block back to Edge Impulse, that makes it available like
$ edge-impulse-blocks push
```
2. The block is now available under any of your projects, via **Create impulse > Add learning block > Object Detection (Images)**.
2. The block is now available under any of your projects, via **Create impulse > Add learning block**.
7 changes: 7 additions & 0 deletions parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[{
"name": "Number of training cycles",
"value": "30",
"type": "int",
"help": "Number of epochs to train the neural network on.",
"param": "epochs"
}]
9 changes: 0 additions & 9 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ while [[ $# -gt 0 ]]; do
shift # past argument
shift # past value
;;
--learning-rate) # e.g. 0.01
LEARNING_RATE="$2"
shift # past argument
shift # past value
;;
--data-directory) # e.g. 0.2
DATA_DIRECTORY="$2"
shift # past argument
Expand All @@ -40,10 +35,6 @@ if [ -z "$EPOCHS" ]; then
echo "Missing --epochs"
exit 1
fi
if [ -z "$LEARNING_RATE" ]; then
echo "Missing --learning-rate"
exit 1
fi
if [ -z "$DATA_DIRECTORY" ]; then
echo "Missing --data-directory"
exit 1
Expand Down

0 comments on commit c0debac

Please sign in to comment.