DARTS Reference¶
darts
¶
DARTS processing pipeline.
__version__ = version('darts-nextgen')
module-attribute
¶
run_native_planet_pipeline(orthotiles_dir, scenes_dir, output_data_dir, arcticdem_slope_vrt, arcticdem_elevation_vrt, model_dir, tcvis_model_name='RTS_v6_tcvis.pt', notcvis_model_name='RTS_v6_notcvis.pt', cache_dir=None, ee_project=None, patch_size=1024, overlap=16, batch_size=8, reflection=0)
¶
Search for all PlanetScope scenes in the given directory and runs the segmentation pipeline on them.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
orthotiles_dir
|
Path
|
The directory containing the PlanetScope orthotiles. |
required |
scenes_dir
|
Path
|
The directory containing the PlanetScope scenes. |
required |
output_data_dir
|
Path
|
The "output" directory. |
required |
arcticdem_slope_vrt
|
Path
|
The path to the ArcticDEM slope VRT file. |
required |
arcticdem_elevation_vrt
|
Path
|
The path to the ArcticDEM elevation VRT file. |
required |
model_dir
|
Path
|
The path to the models to use for segmentation. |
required |
tcvis_model_name
|
str
|
The name of the model to use for TCVis. Defaults to "RTS_v6_tcvis.pt". |
'RTS_v6_tcvis.pt'
|
notcvis_model_name
|
str
|
The name of the model to use for not TCVis. Defaults to "RTS_v6_notcvis.pt". |
'RTS_v6_notcvis.pt'
|
cache_dir
|
Path | None
|
The cache directory. If None, no caching will be used. Defaults to None. |
None
|
ee_project
|
str
|
The Earth Engine project ID or number to use. May be omitted if
project is defined within persistent API credentials obtained via |
None
|
patch_size
|
int
|
The patch size to use for inference. Defaults to 1024. |
1024
|
overlap
|
int
|
The overlap to use for inference. Defaults to 16. |
16
|
batch_size
|
int
|
The batch size to use for inference. Defaults to 8. |
8
|
reflection
|
int
|
The reflection padding to use for inference. Defaults to 0. |
0
|
Todo
Document the structure of the input data dir.
Source code in darts/src/darts/native.py
run_native_sentinel2_pipeline(sentinel2_dir, output_data_dir, arcticdem_slope_vrt, arcticdem_elevation_vrt, model_dir, tcvis_model_name='RTS_v6_tcvis.pt', notcvis_model_name='RTS_v6_notcvis.pt', cache_dir=None, ee_project=None, patch_size=1024, overlap=16, batch_size=8, reflection=0)
¶
Search for all PlanetScope scenes in the given directory and runs the segmentation pipeline on them.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sentinel2_dir
|
Path
|
The directory containing the Sentinel 2 scenes. |
required |
output_data_dir
|
Path
|
The "output" directory. |
required |
arcticdem_slope_vrt
|
Path
|
The path to the ArcticDEM slope VRT file. |
required |
arcticdem_elevation_vrt
|
Path
|
The path to the ArcticDEM elevation VRT file. |
required |
model_dir
|
Path
|
The path to the models to use for segmentation. |
required |
tcvis_model_name
|
str
|
The name of the model to use for TCVis. Defaults to "RTS_v6_tcvis.pt". |
'RTS_v6_tcvis.pt'
|
notcvis_model_name
|
str
|
The name of the model to use for not TCVis. Defaults to "RTS_v6_notcvis.pt". |
'RTS_v6_notcvis.pt'
|
cache_dir
|
Path | None
|
The cache directory. If None, no caching will be used. Defaults to None. |
None
|
ee_project
|
str
|
The Earth Engine project ID or number to use. May be omitted if
project is defined within persistent API credentials obtained via |
None
|
patch_size
|
int
|
The patch size to use for inference. Defaults to 1024. |
1024
|
overlap
|
int
|
The overlap to use for inference. Defaults to 16. |
16
|
batch_size
|
int
|
The batch size to use for inference. Defaults to 8. |
8
|
reflection
|
int
|
The reflection padding to use for inference. Defaults to 0. |
0
|
Todo
Document the structure of the input data dir.