Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions rslp/forest_loss_driver/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
"""Forest loss driver classification project."""

from .predict_pipeline import (
PredictPipelineConfig,
predict_pipeline,
select_best_images_pipeline,
)

workflows = {
"predict": (PredictPipelineConfig, predict_pipeline),
"select_best_images": (None, select_best_images_pipeline),
"predict": predict_pipeline,
"select_best_images": select_best_images_pipeline,
}
2 changes: 1 addition & 1 deletion rslp/landsat_vessels/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
from .predict_pipeline import predict_pipeline

workflows = {
"predict": (None, predict_pipeline),
"predict": predict_pipeline,
}
2 changes: 1 addition & 1 deletion rslp/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def main() -> None:
args = parser.parse_args(args=sys.argv[1:3])

module = importlib.import_module(f"rslp.{args.project}")
workflow_fn = module.workflows[args.workflow][1]
workflow_fn = module.workflows[args.workflow]
jsonargparse.CLI(workflow_fn, args=sys.argv[3:])


Expand Down
13 changes: 4 additions & 9 deletions rslp/maldives_ecosystem_mapping/__init__.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
"""Maldives ecosystem mapping project."""

from rslp.config import BaseTrainPipelineConfig

from .data_pipeline import DataPipelineConfig, data_pipeline
from .data_pipeline import data_pipeline
from .predict_pipeline import maxar_predict_pipeline, sentinel2_predict_pipeline
from .train_pipeline import maxar_train_pipeline, sentinel2_train_pipeline

workflows = {
"data": (DataPipelineConfig, data_pipeline),
"train_maxar": (BaseTrainPipelineConfig, maxar_train_pipeline),
"train_sentinel2": (BaseTrainPipelineConfig, sentinel2_train_pipeline),
"predict_maxar": (None, maxar_predict_pipeline),
"predict_sentinel2": (None, sentinel2_predict_pipeline),
"data": data_pipeline,
"predict_maxar": maxar_predict_pipeline,
"predict_sentinel2": sentinel2_predict_pipeline,
}
22 changes: 0 additions & 22 deletions rslp/maldives_ecosystem_mapping/train_pipeline.py

This file was deleted.

2 changes: 1 addition & 1 deletion rslp/sentinel2_vessels/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
from .predict_pipeline import predict_pipeline

workflows = {
"predict": (None, predict_pipeline),
"predict": predict_pipeline,
}
Loading