Segformer Semantic Segmentation #315
linting_auto.yml
on: pull_request
Run C++/Python linters
11s
Annotations
4 errors and 2 warnings
src/perception/semantic_segmentation/launch/semantic_segmentation.launch.py#L11
'config',
'params.yaml'
)
-
+
resource_path = os.path.join(
get_package_share_directory('semantic_segmentation'),
'resource'
|
src/perception/semantic_segmentation/launch/semantic_segmentation.launch.py#L22
executable='semantic_segmentation_node',
name='semantic_segmentation_node',
parameters=[config,
- {'resource_path': resource_path}]
+ {'resource_path': resource_path}]
)
# finalize
|
src/perception/semantic_segmentation/semantic_segmentation/segmentation_node.py#L24
self.declare_parameter('MODEL_IMAGE_H', 1024)
self.declare_parameter('MODEL_IMAGE_W', 1024)
- self.config = os.path.join(self.get_parameter('resource_path').value, self.get_parameter('config').value)
- self.checkpoint = os.path.join(self.get_parameter('resource_path').value, self.get_parameter('checkpoint').value)
+ self.config = os.path.join(self.get_parameter(
+ 'resource_path').value, self.get_parameter('config').value)
+ self.checkpoint = os.path.join(self.get_parameter(
+ 'resource_path').value, self.get_parameter('checkpoint').value)
self.compressed = self.get_parameter('compressed').value
self.modelH = self.get_parameter('MODEL_IMAGE_H').value
self.modelW = self.get_parameter('MODEL_IMAGE_W').value
-
+
self.image_subscription = self.create_subscription(
Image if not self.compressed else CompressedImage,
"/CAM_FRONT/image_rect_compressed",
|
src/perception/semantic_segmentation/semantic_segmentation/segmentation_node.py#L47
10
)
# self.palette = np.array(self.palette, dtype=np.uint8)
- self.model = MMSegInferencer(self.config, self.checkpoint, dataset_name="cityscapes", device='cuda:0')
+ self.model = MMSegInferencer(self.config, self.checkpoint,
+ dataset_name="cityscapes", device='cuda:0')
self.bridge = CvBridge()
def listener_callback(self, msg):
|
Run C++/Python linters
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-python@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Run C++/Python linters
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/setup-python@v1, WATonomous/wato-lint-action@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|