Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

dvc.yaml 2.0 KB

You have to be logged in to leave a comment. Sign In
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
  1. stages:
  2. gen-dag:
  3. cmd:
  4. - dvc dag --full --md >> ${gen-dag.output}
  5. - dvc dag -o --md >> ${gen-dag.output}
  6. always_changed: true
  7. outs:
  8. - ${gen-dag.output}
  9. environment-check:
  10. cmd: >
  11. python -m src.pipeline.environment_check
  12. always_changed: true
  13. deps:
  14. - ${src.pipeline.environment-check}
  15. outs:
  16. - ${environment-check.output}
  17. params:
  18. - environment-check
  19. train-model:
  20. vars:
  21. - model.hyper.yaml:initial-weights
  22. - data.yaml
  23. cmd: >
  24. python -u -m src.pipeline.train_model
  25. | tee ${train-pipeline.output.log}
  26. deps:
  27. # previous stage
  28. - ${environment-check.output}
  29. # src code
  30. - ${src.pipeline.train-model}
  31. - ${src.current-model}
  32. # data/weight
  33. - ${sample-data.path}
  34. - ${initial-weights}
  35. outs:
  36. - ${train-pipeline.output.log}
  37. - ${train-pipeline.summary}:
  38. persist: true
  39. - ${train-pipeline.output.model}:
  40. persist: true
  41. params:
  42. - src.current-model
  43. - train-pipeline
  44. - model.hyper.yaml: #! DANGER: DO NOT USE implicit name in params
  45. - train
  46. metrics:
  47. - ${train-pipeline.output.metric.folder}${train-pipeline.output.metric.general}
  48. evaluate:
  49. cmd: >
  50. python -u -m src.pipeline.evaluate
  51. | tee ${evaluate.output.log}
  52. deps:
  53. # previous stage
  54. - ${environment-check.output}
  55. - ${evaluate.model-weight} #weight
  56. # src code
  57. - ${src.pipeline.evaluate}
  58. - ${src.current-model}
  59. # data
  60. - ${evaluate.data.path}
  61. params:
  62. - evaluate
  63. - src.current-model
  64. - model.hyper.yaml:
  65. - inference
  66. metrics:
  67. - ${evaluate.output.metric}
  68. # plots
  69. plots:
  70. - loss_bounding_box:
  71. title: MaskRCNN on BBox
  72. template: linear
  73. y:
  74. out/train.metrics/epoch_mrcnn_bbox_loss.json: value
  75. out/train.metrics/epoch_val_mrcnn_bbox_loss.json: value
  76. x_label: 'Epoch'
  77. y_label: 'Loss'
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...