Class to load deeplab model and run inference.
Definition at line 55 of file deeplab_segmenter.py.
def segmentation.deeplab_segmenter.DeepLabSegmenter.__init__ |
( |
|
self, |
|
|
|
model_dir, |
|
|
|
original_image_size, |
|
|
|
tensor_io, |
|
|
|
runCPU, |
|
|
|
gpu_percent = 1 |
|
) |
| |
def segmentation.deeplab_segmenter.DeepLabSegmenter.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 deeplab_segmenter.py.
def segmentation.deeplab_segmenter.DeepLabSegmenter.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.
seg_map: Segmentation map of `resized_image`.
Definition at line 115 of file deeplab_segmenter.py.
segmentation.deeplab_segmenter.DeepLabSegmenter.graph |
segmentation.deeplab_segmenter.DeepLabSegmenter.hypes |
segmentation.deeplab_segmenter.DeepLabSegmenter.input_image_size |
segmentation.deeplab_segmenter.DeepLabSegmenter.input_tensor |
segmentation.deeplab_segmenter.DeepLabSegmenter.output_image_uncropped |
segmentation.deeplab_segmenter.DeepLabSegmenter.output_tensor |
segmentation.deeplab_segmenter.DeepLabSegmenter.sess |
segmentation.deeplab_segmenter.DeepLabSegmenter.tools |
The documentation for this class was generated from the following file: