handle non zero tiles
Browse files
inference_tab/inference_logic.py
CHANGED
|
@@ -83,6 +83,8 @@ def run_inference(tile_dict, gcp_path,user_crs, city_name, score_th, hist_th, hi
|
|
| 83 |
if "No labels detected" in msg:
|
| 84 |
stop_pipeline = True
|
| 85 |
break
|
|
|
|
|
|
|
| 86 |
|
| 87 |
if stop_pipeline:
|
| 88 |
yield log + "Pipeline stopped: no text segments found.\n", None
|
|
|
|
| 83 |
if "No labels detected" in msg:
|
| 84 |
stop_pipeline = True
|
| 85 |
break
|
| 86 |
+
else:
|
| 87 |
+
stop_pipeline=False
|
| 88 |
|
| 89 |
if stop_pipeline:
|
| 90 |
yield log + "Pipeline stopped: no text segments found.\n", None
|