-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.sh
More file actions
32 lines (24 loc) · 977 Bytes
/
setup.sh
File metadata and controls
32 lines (24 loc) · 977 Bytes
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
source ~/.bashrc
conda create -n paddleocr_lpr -y python=3.10.0
eval "$(conda shell.bash hook)"
conda activate paddleocr_lpr
dpkg -i setup/cuda-keyring_1.0-1_all.deb
apt-get update
source ~/.bashrc
eval "$(conda shell.bash hook)"
conda activate paddleocr_lpr
conda install pytorch==1.12.0 torchvision==0.13.0 -c pytorch -y
echo "export LD_LIBRARY_PATH=/root/miniconda3/envs/paddleocr_lpr/lib/python3.10/site-packages/nvidia/nvjitlink/lib:$LD_LIBRARY_PATH">>~/.bashrc
source ~/.bashrc
eval "$(conda shell.bash hook)"
conda activate paddleocr_lpr
pip install -r requirements.txt
conda install ipykernel -y
python -m ipykernel install --user --name=paddleocr_lpr
TARGET_DIR="./License_Plate_Recognition/PaddleOCR"
if [ ! -d "$TARGET_DIR" ]; then
echo "Cloning repository into $TARGET_DIR..."
git clone --single-branch --branch release/2.6 https://github.com/PaddlePaddle/PaddleOCR.git "$TARGET_DIR"
else
echo "Folder '$TARGET_DIR' already exists. Skipping clone."
fi