umgefahren
commited on
Commit
·
4e73bee
1
Parent(s):
6d63849
Run on GPU
Browse files- Dockerfile +1 -1
- detectree2model/predictions/predict.py +1 -1
Dockerfile
CHANGED
@@ -49,4 +49,4 @@ EXPOSE 7860
|
|
49 |
|
50 |
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD [ "curl", "localhost:7860" ]
|
51 |
|
52 |
-
CMD ["python", "main.py"]
|
|
|
49 |
|
50 |
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD [ "curl", "localhost:7860" ]
|
51 |
|
52 |
+
CMD ["python", "-u", "main.py"]
|
detectree2model/predictions/predict.py
CHANGED
@@ -55,7 +55,7 @@ def predict(tile_path, overlap_threshold, confidence_threshold, simplify_value,
|
|
55 |
cfg = setup_cfg(update_model=trained_model, out_dir=store_path)
|
56 |
|
57 |
# hash the following line if you have gpu support
|
58 |
-
cfg.MODEL.DEVICE = "cpu"
|
59 |
predict_on_data(tile_path, predictor=DefaultPredictor(cfg))
|
60 |
|
61 |
project_to_geojson(tile_path, tile_path + "predictions/", tile_path + "predictions_geo/")
|
|
|
55 |
cfg = setup_cfg(update_model=trained_model, out_dir=store_path)
|
56 |
|
57 |
# hash the following line if you have gpu support
|
58 |
+
# cfg.MODEL.DEVICE = "cpu"
|
59 |
predict_on_data(tile_path, predictor=DefaultPredictor(cfg))
|
60 |
|
61 |
project_to_geojson(tile_path, tile_path + "predictions/", tile_path + "predictions_geo/")
|