File tree Expand file tree Collapse file tree 6 files changed +9
-37
lines changed
maldives_ecosystem_mapping Expand file tree Collapse file tree 6 files changed +9
-37
lines changed Original file line number Diff line number Diff line change 1
1
"""Forest loss driver classification project."""
2
2
3
3
from .predict_pipeline import (
4
- PredictPipelineConfig ,
5
4
predict_pipeline ,
6
5
select_best_images_pipeline ,
7
6
)
8
7
9
8
workflows = {
10
- "predict" : ( PredictPipelineConfig , predict_pipeline ) ,
11
- "select_best_images" : ( None , select_best_images_pipeline ) ,
9
+ "predict" : predict_pipeline ,
10
+ "select_best_images" : select_best_images_pipeline ,
12
11
}
Original file line number Diff line number Diff line change 3
3
from .predict_pipeline import predict_pipeline
4
4
5
5
workflows = {
6
- "predict" : ( None , predict_pipeline ) ,
6
+ "predict" : predict_pipeline ,
7
7
}
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def main() -> None:
21
21
args = parser .parse_args (args = sys .argv [1 :3 ])
22
22
23
23
module = importlib .import_module (f"rslp.{ args .project } " )
24
- workflow_fn = module .workflows [args .workflow ][ 1 ]
24
+ workflow_fn = module .workflows [args .workflow ]
25
25
jsonargparse .CLI (workflow_fn , args = sys .argv [3 :])
26
26
27
27
Original file line number Diff line number Diff line change 1
1
"""Maldives ecosystem mapping project."""
2
2
3
- from rslp .config import BaseTrainPipelineConfig
4
-
5
- from .data_pipeline import DataPipelineConfig , data_pipeline
3
+ from .data_pipeline import data_pipeline
6
4
from .predict_pipeline import maxar_predict_pipeline , sentinel2_predict_pipeline
7
- from .train_pipeline import maxar_train_pipeline , sentinel2_train_pipeline
8
5
9
6
workflows = {
10
- "data" : (DataPipelineConfig , data_pipeline ),
11
- "train_maxar" : (BaseTrainPipelineConfig , maxar_train_pipeline ),
12
- "train_sentinel2" : (BaseTrainPipelineConfig , sentinel2_train_pipeline ),
13
- "predict_maxar" : (None , maxar_predict_pipeline ),
14
- "predict_sentinel2" : (None , sentinel2_predict_pipeline ),
7
+ "data" : data_pipeline ,
8
+ "predict_maxar" : maxar_predict_pipeline ,
9
+ "predict_sentinel2" : sentinel2_predict_pipeline ,
15
10
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
from .predict_pipeline import predict_pipeline
4
4
5
5
workflows = {
6
- "predict" : ( None , predict_pipeline ) ,
6
+ "predict" : predict_pipeline ,
7
7
}
You can’t perform that action at this time.
0 commit comments