How to use the deepforest.preprocess.split_raster function in deepforest

To help you get started, we’ve selected a few deepforest examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github weecology / DeepForest / tests / test_preprocess.py View on Github external
def test_split_raster(config):
    annotations_file = preprocess.split_raster(config["path_to_raster"], config["annotations_file"], "tests/data/",config["patch_size"], config["patch_overlap"])
    
    #Returns a 6 column pandas array
    assert annotations_file.shape[1] == 6