TilePipeline
Pre-built tile pipeline
PARAMETER | DESCRIPTION |
---|---|
grid
|
Grid
TYPE:
|
tile_fetcher
|
Tile fetcher
TYPE:
|
tiles_processor
|
Tiles processor
TYPE:
|
tile_loader_batch_size
|
Batch size
TYPE:
|
tile_loader_max_num_threads
|
Maximum number of threads
TYPE:
|
tile_loader_num_prefetched_tiles
|
Number of prefetched tiles
TYPE:
|
from_config
classmethod
Creates a tile pipeline from the configuration.
PARAMETER | DESCRIPTION |
---|---|
config
|
Configuration
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
TilePipeline
|
Tile pipeline |
__call__
Runs the tile pipeline.
TilePipelineConfig
Bases: pydantic.BaseModel
Configuration for the from_config
class method of TilePipeline
Create the configuration from a config file
- Use null instead of None
Example
You can create the configuration from a config file.
plugins_dir_path: null
grid_config:
...
tile_fetcher_config:
...
tile_loader_config:
batch_size: 1
max_num_threads: null
num_prefetched_tiles: 0
tiles_processor_config:
...
ATTRIBUTE | DESCRIPTION |
---|---|
plugins_dir_path |
Path to the plugins directory - defaults to None
TYPE:
|
grid_config |
Configuration for the grid
TYPE:
|
tile_fetcher_config |
Configuration for the tile fetcher
TYPE:
|
tile_loader_config |
Configuration for the tile loader -
defaults to
TYPE:
|
tiles_processor_config |
Configuration for the tiles processor
TYPE:
|
TileLoaderConfig
Bases: pydantic.BaseModel
Configuration for the tile loader in the tile pipeline
Create the configuration from a config file
- Use null instead of None
Example
You can create the configuration from a config file.
batch_size: 1
max_num_threads: null
num_prefetched_tiles: 0
ATTRIBUTE | DESCRIPTION |
---|---|
batch_size |
Batch size - defaults to 1
TYPE:
|
max_num_threads |
Maximum number of threads - defaults to None
TYPE:
|
num_prefetched_tiles |
Number of prefetched tiles - defaults to 0
TYPE:
|