-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.bat
50 lines (38 loc) · 1.18 KB
/
setup.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
:: Responsible for downloading files that are too large to distribute with the git repo,
:: as well as fetching the submodules required by this repo.
@echo off
setlocal
:: Pull the submodules that we need to compile
echo Downloading submodules...
echo.
git submodule update --init --recursive
echo.
echo Submodules downloaded.
echo.
:: Pull the really large files used by ofxDarknet
echo This script will download a few assets to the addons folder, as well
echo as several data files needed for the program to run. These files are
echo fairly large! You'll need about 1.5 GB of free space.
echo.
SET /P AREYOUSURE="Continue? (Y/n) "
IF /I "%AREYOUSURE%" NEQ "Y" GOTO END
echo.
call :DOWNLOAD "http://pjreddie.com/media/files/tiny-yolo.weights" "bin/data/data/darknet/tiny-yolo.weights"
call :DOWNLOAD "http://pjreddie.com/media/files/tiny-yolo-voc.weights" "bin/data/data/darknet/tiny-yolo-voc.weights"
echo.
echo Downloads completed!
echo.
pause&goto:eof
:END
endlocal
echo.&pause&goto:eof
:DOWNLOAD
if not exist %~2 (
REM Download the file
echo Downloading %~1...
powershell -Command "Invoke-WebRequest %~1 -OutFile %~2"
echo Download complete.
) else (
echo %~1% already exists.
)
EXIT /B 0