Class to load deeplab model and run inference.
Definition at line 54 of file yolo_detector.py.
◆ __init__()
def detection.yolo_detector.YoloDetector.__init__ |
( |
|
self, |
|
|
|
model_dir, |
|
|
|
original_image_size, |
|
|
|
tensor_io, |
|
|
|
runCPU, |
|
|
|
gpu_percent = 1 |
|
) |
| |
◆ run_model_on_image()
def detection.yolo_detector.YoloDetector.run_model_on_image |
( |
|
self, |
|
|
|
image |
|
) |
| |
A function that sets up and runs an image through KittiSeg
Input: Image to process
Output: way_prediction, time_tf
Definition at line 92 of file yolo_detector.py.
◆ run_processed_image()
def detection.yolo_detector.YoloDetector.run_processed_image |
( |
|
self, |
|
|
|
image |
|
) |
| |
Runs inference on a single image.
Args:
image: A PIL.Image object, raw input image.
Returns:
resized_image: RGB image resized from original input image.
detected_classes: Segmentation map of `resized_image`.
Definition at line 102 of file yolo_detector.py.
◆ graph
detection.yolo_detector.YoloDetector.graph |
◆ hypes
detection.yolo_detector.YoloDetector.hypes |
◆ input_image_size
detection.yolo_detector.YoloDetector.input_image_size |
◆ input_tensor
detection.yolo_detector.YoloDetector.input_tensor |
◆ output_image_uncropped
detection.yolo_detector.YoloDetector.output_image_uncropped |
◆ output_tensor
detection.yolo_detector.YoloDetector.output_tensor |
◆ sess
detection.yolo_detector.YoloDetector.sess |
◆ tools
detection.yolo_detector.YoloDetector.tools |
The documentation for this class was generated from the following file: