-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpost_install.bat
More file actions
23 lines (20 loc) · 862 Bytes
/
post_install.bat
File metadata and controls
23 lines (20 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
:: Post-Installation script ::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:: Object Detection (YOLOv5 3.1)
::
:: The setup.bat file will find this post_install.bat file and execute it.
::
:: For help with install scripts, notes on variables and methods available, tips,
:: and explanations, see /src/modules/install_script_help.md
@if "%1" NEQ "post-install" (
echo This script is only called from ..\..\CodeProject.AI-Server\src\setup.bat
@pause
@goto:eof
)
if "!cuda_major_version!" == "11" (
copy "!moduleDirPath!\patch\torch\cuda11\upsampling.py" "!packagesDirPath!\torch\nn\modules\."
) else if "!cuda_major_version!" == "12" (
copy "!moduleDirPath!\patch\torch\cuda11\upsampling.py" "!packagesDirPath!\torch\nn\modules\."
)
REM TODO: Check assets created and has files
REM set moduleInstallErrors=...