Skip to content

Commit ba6e463

Browse files
Flush file after each batch
1 parent 5e5efba commit ba6e463

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

object_detection/object_detection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ def run_model(
322322
"result": result.to_json(threshold=0.1),
323323
}
324324
f.write(json.dumps(output) + "\n")
325+
f.flush()
325326

326327

327328
def parse_args():

0 commit comments

Comments
 (0)