minor renames

This commit is contained in:
Dimitrii
2021-08-18 12:08:00 +03:00
parent b27d031c92
commit 4c748e7ba4
2 changed files with 8 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
.ONESHELL: .ONESHELL:
.PHONY: download build clean .PHONY: download_darknet build clean
# Latest battletested AlexeyAB version of Darknet commit # Latest battletested AlexeyAB version of Darknet commit
LATEST_COMMIT?=f056fc3b6a11528fa0522a468eca1e909b7004b7 LATEST_COMMIT?=f056fc3b6a11528fa0522a468eca1e909b7004b7
@@ -8,7 +8,7 @@ LATEST_COMMIT?=f056fc3b6a11528fa0522a468eca1e909b7004b7
TMP_DIR?=/tmp/ TMP_DIR?=/tmp/
# Download AlexeyAB version of Darknet # Download AlexeyAB version of Darknet
download: download_darknet:
rm -rf $(TMP_DIR)install_darknet rm -rf $(TMP_DIR)install_darknet
mkdir $(TMP_DIR)install_darknet mkdir $(TMP_DIR)install_darknet
git clone https://github.com/AlexeyAB/darknet.git $(TMP_DIR)install_darknet git clone https://github.com/AlexeyAB/darknet.git $(TMP_DIR)install_darknet
@@ -17,7 +17,7 @@ download:
cd - cd -
# Build AlexeyAB version of Darknet for usage with CPU only. # Build AlexeyAB version of Darknet for usage with CPU only.
build: build_darknet:
cd $(TMP_DIR)install_darknet cd $(TMP_DIR)install_darknet
sed -i -e 's/GPU=1/GPU=0/g' Makefile sed -i -e 's/GPU=1/GPU=0/g' Makefile
sed -i -e 's/CUDNN=1/CUDNN=0/g' Makefile sed -i -e 's/CUDNN=1/CUDNN=0/g' Makefile
@@ -27,7 +27,7 @@ build:
cd - cd -
# Build AlexeyAB version of Darknet for usage with both CPU and GPU (CUDA by NVIDIA). # Build AlexeyAB version of Darknet for usage with both CPU and GPU (CUDA by NVIDIA).
build_gpu: build_darknet_gpu:
cd $(TMP_DIR)install_darknet cd $(TMP_DIR)install_darknet
sed -i -e 's/GPU=0/GPU=1/g' Makefile sed -i -e 's/GPU=0/GPU=1/g' Makefile
sed -i -e 's/CUDNN=0/CUDNN=1/g' Makefile sed -i -e 's/CUDNN=0/CUDNN=1/g' Makefile
@@ -49,7 +49,7 @@ clean:
rm -rf $(TMP_DIR)install_darknet rm -rf $(TMP_DIR)install_darknet
# Do every step for CPU-based only build. # Do every step for CPU-based only build.
install: download build sudo_install clean install_darknet: download_darknet build_darknet sudo_install clean
# Do every step for both CPU and GPU-based build. # Do every step for both CPU and GPU-based build.
install_gpu: download build_gpu sudo_install clean install_darknet_gpu: download_darknet build_darknet_gpu sudo_install clean

View File

@@ -41,11 +41,11 @@ Use provided [Makefile](Makefile).
* For CPU-based instalattion: * For CPU-based instalattion:
```shell ```shell
make install make install_darknet
``` ```
* For both CPU and GPU-based instalattion: * For both CPU and GPU-based instalattion:
```shell ```shell
make install_gpu make install_darknet_gpu
``` ```
Note: If you want to have GPU-acceleration before running command above install [CUDA](https://developer.nvidia.com/cuda-downloads) and [cuDNN](https://developer.nvidia.com/cudnn) (Latest CUDA version I've tested is [10.2](https://developer.nvidia.com/cuda-10.2-download-archive) and cuDNN is [7.6.5](https://developer.nvidia.com/rdp/cudnn-archive#a-collapse765-102)) Note: If you want to have GPU-acceleration before running command above install [CUDA](https://developer.nvidia.com/cuda-downloads) and [cuDNN](https://developer.nvidia.com/cudnn) (Latest CUDA version I've tested is [10.2](https://developer.nvidia.com/cuda-10.2-download-archive) and cuDNN is [7.6.5](https://developer.nvidia.com/rdp/cudnn-archive#a-collapse765-102))