-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·40 lines (36 loc) · 1.13 KB
/
run.sh
File metadata and controls
executable file
·40 lines (36 loc) · 1.13 KB
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
33
34
35
36
37
38
39
40
#!/bin/bash
set -e
ROOT="$(cd "$(dirname "$0")" && pwd)"
# Stage 1: raw conversion
#container run --rm -m 8g \
# -v "$ROOT/data/input:/app/input" \
# -v "$ROOT/data/raw_consumer:/app/output" \
# -v "$ROOT/raw_consumer/log:/app/log" \
# -e INPUT_DIR=/app/input \
# -e OUTPUT_DIR=/app/output \
# -e LOG_DIR=/app/log \
# -e PIPELINE_STAGE=RAW \
# echoflow-raw python main.py
# Stage 2: preprocessing
#container run --rm -m 4g \
# -v "$ROOT/data/raw_consumer:/app/input" \
# -v "$ROOT/data/preprocessing:/app/output" \
# -v "$ROOT/preprocessing/log:/app/log" \
# -e INPUT_DIR=/app/input \
# -e OUTPUT_DIR=/app/output \
# -e LOG_DIR=/app/log \
# -e PIPELINE_STAGE=PRE \
# echoflow-pre python main.py
# Stage 3: inference
container run --rm -m 8g \
-v "$ROOT/data/preprocessing:/app/input" \
-v "$ROOT/data/inference:/app/output" \
-v "$ROOT/inference/log:/app/log" \
-e INPUT_DIR=/app/input \
-e OUTPUT_DIR=/app/output \
-e LOG_DIR=/app/log \
-e PIPELINE_STAGE=INFER \
-e ARCH=vit_tiny \
-e PATCH_SZ=16 \
-e DOWNSAMPLE_SIZE=5000 \
echoflow-infer python main.py