diff --git a/download_dependencies.ps1 b/download_dependencies.ps1 index 1dd37759..c953613b 100644 --- a/download_dependencies.ps1 +++ b/download_dependencies.ps1 @@ -9,6 +9,6 @@ function Download($URL, $NAME){ Download -URL "https://deepquest.sfo2.digitaloceanspaces.com/deepstack/shared-files/sharedfiles.zip" -NAME "sharedfiles" Download -URL "https://deepquest.sfo2.digitaloceanspaces.com/deepstack/shared-files/interpreter.zip" -NAME "interpreter" Download -URL "https://deepquest.sfo2.digitaloceanspaces.com/deepstack/shared-files/redis.zip" -NAME "redis" -Download -URL "https://deepquest.sfo2.digitaloceanspaces.com/deepstack/gpu_env.zip" -NAME "windows_env_gpu" -Download -URL "https://deepquest.sfo2.digitaloceanspaces.com/deepstack/cpu_env.zip" -NAME "windows_env_cpu" +Download -URL "https://deepquest.sfo2.digitaloceanspaces.com/deepstack/windows_packages_cpu.zip" -NAME "windows_packages_cpu" +Download -URL "https://deepquest.sfo2.digitaloceanspaces.com/deepstack/windows_packages_gpu.zip" -NAME "windows_packages_gpu" Download -URL "https://deepquest.sfo2.digitaloceanspaces.com/deepstack/shared-files/windows_setup.zip" -NAME "windows_setup" diff --git a/generate_windows_setup.ps1 b/generate_windows_setup.ps1 index 6b0cb1aa..8f01344c 100644 --- a/generate_windows_setup.ps1 +++ b/generate_windows_setup.ps1 @@ -79,13 +79,12 @@ $setup_script += "`nSource: ""$PSScriptRoot\sharedfiles\yolov5m.pt""; DestDir: " $setup_script += "`nSource: ""$PSScriptRoot\sharedfiles\bebygan_x4.pth""; DestDir: ""{app}\sharedfiles""; Flags: ignoreversion" if($Platform -eq "CPU"){ - $setup_script += "`nSource: ""$PSScriptRoot\windows_env_cpu\*""; DestDir: ""{app}\windows_env""; Flags: ignoreversion recursesubdirs createallsubdirs" + $setup_script += "`nSource: ""$PSScriptRoot\windows_packages_cpu\*""; DestDir: ""{app}\windows_packages""; Flags: ignoreversion recursesubdirs createallsubdirs" } elseif($Platform -eq "GPU"){ - $setup_script += "`nSource: ""$PSScriptRoot\windows_env_gpu\*""; DestDir: ""{app}\windows_env""; Flags: ignoreversion recursesubdirs createallsubdirs" + $setup_script += "`nSource: ""$PSScriptRoot\windows_packages_gpu\*""; DestDir: ""{app}\windows_packages""; Flags: ignoreversion recursesubdirs createallsubdirs" } -$setup_script += "`nSource: ""$PSScriptRoot\run_script.bat""; DestDir: ""{app}""; Flags: ignoreversion" $setup_script += "`nSource: ""$PSScriptRoot\logo.ico""; DestDir: ""{app}""; Flags: ignoreversion" $setup_script += "`nSource: ""$PSScriptRoot\init.py""; DestDir: ""{app}""; Flags: ignoreversion" diff --git a/run_script.bat b/run_script.bat deleted file mode 100644 index 830d5bc7..00000000 --- a/run_script.bat +++ /dev/null @@ -1,3 +0,0 @@ -call C:\DeepStack\windows_env\Scripts\Activate.bat - -if "%2"=="" ( python %1 ) else ( python %1 --model %2 --name %3 ) diff --git a/server/server.go b/server/server.go index bb9db423..bb4f4f37 100644 --- a/server/server.go +++ b/server/server.go @@ -997,7 +997,7 @@ func main() { if PROFILE == "windows_native" { APPDIR = "C://DeepStack" - interpreter = "C://DeepStack//run_script.bat" + interpreter = filepath.Join(APPDIR, "interpreter", "python.exe") redis_server = filepath.Join(APPDIR, "redis", "redis-server.exe") os.Setenv("VISION-FACE", visionFace) @@ -1262,7 +1262,7 @@ func main() { modelcmd := exec.CommandContext(ctx, "bash", "-c", interpreter+" "+detectionScript+" --model "+file+" --name "+model_name) if PROFILE == "windows_native" { - modelcmd = exec.CommandContext(ctx, interpreter, detectionScript, file, model_name) + modelcmd = exec.CommandContext(ctx, interpreter, detectionScript, "--model", file, "--name", model_name) } startedProcesses = append(startedProcesses, modelcmd) modelcmd.Dir = filepath.Join(APPDIR, "intelligencelayer/shared")