Make data directories make more sense

This commit is contained in:
Matt McWilliams 2023-06-29 09:39:17 -04:00
parent 7be4b8454d
commit 4f15c10111
5 changed files with 12 additions and 5 deletions

4
data/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
*
!datasets
!.gitignore

3
datasets/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*
!.gitignore

View File

@ -1,2 +1,2 @@
YOLO_WEB_URL=http://localhost:3333
YOLOv5=../yolo_train/
DATASETS./datasets

View File

@ -2,10 +2,10 @@
set -e
mkdir -p data
touch data/queue.sqlite
npm i
cat ./sql/setup.sql | sqlite3 data/queue.sqlite
bash ./scripts/build_web.sh
bash ./scripts/build_web.sh

View File

@ -28,8 +28,8 @@ NAME=$(echo $JSON | jq -r '.name')
FILEPATH=$(echo $JSON | jq -r '.path')
DOWNLOAD="${YOLO_WEB_URL}${FILEPATH}"
DEST="${YOLOv5}${DATASET}.zip"
UNZIPPED="${YOLOv5}${DATASET}"
DEST="${DATASETS}/${DATASET}.zip"
UNZIPPED="${DATASETS}/${DATASET}"
echo "Downloading ${DOWNLOAD}"