Skip to content

Commit 63b3398

Browse files
Merge pull request #1341 from roboflow/fix/return-empty-results-if-no-dynamic-zone-was-found
When dynamic zone was not found, return empty result
2 parents 1f1ef78 + d6f34e5 commit 63b3398

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • inference/core/workflows/core_steps/transformations/dynamic_zones

inference/core/workflows/core_steps/transformations/dynamic_zones/v1.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,4 +312,12 @@ def run(
312312
OUTPUT_KEY_SIMPLIFICATION_CONVERGED: all_converged,
313313
}
314314
)
315+
if not result:
316+
result.append(
317+
{
318+
OUTPUT_KEY: [],
319+
OUTPUT_KEY_DETECTIONS: None,
320+
OUTPUT_KEY_SIMPLIFICATION_CONVERGED: False,
321+
}
322+
)
315323
return result

0 commit comments

Comments
 (0)