Skip to content

Commit

Permalink
Run dvc.yaml pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
alex000kim committed Jan 6, 2024
1 parent f967904 commit 4244f3d
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 1 deletion.
111 changes: 111 additions & 0 deletions dvc.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
schema: '2.0'
stages:
data_split:
cmd: python src/data_split.py
deps:
- path: data/pool_data
hash: md5
md5: 14d187e749ee5614e105741c719fa185.dir
size: 18999874
nfiles: 183
- path: src/data_split.py
hash: md5
md5: 280fa1684c5496fb9f76ff8c96bd2561
size: 1035
params:
params.yaml:
base:
random_seed: 42
data_split:
test_regions:
- REGION_1
outs:
- path: data/test_data
hash: md5
md5: 1bb16eb1219b47a8bf711ade27c476e4.dir
size: 2087761
nfiles: 24
- path: data/train_data
hash: md5
md5: a28a7e4d342c27c1d7ad3c17ec1dfa7a.dir
size: 16905965
nfiles: 158
train:
cmd: python src/train.py
deps:
- path: data/train_data
hash: md5
md5: a28a7e4d342c27c1d7ad3c17ec1dfa7a.dir
size: 16905965
nfiles: 158
- path: src/train.py
hash: md5
md5: 9db72f1631f53eecb232bc48992c425a
size: 2507
params:
params.yaml:
base:
random_seed: 42
train:
valid_pct: 0.1
arch: shufflenet_v2_x2_0
img_size: 256
batch_size: 8
fine_tune_args:
epochs: 8
base_lr: 0.01
outs:
- path: models/model.pkl
hash: md5
md5: 291ff7e6d8598ff8014bbd82d0dd66c5
size: 201597
- path: models/model.pth
hash: md5
md5: 1037bc558b488ee42d4e64765f2eb3c8
size: 165147
- path: results/train
hash: md5
md5: eddff561ccb317a9b83f7adc171d86ea.dir
size: 959
nfiles: 5
evaluate:
cmd: python src/evaluate.py
deps:
- path: data/test_data
hash: md5
md5: 1bb16eb1219b47a8bf711ade27c476e4.dir
size: 2087761
nfiles: 24
- path: models/model.pkl
hash: md5
md5: 291ff7e6d8598ff8014bbd82d0dd66c5
size: 201597
- path: src/evaluate.py
hash: md5
md5: 84d2fd3b371546730396a763a51527a0
size: 3322
params:
params.yaml:
base:
random_seed: 42
evaluate:
n_samples_to_save: 10
outs:
- path: results/evaluate
hash: md5
md5: 7ab8b30466fcfc22320670b124d12ef1.dir
size: 1258001
nfiles: 11
sagemaker:
cmd: cp models/model.pth sagemaker/code/model.pth && cd sagemaker && tar -cpzf
model.tar.gz code/ && cd .. && mv sagemaker/model.tar.gz . && rm sagemaker/code/model.pth
deps:
- path: models/model.pth
hash: md5
md5: 1037bc558b488ee42d4e64765f2eb3c8
size: 165147
outs:
- path: model.tar.gz
hash: md5
md5: 6bf6b84ff1011b27f74f8c158ecb237a
size: 145874
3 changes: 2 additions & 1 deletion dvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metrics:
plots:
- results/train/plots/metrics:
x: step
- results/evaluate/plots/images
artifacts:
pool-segmentation:
path: models/model.pkl
Expand All @@ -16,7 +17,7 @@ artifacts:
- cv
- segmentation
- satellite-images
- unet
- shufflenet_v2_x2_0
stages:
data_split:
cmd: python src/data_split.py
Expand Down

0 comments on commit 4244f3d

Please sign in to comment.