일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- CARLA simulator
- paper review
- 논문분석
- Paper Analysis
- 개발흐름
- Branch 활용 개발
- 기능과 역할
- InstructPix2Pix
- Carla
- TensorFlow Object Detection Model Build
- Linux build
- TensorFlow Object Detection Error
- TensorFlow Object Detection 사용예시
- AI Security
- 커스텀 애니메이션 적용
- Git
- VOC 변환
- DACON
- Towards Deep Learning Models Resistant to Adversarial Attacks
- DOTA dataset
- Custom Animation
- 논문 분석
- Object Detection Dataset 생성
- 리눅스 빌드
- 크롤링
- 객체 탐지
- Docker
- 사회초년생 추천독서
- object detection
- TensorFlow Object Detection API install
Archives
- Today
- Total
JSP's Deep learning
[CARLA Simulator] Instance Segmentation Sensor 사용법 본문
* Instance Segmentation Sensor은 Carla 0.9.14 버전 이후로 사용가능하다.
* Instance Segmentation이란, 기존 Segmentation과 달리 각 객체마다 고유의 RGB 색상을 가지고 있기 때문에 각 객체를 구분할 수 있다.
1. CARLA Instance Segmentation 이미지
2. CARLA Instance Segmentation 사용
CARLA에서는 Instance Segmentation은 제공하지만 생성되는 객체에 대한 RGB 정보는 제공하지 않는다. 따라서 CARLA Unreal의 코드 수정을 통해서 RGB 정보를 얻고 객체를 구분할 수 있다.
1) Instance Segmentation RGB 구성 코드
# 코드 경로
carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Game/Tagger.cpp
- 다음의 코드를 통해서 [R,G,B] = [Semantic tag, (id & 0x00ff) >> 0, (id & 0xff00) >> 8]로 구성되는 것을 알 수 있다.
- 기존의 코드를 살펴보면 객체의 RGB를 생성할 때 사용되는 ID와 실제 부여되는 ID가 다른 것을 확인할 수 있다.
- 따라서 RGB의 값을 계산하기 위해서는 두 ID가 동일하게 사용되도록 코드를 수정할 필요가 있다.
2) Instance Segmentation Actor ID 할당 코드 수정
# 코드 경로
carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/ActorRegistry.cpp
- 다음과 같이 IdType Id = ++FActorRefistry::ID_COUNTER;` -> `IdType Id = Actor.GetUniqueID();로 수정한다.
'Etc > CARLA Simulator' 카테고리의 다른 글
[CARLA Simulator] 커스텀 애니메이션 적용 (0) | 2023.03.21 |
---|---|
[CARLA Simulator] CARLA 0.9.14 Linux Build with Docker on Ubuntu 20.04.05 LTS (0) | 2023.02.18 |
[CARLA Simulator] CARLA 0.9.13 Linux Build with Docker on Ubuntu 20.04.05 LTS (2) | 2023.02.18 |
[CARLA Simulator] 클라이언트 개발 환경 세팅 (0) | 2023.02.02 |
[CARLA Simulator] CARLA 0.9.11 Linux Build with Docker on Ubuntu 20.04.05 LTS (0) | 2023.02.02 |
Comments