전체 글
[MLOps Blog]Data Augmentation in Python: Everything You Need to Know
https://neptune.ai/blog/data-augmentation-in-python

Data Augmentation with Imgaug lib
imgaug 라는 좋은 라이브러리가 있어 이를 활용해 기존 데이터셋의 불균형을 해소하고자 한다 darknet 플랫폼 자체에서 augmentation 기능을 지원해서 특별히 필요 없을 줄 알았는데 하위 버전의 YOLO를 사용해야하니 cfg 설정의 한계를 느껴 데이터 증강 라이브러리를 따로 찾게 되었다. 아래 코드는 폴더 내 이미지를 검색하고, augmentation_count 설정에 따라 반복하여 이미지와 라벨 데이터를 증강시킨다. imgaug의 Documentation과 https://junyoung-jamong.github.io/ 님의 글을 참고하여 작성하였다. 최신 소스 링크 : https://github.com/fishduke/imgaug_darknet import numpy as np import..
![[docker]qt.qpa.xcb: could not connect to display](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FTVhZv%2FbtsEP5ADKAJ%2FAAAAAAAAAAAAAAAAAAAAAMASDATvAj6a8fVluj4vhEus55wmf2buRH38_pVxB-f_%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3DU1nEcXoQKRxo5%252B4bAQg6gmbqKWE%253D)
[docker]qt.qpa.xcb: could not connect to display
해결 방법 : 1. xhost command not found -> sudo apt install x11-xserver-utils 2. xhost local:root -> non-network local connections being added to access control list 나오면 성공! 원격 관리 툴인 x11 라이브러리를 통해 docker 내에 window 출력을 로컬 display와 연결되어 창을 실행하게 만듦. 위와 같은 창(window)이 pop up 가능하게 됨