Skip to content

Commit

Permalink
Merge branch '895-suppression-pipelines' into 'master'
Browse files Browse the repository at this point in the history
895 - Suppression des pipelines de CARS

Closes #895

See merge request 3d/cars-park/cars!752
  • Loading branch information
dyoussef committed Oct 24, 2024
2 parents f356138 + 05d40c5 commit 058cd61
Show file tree
Hide file tree
Showing 30 changed files with 3,604 additions and 4,378 deletions.
21 changes: 18 additions & 3 deletions cars/cars.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,24 @@ def main_cli(args, dry_run=False): # noqa: C901
del config["output"]["out_dir"]

config_json_dir = os.path.abspath(os.path.dirname(args.conf))
pipeline_name = config.get(
"pipeline", "sensors_to_dense_dsm_no_merging"
)
pipeline_name = config.get("pipeline", "default")
old_pipelines = [
"sensors_to_dense_dsm",
"sensors_to_dense_dsm_no_merging",
"sensors_to_dense_depth_maps",
"sensors_to_dense_point_clouds",
"dense_point_clouds_to_dense_dsm",
"dense_point_clouds_to_dense_dsm_no_merging",
]
if pipeline_name in old_pipelines:
warnings.warn(
f"The 'pipeline' value {pipeline_name} corresponds to"
" an old pipeline."
"Using the default CARS pipeline instead.",
FutureWarning,
stacklevel=2,
)
pipeline_name = "default"

# Logging configuration with args Loglevel
loglevel = getattr(args, "loglevel", "PROGRESS").upper()
Expand Down
4 changes: 4 additions & 0 deletions cars/orchestrator/orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,10 @@ def reset_registries(self):
"""
Reset registries
"""

# cleanup the current registry before replacing it, to save files
self.cars_ds_savers_registry.cleanup()

# reset registries
# CarsDataset savers registry
self.cars_ds_savers_registry = saver_registry.CarsDatasetsRegistrySaver(
Expand Down
4 changes: 1 addition & 3 deletions cars/pipelines/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,4 @@
"""

# Imports needed in order to register pipeline for Pipeline factory
from . import depth_maps_to_dsm # noqa: F401
from . import sensor_to_dense_dsm # noqa: F401
from . import sensor_to_sparse_dsm # noqa: F401
from . import default # noqa: F401
3 changes: 0 additions & 3 deletions cars/pipelines/conf_pipeline/depth_maps_to_dsm.json

This file was deleted.

4 changes: 0 additions & 4 deletions cars/pipelines/conf_pipeline/sensor_to_dense_dsm.json

This file was deleted.

8 changes: 0 additions & 8 deletions cars/pipelines/conf_pipeline/sensor_to_pc.json

This file was deleted.

2 changes: 0 additions & 2 deletions cars/pipelines/conf_pipeline/sensor_to_sparse_dsm.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@
# limitations under the License.
#
"""
CARS pipeline configuration init file
CARS default pipeline module init file
"""

# Cars imports
from cars.pipelines.default import default_pipeline # noqa: F401
Loading

0 comments on commit 058cd61

Please sign in to comment.