zhreshold commented on a change in pull request #9808: [MXNET-267] Ssd camera 
demo
URL: https://github.com/apache/incubator-mxnet/pull/9808#discussion_r179674764
 
 

 ##########
 File path: example/ssd/demo.py
 ##########
 @@ -131,13 +138,59 @@ def parse_data_shape(data_shape_str):
         raise ValueError("Unexpected data_shape: %s", data_shape_str)
     return data_shape
 
-if __name__ == '__main__':
-    args = parse_args()
-    if args.cpu:
-        ctx = mx.cpu()
-    else:
-        ctx = mx.gpu(args.gpu_id)
+def draw_detection(frame, det, class_names):
 
 Review comment:
   now we have two versions of drawing function, one with cv2, one with 
matplotlib. Is it necessary?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to