Add make fetch target using venv and add to ailab step
This commit is contained in:
parent
72c3420199
commit
b539aa8524
@ -90,4 +90,5 @@ ailab:
|
|||||||
- pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
- pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
script:
|
script:
|
||||||
|
- make fetch
|
||||||
- date
|
- date
|
||||||
8
Makefile
8
Makefile
@ -1,4 +1,6 @@
|
|||||||
.PHONY: FORCE emblemscanner-release
|
.PHONY: FORCE emblemscanner-release fetch
|
||||||
|
|
||||||
|
DATA_DIR ?= ../data
|
||||||
|
|
||||||
IMAGE_TAG := $(shell git rev-parse --short HEAD)
|
IMAGE_TAG := $(shell git rev-parse --short HEAD)
|
||||||
IMAGE_REPO := registry.gitlab.com/euphon/themblem
|
IMAGE_REPO := registry.gitlab.com/euphon/themblem
|
||||||
@ -84,6 +86,10 @@ deploy-api-prod:
|
|||||||
test: FORCE
|
test: FORCE
|
||||||
cd api; ./manage.py migrate && ./manage.py test tests
|
cd api; ./manage.py migrate && ./manage.py test tests
|
||||||
|
|
||||||
|
fetch: FORCE
|
||||||
|
cd emblem5 && ../venv/bin/python ai/fetch-scans.py --data-dir $(DATA_DIR)
|
||||||
|
cd emblem5 && ../venv/bin/python ai/make-sbs.py --data-dir $(DATA_DIR)
|
||||||
|
|
||||||
OPENCV_TAG := 4.9.0
|
OPENCV_TAG := 4.9.0
|
||||||
opencv/src/LICENSE:
|
opencv/src/LICENSE:
|
||||||
rm -rf opencv/src opencv/contrib
|
rm -rf opencv/src opencv/contrib
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user