You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 5, 2024. It is now read-only.
Copy file name to clipboardexpand all lines: README.md
+15-3
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ We utilize state-of-the-art object deteciton and tracking algorithm in surveilla
30
30
## Dependencies
31
31
The code is originally written for Tensorflow v1.10 with Python 2.7 but it works on v1.13.1, too. Note that I didn't change the code for v1.13.1 instead I just disable Tensorflow warnings and logging.
32
32
33
-
Other dependencies: numpy; scipy; sklearn; cv2
33
+
Other dependencies: numpy; scipy; sklearn; cv2; matplotlib; pycocotools
34
34
35
35
## Code Overview
36
36
-`obj_detect.py`: Inference code for object detection.
The object detection output for each frame will be in `test_json_out/` and in COCO format. The visualization frames will be in `test_vis_out/`. The ROI features will be in `test_box_feat_out/`. Remove `--visualize --vis_path test_vis_out` and `--get_box_feat --box_feat_path test_box_feat_out` if you only want the json files.
59
+
The object detection output for each frame will be in `test_json_out/` and in COCO format. The visualization frames will be in `test_vis_out/`. The ROI features will be in `test_box_feat_out/`. Remove `--visualize --vis_path test_vis_out` and `--get_box_feat --box_feat_path test_box_feat_out` if you only want the json files. You can also add `--is_load_from_pb` and change '--model_path' to point to a frozen graph to boost the inferencing speed a bit.
60
60
61
61
3. Run object detection & tracking on the test videos
Copy file name to clipboardexpand all lines: main.py
+21-156
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@
4
4
5
5
importsys,os,argparse
6
6
os.environ['TF_CPP_MIN_LOG_LEVEL'] ='3'# so here won't have poll allocator info
7
+
# solve the issue of a bug in while loop, when you import the graph in multi-gpu, prefix is not added in while loop op # https://github.com/tensorflow/tensorflow/issues/26526
8
+
os.environ['TF_ENABLE_CONTROL_FLOW_V2'] ='1'
7
9
8
10
# remove all the annoying warnings from tf v1.10 to v1.13
tfconfig.gpu_options.allow_growth=True# this way it will only allocate nessasary gpu, not take all
1425
1387
1426
1388
tfconfig.gpu_options.visible_device_list="%s"%(",".join(["%s"%iforiinrange(config.gpuid_start, config.gpuid_start+config.gpu)])) # so only this gpu will be used
0 commit comments