본문 바로가기

AI

(5)
[이미지전처리] 외곽선 검출 알고리즘 논문 리뷰 참고논문 외곽선 검출 및 잡음 제거 알고리즘https://manuscriptlink-society-file.s3-ap-northeast-1.amazonaws.com/kips/conference/ack2021/abs/KIPS_C2021B0087.pdf 장점- 동일한 객체가 여러개 있을 때 윤곽선을 비교적 잘 딸 수 있다.  단점- 컴퓨터 자원이 많이 소모된다 논문 코드 구현 1. 픽셀 2개의 유사도를 비교하는 함수 구현 이미지 내 임의의 점 p(x, y), 점 q(i, j)가 있을 때 p와 q의 픽셀 유사도를 구현하는 식이다. 유사도를 판단하는 기준은 두 픽셀의 차이의 절대값이 2 미만인 경우 유사하다고 판단, 그렇지 않으면 유사하지 않다고 판단한다. 1번 식을 파이썬으로 구현하면 다음과 같다.import..
Novelty 이상탐지 토튜리얼 이상탐지 개념을 소개해놓은 곳은 많은데 그래서 실제로 이미지를 가지고 어떻게 이상탐지하는지 토튜리얼을 올려놓은 곳은 찾기 힘들었다. 해외 포스팅 보고 따라해보았다.  https://pyimagesearch.com/2020/01/20/intro-to-anomaly-detection-with-opencv-computer-vision-and-scikit-learn/ Intro to anomaly detection with OpenCV, Computer Vision, and scikit-learn - PyImageSearchIn this tutorial, you will learn how to perform anomaly/novelty detection in image datasets using OpenCV, ..
[colab] yolov6 커스텀 데이터 셋으로 훈련시키기 데이터셋 구성하기 Labelimg 다운 https://github.com/heartexlabs/labelImg GitHub - heartexlabs/labelImg: LabelImg is now part of the Label Studio community. The popular image annotation tool created by LabelImg is now part of the Label Studio community. The popular image annotation tool created by Tzutalin is no longer actively being developed, but you can check out Label Studio, the open source ... github...
yolov6 토튜리얼 따라하기 드라이브 마운트 from google.colab import drive drive.mount('/content/drive') 프로젝트 폴더 이동 %cd /content/drive/MyDrive/"Colab Notebooks"/myproject Yolov6 깃허브 저장소 다운로드 !git clone https://github.com/meituan/YOLOv6 %cd YOLOv6 의존 패키지 설치 !pip install -r requirements.txt 가중치 모델 다운로드 import torch torch.hub.download_url_to_file('https://github.com/meituan/YOLOv6/releases/download/0.4.0/yolov6s.pt', 'yolov6s.pt') 샘..
[CNN] 개 고양이 분류 모델 만들기 데이터셋 다운 받기 !wget --no-check-certificate \ https://storage.googleapis.com/mledu-datasets/cats_and_dogs_filtered.zip \ -O /tmp/cats_and_dogs_filtered.zip 데이터셋 경로 지정하기 import os base_dir = 'C:/dev/ai/tmp/cats_and_dogs_filtered' train_dir = os.path.join(base_dir, 'train') validation_dir = os.path.join(base_dir, 'validation') # 훈련에 사용되는 고양이/개 이미지 경로 train_cats_dir = os.path.join(train_dir, 'cats') tr..