forked from thuml/Autoformer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 696 Bytes
/
Makefile
File metadata and controls
31 lines (25 loc) · 696 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
IMAGE := autoformer
ROOT := $(shell dirname $(realpath $(firstword ${MAKEFILE_LIST})))
DOCKER_PARAMETERS := \
--user $(shell id -u) \
--gpus all \
-v ${ROOT}:/app \
-w /app \
-e HOME=/tmp
init:
docker build -t ${IMAGE} .
get_dataset:
mkdir -p dataset/ && \
make run_module module="python -m utils.download_data" && \
unzip dataset/datasets.zip -d dataset/ && \
mv dataset/all_six_datasets/* dataset && \
rm -r dataset/all_six_datasets dataset/__MACOSX
run_module: .require-module
docker run -i --rm ${DOCKER_PARAMETERS} \
${IMAGE} ${module}
bash_docker:
docker run -it --rm ${DOCKER_PARAMETERS} ${IMAGE}
.require-module:
ifndef module
$(error module is required)
endif