mirror of https://github.com/AlexeyAB/darknet.git
28 lines
891 B
PowerShell
Executable File
28 lines
891 B
PowerShell
Executable File
## enable or disable installed components
|
|
|
|
$install_cuda=$true
|
|
|
|
###########################
|
|
|
|
# Download and install Chocolatey
|
|
Set-ExecutionPolicy unrestricted
|
|
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
|
choco.exe install -y cmake ninja powershell git vscode
|
|
choco-exe install -y visualstudio2019buildtools --package-parameters "--add Microsoft.VisualStudio.Component.VC.CoreBuildTools --includeRecommended --includeOptional --passive --locale en-US --lang en-US"
|
|
|
|
if ($install_cuda) {
|
|
choco-exe install -y cuda
|
|
$features = "full"
|
|
}
|
|
else {
|
|
$features = "opencv-base,weights,weights-train"
|
|
}
|
|
|
|
Remove-Item -r $temp_folder
|
|
Set-Location ..
|
|
Set-Location $vcpkg_folder\
|
|
git.exe clone https://github.com/microsoft/vcpkg
|
|
Set-Location vcpkg
|
|
.\bootstrap-vcpkg.bat -disableMetrics
|
|
.\vcpkg.exe install darknet[${features}]:x64-windows
|