changed the directory name to avoid problems during import of real detectree2 model
Browse files
{detectree2 → detectree2model}/predictions/predict.ipynb
RENAMED
File without changes
|
{detectree2 → detectree2model}/predictions/predict.py
RENAMED
@@ -66,4 +66,5 @@ def run_detectree2(tif_input_path, tile_width=20, tile_height=20, tile_buffer=20
|
|
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 |
-
|
|
|
|
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')
|