small changes for connecting everything
Browse files
detectree2model/predictions/predict.py
CHANGED
@@ -64,7 +64,4 @@ def predict(tile_path, overlap_threshold, confidence_threshold, simplify_value,
|
|
64 |
|
65 |
def run_detectree2(tif_input_path, tile_width=20, tile_height=20, tile_buffer=20, overlap_threshold=0.35, confidence_threshold=0.2, simplify_value=0.2, store_path='./train_outputs/'):
|
66 |
tile_path = create_tiles(input_path=tif_input_path, tile_width=tile_width, tile_height=tile_height, tile_buffer=tile_buffer)
|
67 |
-
predict(tile_path=tile_path, overlap_threshold=overlap_threshold, confidence_threshold=confidence_threshold, simplify_value=simplify_value, store_path=store_path)
|
68 |
-
|
69 |
-
if __name__=="__main__":
|
70 |
-
run_detectree2(tif_input_path='/Users/jonathanseele/ETH/Hackathons/EcoHackathon/input_dataset/GeoData/TreeCrownVectorDataset.tif')
|
|
|
64 |
|
65 |
def run_detectree2(tif_input_path, tile_width=20, tile_height=20, tile_buffer=20, overlap_threshold=0.35, confidence_threshold=0.2, simplify_value=0.2, store_path='./train_outputs/'):
|
66 |
tile_path = create_tiles(input_path=tif_input_path, tile_width=tile_width, tile_height=tile_height, tile_buffer=tile_buffer)
|
67 |
+
predict(tile_path=tile_path, overlap_threshold=overlap_threshold, confidence_threshold=confidence_threshold, simplify_value=simplify_value, store_path=store_path)
|
|
|
|
|
|