Skip to content

Commit 7125af4

Browse files
committed
Naming / Comments
1 parent ef2a480 commit 7125af4

File tree

7 files changed

+27
-13
lines changed

7 files changed

+27
-13
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"deserialising",
4242
"deskew",
4343
"Dgram",
44+
"distutils",
4445
"downloadables",
4546
"downsampling",
4647
"dtype",

src/demos/modules/DotNetSimple/install.bat

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
:: Installation script :::::::::::::::::::::::::::::::::::::::::::::::::::::::::
22
::
3-
:: .NET YOLO Object Detection
3+
:: .NET Simple Demo
44
::
55
:: This script is only called from ..\..\..\setup.bat
66
::
@@ -13,7 +13,10 @@
1313
@goto:eof
1414
)
1515
if /i "!executionEnvironment!" == "Production" (
16-
call "!utilsScript!" WriteLine "No custom setup steps for this module." "!color_info!"
16+
REM Often we just pull down the pre-compiled binaries from the CDN when in
17+
REM production. This saves having to install the .NET SDK. This is a demo so
18+
REM do nothing here.
19+
call "!utilsScript!" WriteLine "Production install not supported" "!color_info!"
1720
) else (
1821
:: If we're in dev-setup mode we'll build the module now so the self-test will work
1922
pushd "!moduleDirPath!"

src/demos/modules/DotNetSimple/install.sh

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
# Development mode setup script ::::::::::::::::::::::::::::::::::::::::::::::
44
#
5-
# .NET YOLO Object Detection
5+
# .NET Simple Demo
66
#
7-
# This script is called from the ObjectDetectionYOLOv5Net directory using:
7+
# This script is called from the DotNetSimple directory using:
88
#
99
# bash ../../../setup.sh
1010
#
@@ -20,13 +20,23 @@ if [ "$1" != "install" ]; then
2020
fi
2121

2222
# Pull down the correct .NET executable for this module
23-
if [ "${executionEnvironment}" = "Production" ] || [ "${launchedBy}" = "server" ]; then
24-
imageName="${moduleId}-${moduleVersion}.zip"
25-
getFromServer "binaries/" "${imageName}" "bin" "Downloading ${imageName}..."
23+
if [ "${executionEnvironment}" = "Production" ]; then
24+
# Often we just pull down the pre-compiled binaries from the CDN when in
25+
# production. This saves having to install the .NET SDK. This is a demo so
26+
# do nothing here.
27+
28+
# imageName="${moduleId}-${moduleVersion}.zip"
29+
# getFromServer "binaries/" "${imageName}" "bin" "Downloading ${imageName}..."
30+
31+
writeLine "Production install not supported." "$color_info"
2632
else
2733
pushd "$moduleDirPath" >/dev/null
2834
writeLine "Building project..." "$color_info"
29-
dotnet build -c Debug -o "${moduleDirPath}/bin/Debug/${dotNetTarget}" >/dev/null
35+
if [ $verbosity = "quiet" ]; then
36+
dotnet build -c Debug -o "${moduleDirPath}/bin/Debug/${dotNetTarget}" >/dev/null
37+
else
38+
dotnet build -c Debug -o "${moduleDirPath}/bin/Debug/${dotNetTarget}"
39+
fi
3040
popd >/dev/null
3141
fi
3242

src/demos/modules/PythonSimple/install.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
:: Installation script :::::::::::::::::::::::::::::::::::::::::::::::::::::::::
22
::
3-
:: Object Detection (YOLOv8)
3+
:: Python Simple Demo
44
::
55
:: This script is only called from ..\..\..\setup.bat
66
::

src/demos/modules/PythonSimple/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
# Development mode setup script ::::::::::::::::::::::::::::::::::::::::::::::
44
#
5-
# Object Detection (YOLOv8)
5+
# Python Simple Demo
66
#
7-
# This script is called from the ObjectDetectionYOLOv8 directory using:
7+
# This script is called from the /demos/modules/PythonSimple directory using:
88
#
99
# bash ../../../setup.sh
1010
#

src/demos/modules/PythonSimple/modulesettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
"Method": "POST",
142142
"Command": "custom",
143143
"MeshEnabled": false,
144-
"Description": "Detects objects based on YOLO PyTorch models. Models are stored as .pt files in the /ObjectDetectionYOLOv8/assets directory, and to make a call to a specific model use /vision/custom/model-name, where 'model-name' is the name of the model's .pt file",
144+
"Description": "Detects objects based on YOLO PyTorch models. Models are stored as .pt files in the /PythonSimple/assets directory, and to make a call to a specific model use /vision/custom/model-name, where 'model-name' is the name of the model's .pt file",
145145
"Inputs": [
146146
{
147147
"Name": "image",

src/demos/modules/PythonSimple/post_install.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
:: Post-Installation script ::::::::::::::::::::::::::::::::::::::::::::::::::::
22
::
3-
:: Object Detection (YOLOv8)
3+
:: Python Simple
44
::
55
:: The setup.bat file will find this post_install.bat file and execute it.
66
::

0 commit comments

Comments
 (0)