[논문 리뷰] AdaAttN: Revisit Attention Mechanism in Arbitrary Neural Style Transfer
AdaAttN은 임의 스타일 전송에서 적응형 포인트별 주의(normalization)을 도입하여 얕은 특징과 깊은 특징을 모두 활용해 주의 가중 스타일 통계를 계산하고 국소 품질 향상을 위한 로컬 피처 손실을 적용합니다.
Fast arbitrary neural style transfer has attracted widespread attention from academic, industrial and art communities due to its flexibility in enabling various applications. Existing solutions either attentively fuse deep style feature into deep content feature without considering feature distributions, or adaptively normalize deep content feature according to the style such that their global statistics are matched. Although effective, leaving shallow feature unexplored and without locally considering feature statistics, they are prone to unnatural output with unpleasing local distortions. To alleviate this problem, in this paper, we propose a novel attention and normalization module, named Adaptive Attention Normalization (AdaAttN), to adaptively perform attentive normalization on per-point basis. Specifically, spatial attention score is learnt from both shallow and deep features of content and style images. Then per-point weighted statistics are calculated by regarding a style feature point as a distribution of attention-weighted output of all style feature points. Finally, the content feature is normalized so that they demonstrate the same local feature statistics as the calculated per-point weighted style feature statistics. Besides, a novel local feature loss is derived based on AdaAttN to enhance local visual quality. We also extend AdaAttN to be ready for video style transfer with slight modifications. Experiments demonstrate that our method achieves state-of-the-art arbitrary image/video style transfer. Codes and models are available.
연구 동기 및 목표
- 콘텐츠를 보존하면서 로컬 스타일 패턴을 포착하는 더 나은 로컬성 인식의 임의 스타일 전송 필요성을 제시한다.
- 얕은 특징과 깊은 특징으로부터 포인트별 주의 가중 스타일 통계를 계산하도록 AdaAttN을 제안한다.
- 포인트별 통계를 이용해 콘텐츠 특징을 정규화하여 주의-가중 스타일 통계와 정렬되도록 한다.
- 로컬 시각 품질을 향상시키고 프레임워크를 비디오 스타일 전송으로 확장하기 위한 로컬 특성 손실을 도입한다.
제안 방법
- 얕은 및 깊은 콘텐츠/스타일 특징을 연결(concatenation)한 뒤 주의 맵을 학습하는 AdaAttN 모듈을 도입한다.
- 주의 점수를 이용해 스타일 특징의 주의 가중 평균 및 분산 맵을 계산한다.
- 포인트별 주의 가중 통계를 사용해 콘텐츠 특징을 정규화하여 로컬 분포 정렬을 달성한다.
- 향상된 로컬 충실도를 위해 포인트별 스타일 변환을 감독하는 로컬 특성 손실을 정의한다.
- 코사인 기반 주의를 도입하고 이미지 단위 유사도 손실을 추가하여 영상에서 시간적 일관성을 안정화하도록 프레임워크를 비디오로 확장한다.
실험 결과
연구 질문
- RQ1포인트별 로컬성 인식 통계를 활용해 콘텐츠 구조를 해치지 않으면서 임의 스타일 전송을 어떻게 개선할 수 있는가?
- RQ2얕은 특징과 깊은 특징을 모두 반영하는 주의 메커니즘이 전역 통계 기반 방법보다 로컬 스타일 패턴을 더 잘 포착할 수 있는가?
- RQ3주 의를 활용한 정규화와 로컬 특성 손실이 비디오 스타일 전송에서 더 우수한 시각적 품질과 시간적 안정성을 가져오는가?
주요 결과
- AdaAttN은 콘텐츠 특징을 스타일 특징의 주의 가중 포인트별 통계와 정렬시켜 임의 이미지 스타일 전송에서 최첨단 결과를 달성한다.
- 이 방법은 콘텐츠 구조를 보존하면서 상세한 로컬 스타일 패턴을 전이하여 질적 평가에서 베이스라인보다 우수하다.
- 로컬 특성 손실은 로컬 시각 품질을 향상시키고 전역 스타일 손실을 보완하여 더 나은 스타일링 결과를 만든다.
- 코사인 기반 주의로 비디오 스타일 전송으로의 확장은 광학 흐름에 의존하지 않고도 시간적 안정성을 향상시킨다.
- 절제 연구에서 얕은 특징의 사용과 로컬 특성 손실의 중요성이 최종 품질에 미친 영향을 보여준다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.