DDRNet
Deep Dual-resolution Networks for Real-time and Accurate Semantic Segmentation of Road Scenes
ddrm 에서 계단현상 해결을 위해 테스트
RTMDet 에서 계단 현상 제거 + 속도 개선을 원한다면 사용해보자.
Troubleshooting
The size of tensor a (228) must match the size of tensor b (227) at non-singleton dimension 3
mmseg DDRNet 모델로 inference 해보니 다음과 같은 에러 발생:
RuntimeError: The size of tensor a (228) must match the size of tensor b (227) at non-singleton dimension 3
모델 Config 는 "ddrnet_23-slim_in1k-pre_2xb6-120k_cityscapes-1024x1024.py"를 쓰고 있고 입력 이미지는 1920x1080 임.
결론만 말하면 입력 이미지를 1024x1024 로 resize 하면 된다.