Class to load deeplab model and run inference.
Definition at line 54 of file yolo_detector.py.
def detection.yolo_detector.YoloDetector.__init__ |
( |
|
self, |
|
|
|
model_dir, |
|
|
|
original_image_size, |
|
|
|
tensor_io, |
|
|
|
runCPU, |
|
|
|
gpu_percent = 1 |
|
) |
| |
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.
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.
detection.yolo_detector.YoloDetector.graph |
detection.yolo_detector.YoloDetector.hypes |
detection.yolo_detector.YoloDetector.input_image_size |
detection.yolo_detector.YoloDetector.input_tensor |
detection.yolo_detector.YoloDetector.output_image_uncropped |
detection.yolo_detector.YoloDetector.output_tensor |
detection.yolo_detector.YoloDetector.sess |
detection.yolo_detector.YoloDetector.tools |
The documentation for this class was generated from the following file: