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 YOLO_WEB_URL=http://localhost:3333
YOLOv5=../yolo_train/ DATASETS./datasets

View File

@ -2,7 +2,7 @@
set -e set -e
mkdir -p data
touch data/queue.sqlite touch data/queue.sqlite
npm i npm i

View File

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