Skip to content

Using GPU for object detection during testing time. #2377

@phongnhhn92

Description

@phongnhhn92

Hello guys, I successfully trained my object detector using my custom dataset.Using the file object_detection_tutorial.ipynb provided from the original object detection module, I observed the fact that during the inference time, the CPU has to work a lot (almost 100%) while the GPU usage doesnt change much.
(boxes, scores, classes, num_detections) = sess.run([boxes, scores, classes, num_detections], feed_dict={image_tensor: image_np_expanded})
I suspect that 'feed_dict={image_tensor: image_np_expanded})` will use CPU for detection so I am asking you guys that is there any ways to utilize GPU for object detection using Tensorflow ?
In my case, it took 0.3 s for SSD_MobileNets but FasterRCNN_resnet 101 took almost 8 second to make prediction for one image.
8x
highcpu

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions