-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #383 from gwsystems/mt-dbf
Added "CNN Face Detection" app
- Loading branch information
Showing
11 changed files
with
71 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule awsm
updated
3 files
+2 −2 | .github/workflows/main.yaml | |
+9 −3 | applications/Makefile | |
+1 −1 | applications/wasm_apps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
RUNTIME_DIR=../../../runtime/ | ||
SLEDGE_BINARY_DIR=${RUNTIME_DIR}/bin | ||
HOSTNAME=localhost | ||
|
||
.PHONY: all | ||
all: run | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -rf res/* | ||
|
||
.PHONY: run | ||
run: | ||
LD_LIBRARY_PATH=${SLEDGE_BINARY_DIR} ${SLEDGE_BINARY_DIR}/sledgert spec.json | ||
|
||
.PHONY: debug | ||
debug: | ||
SLEDGE_DISABLE_PREEMPTION=true SLEDGE_NWORKERS=1 LD_LIBRARY_PATH=${SLEDGE_BINARY_DIR} gdb ${SLEDGE_BINARY_DIR}/sledgert \ | ||
--eval-command="handle SIGUSR1 noprint nostop" \ | ||
--eval-command="handle SIGPIPE noprint nostop" \ | ||
--eval-command="set pagination off" \ | ||
--eval-command="run spec.json" | ||
|
||
.PHONY: client | ||
client: | ||
curl -H 'Expect:' -H "Content-Type: image/jpeg" --data-binary "@cnn_faces.jpg" "${HOSTNAME}:10000/face" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# CNN Face Detection | ||
|
||
Originally, this workload returned an image where all the human faces were circles, along with the coordinates of the faces. It was modified to return a textual representation of faces, that is just the coordinates of the faces. | ||
|
||
The scripts DO NOT check for functional correctness of output for this reason. Please look at other scripts to have a better example for new applications. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[ | ||
{ | ||
"name": "gwu", | ||
"port": 10000, | ||
"replenishment-period-us": 0, | ||
"max-budget-us": 0, | ||
"reservation-percentile": 0, | ||
"routes": [ | ||
{ | ||
"route": "/face", | ||
"path": "cnn_face_detection.wasm.so", | ||
"admissions-percentile": 50, | ||
"expected-execution-us": 320000, | ||
"relative-deadline-us": 500000, | ||
"http-resp-content-type": "text/plain" | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters