Skip to content

Commit 946e06f

Browse files
author
John Olafenwa
committed
fixed errors with windows versions
1 parent 940c15b commit 946e06f

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

download_dependencies.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ function Download($URL, $NAME){
99
Download -URL "https://deepquest.sfo2.digitaloceanspaces.com/deepstack/shared-files/sharedfiles.zip" -NAME "sharedfiles"
1010
Download -URL "https://deepquest.sfo2.digitaloceanspaces.com/deepstack/shared-files/interpreter.zip" -NAME "interpreter"
1111
Download -URL "https://deepquest.sfo2.digitaloceanspaces.com/deepstack/shared-files/redis.zip" -NAME "redis"
12-
Download -URL "https://deepquest.sfo2.digitaloceanspaces.com/deepstack/gpu_env.zip" -NAME "windows_env_gpu"
13-
Download -URL "https://deepquest.sfo2.digitaloceanspaces.com/deepstack/cpu_env.zip" -NAME "windows_env_cpu"
12+
Download -URL "https://deepquest.sfo2.digitaloceanspaces.com/deepstack/windows_packages_cpu.zip" -NAME "windows_packages_cpu"
13+
Download -URL "https://deepquest.sfo2.digitaloceanspaces.com/deepstack/windows_packages_gpu.zip" -NAME "windows_packages_gpu"
1414
Download -URL "https://deepquest.sfo2.digitaloceanspaces.com/deepstack/shared-files/windows_setup.zip" -NAME "windows_setup"

generate_windows_setup.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,12 @@ $setup_script += "`nSource: ""$PSScriptRoot\sharedfiles\yolov5m.pt""; DestDir: "
7979
$setup_script += "`nSource: ""$PSScriptRoot\sharedfiles\bebygan_x4.pth""; DestDir: ""{app}\sharedfiles""; Flags: ignoreversion"
8080

8181
if($Platform -eq "CPU"){
82-
$setup_script += "`nSource: ""$PSScriptRoot\windows_env_cpu\*""; DestDir: ""{app}\windows_env""; Flags: ignoreversion recursesubdirs createallsubdirs"
82+
$setup_script += "`nSource: ""$PSScriptRoot\windows_packages_cpu\*""; DestDir: ""{app}\windows_packages""; Flags: ignoreversion recursesubdirs createallsubdirs"
8383
}
8484
elseif($Platform -eq "GPU"){
85-
$setup_script += "`nSource: ""$PSScriptRoot\windows_env_gpu\*""; DestDir: ""{app}\windows_env""; Flags: ignoreversion recursesubdirs createallsubdirs"
85+
$setup_script += "`nSource: ""$PSScriptRoot\windows_packages_gpu\*""; DestDir: ""{app}\windows_packages""; Flags: ignoreversion recursesubdirs createallsubdirs"
8686
}
8787

88-
$setup_script += "`nSource: ""$PSScriptRoot\run_script.bat""; DestDir: ""{app}""; Flags: ignoreversion"
8988
$setup_script += "`nSource: ""$PSScriptRoot\logo.ico""; DestDir: ""{app}""; Flags: ignoreversion"
9089
$setup_script += "`nSource: ""$PSScriptRoot\init.py""; DestDir: ""{app}""; Flags: ignoreversion"
9190

run_script.bat

Lines changed: 0 additions & 3 deletions
This file was deleted.

server/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ func main() {
997997
if PROFILE == "windows_native" {
998998

999999
APPDIR = "C://DeepStack"
1000-
interpreter = "C://DeepStack//run_script.bat"
1000+
interpreter = filepath.Join(APPDIR, "interpreter", "python.exe")
10011001
redis_server = filepath.Join(APPDIR, "redis", "redis-server.exe")
10021002

10031003
os.Setenv("VISION-FACE", visionFace)
@@ -1262,7 +1262,7 @@ func main() {
12621262

12631263
modelcmd := exec.CommandContext(ctx, "bash", "-c", interpreter+" "+detectionScript+" --model "+file+" --name "+model_name)
12641264
if PROFILE == "windows_native" {
1265-
modelcmd = exec.CommandContext(ctx, interpreter, detectionScript, file, model_name)
1265+
modelcmd = exec.CommandContext(ctx, interpreter, detectionScript, "--model", file, "--name", model_name)
12661266
}
12671267
startedProcesses = append(startedProcesses, modelcmd)
12681268
modelcmd.Dir = filepath.Join(APPDIR, "intelligencelayer/shared")

0 commit comments

Comments
 (0)