[논문 리뷰] LeagueAI: Improving object detector performance and flexibility through automatically generated training data and domain randomization
이 논문은 3D 모델 렲영과 도메인 랜덤라이제이션을 활용하여 비디오 게임에서 객체 검출을 위한 합성 데이터 생성 파이프라인을 제안한다. 자동으로 생성된 합성 데이터로 훈련된 YOLOv3 검출기의 mAP와 추적 일관성에서 수동 레이블링 데이터로 훈련된 모델을 능가하며, 레이블링 노력은 수십만 분의 일 수준으로 감소시킨다.
In this technical report I present my method for automatic synthetic dataset generation for object detection and demonstrate it on the video game League of Legends. This report furthermore serves as a handbook on how to automatically generate datasets and as an introduction on the dataset generation part of the LeagueAI framework. The LeagueAI framework is a software framework that provides detailed information about the game League of Legends based on the same input a human player would have, namely vision. The framework allows researchers and enthusiasts to develop their own intelligent agents or to extract detailed information about the state of the game. A big problem of machine vision applications usually is the laborious work of gathering large amounts of hand labeled data. Thus, a crucial part of the vision pipeline of the LeagueAI framework, the dataset generation, is presented in this report. The method involves extracting image raw data from the game's 3D models and combining them with the game background to create game-like synthetic images and to generate the corresponding labels automatically. In an experiment I compared a model trained on synthetic data to a model trained on hand labeled data and a model trained on a combined dataset. The model trained on the synthetic data showed higher detection precision on more classes and more reliable tracking performance of the player character. The model trained on the combined dataset did not perform better because of the different formats of the older hand labeled dataset and the synthetic data.
연구 동기 및 목표
- 비디오 게임에서 객체 검출을 위한 대규모 훈련 데이터 수집 및 레이블링에 드는 높은 노동력 비용을 해결하기 위해.
- 3D 게임 모델에서부터 실재감 있고 다양한, 정확한 레이블이 부여된 합성 훈련 데이터를 자동으로 생성하는 파이프라인을 개발하기 위해.
- 합성 데이터만으로도 수동 레이블링 데이터의 성능을 능가하거나 동등하게 유지할 수 있는지 평가하기 위해.
- 합성 데이터와 수동 레이블링 데이터를 조합했을 때 검출 mAP와 강건성에 어떤 영향을 미치는지 조사하기 위해.
- 최소한의 인간 레이블링으로 게임 AI 에이전트를 위한 실시간 객체 검출을 가능하게 하기 위해.
제안 방법
- 게임 리그 오브 레전드의 챔피언, 미니언, 구조물의 3D 게임 모델에서 원시 2D 마스크된 이미지 데이터를 추출한다.
- 마스크된 객체 이미지를 실제 게임 배경과 복합하여 합성 훈련 이미지를 생성한다.
- 흐림, 노이즈, 조명 변화, 색상 왜곡 등의 무작위 증강 기법을 적용하여 도메인 랜덤라이제이션을 강화한다.
- 합성 이미지 내 각 객체에 대해 자동으로 정확한 바운딩 박스 및 클래스 레이블을 생성한다.
- 합성 데이터, 수동 레이블링 데이터, 병합 데이터셋을 각각 사용하여 YOLOv3 객체 검출기를 훈련하고 비교한다.
- 모델의 일반화 능력과 강건성을 평가하기 위해 영상 클립에서 mAP와 실시간 추적 성능을 사용한다.
실험 결과
연구 질문
- RQ13D 게임 모델에서 생성된 합성 데이터가 수동 레이블링 데이터보다 더 높은 객체 검출 mAP를 달성할 수 있는가?
- RQ2합성 데이터에 적용된 도메인 랜덤라이제이션은 모델의 일반화 능력과 시각적 변형에 대한 강건성에 어떤 영향을 미치는가?
- RQ3합성 데이터와 수동 레이블링 데이터를 조합하면 합성 데이터만 사용했을 때보다 검출 성능을 더 향상시킬 수 있는가?
- RQ4합성 데이터와 수동 레이블링 데이터 간의 이미지 종횡비 차이가 모델 성능에 어떤 영향을 미치는가?
- RQ5합성 데이터와 수동 레이블링 데이터 파이프라인 간의 레이블링 시간과 데이터 생성 비용은 어떻게 비교되는가?
주요 결과
- 합성 데이터로만 훈련된 모델(S)은 수동 레이블링 데이터로 훈련된 모델(H)보다 더 높은 평균 평균 정밀도(mAP)를 기록했으며, 3개 클래스 대비 5개 클래스를 검출했다.
- 합성 데이터로 훈련된 모델는 실시간 영상 시퀀스에서 플레이어 캐릭터의 추적에서 더 일관되고 신뢰할 수 있는 성능을 보였다.
- 합성 데이터 생성 파이프라인은 수동 레이블링 대비 약 90%의 레이블링 시간 절감을 이룩했다.
- 병합 모델(C)은 합성 데이터 전용 모델(S)보다 성능이 열 劣했으며, 플레이어 캐릭터 검출 실패가 발생했다. 이는 합성 데이터와 수동 레이블링 데이터 간의 종횡비 차이로 인한 것으로 보인다.
- 합성 데이터로 훈련된 모델는 겹치거나 가림을 입은 객체를 포함한 미리 보지 않은 데이터에 대해 더 우수한 일반화 능력을 보였지만, 가끔 존재하지 않는 객체(예: 죽은 미니언)를 검출하기도 했다.
- 미니언은 자주 겹치고 검출이 어려워, 향후 새로운 일관된 수동 레이블링 데이터셋을 재훈련하여 향상이 기대된다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.