반응형

분류 전체보기 729

NotImplementedError: A UTF-8 locale is required. Got ANSI_X3.4-1968

해당 오류를 구글링 해보니 코랩 환경에서 런타임 유형을 GPU로 설정했을 때 간헐적으로 발생하는 오류 같다. https://stackoverflow.com/questions/56081324/why-are-google-colab-shell-commands-not-working Why are Google Colab shell commands not working? Steps to reproduce: Open new Colab notebook on GPU !ls #works !pip install -q turicreate import turicreate as tc !ls #doesn't work I get the following error: -----------------------------------....

클래스 명은 같고 클래스 개수는 다른 두 데이터셋으로 모델 훈련 시 성능 저하 해결 과정

클래스 명이 같은 두 데이터셋으로 모델을 훈련시켰는데 하나의 모델만으로 훈련시킬 때가 성능이 더 괜찮다. 해당 데이터셋들을 자세히 뜯어보니 원인으로 추정되는 것을 발견했다. 위 사진을 보면 car 클래스의 인덱스는 0, large bus 클래스의 인덱스는 1, small truck 클래스의 인덱스는 4이다. 위 사진으로는 어느 인덱스가 car인지 small truck인지 구분이 가지 않지만 다른 이미지들의 라벨을 살펴보고 나온 인덱스의 결과는 다음과 같다. 클래스명\데이터셋 이름 데이터셋 P1 데이터셋 P2 car 0 0 large_bus 1 1 large_truck 2 2 medium_truck 3 3 small_bus 4 자료 없음 small_truck 5 4 small_bus, small_truck..

Training yolo model with multiple datasets

여러 데이터셋으로 한 모델을 학습시킬 때 한 데이터셋만으로 학습시킬 때보다 성능이 저하하는 현상을 겪고 있다. 게시글의 제목처럼 구글에 검색했고 참고할만한 자료를 아래에 정리해둔다. 곧 이를 참고해 해결법을 모색할 생각이다. https://github.com/ultralytics/yolov5/issues/6781 What is the recommended way to train 2 new datasets with different classes via transfer learning in YOLOv5? · Issue #6781 · ul Search before asking I have searched the YOLOv5 issues and discussions and found no similar que..

한 점이 다각형 내부, 외부에 있는지 판별

https://losskatsu.github.io/machine-learning/py-polygon01/#%EC%B0%B8%EA%B3%A0%EB%A7%81%ED%81%AC [python] 한 점이 다각형 내부에 위치하는지 판별하기 [머신러닝] 한 점이 다각형 내부에 위치하는지 판별하기 losskatsu.github.io https://bowbowbow.tistory.com/24 [기하] 다각형의 내부 외부 판별 [기하]다각형의 내부 외부 판별 목차 [기하] 다각형의 내부 외부 판별 다각형의 내부 외부 판별이란? 아이디어 다각형의 내부에 위치하는 점의 특징은 뭘까? 구현 어떻게 반 직선과 다각형의 교 bowbowbow.tistory.com 위 두 링크들을 참고해 정리한다.

AttributeError: 'DataFrame' object has no attribute 'append'

pandas 2.0.0 이후부터는 append를 지원하지 않는다고 한다. 기존 코드가 append 함수를 사용하는 것을 전재로 짜여져 있어서 바꿔야 한다. 판다스 버전을 낮추는 것도 방법이지만 호환성 문제가 터질 수 있기 때문에 코드를 수정하는 것이 장기적으로는 옳은 방법으로 보인다. append 함수는 concat 함수로 대체되었다. import pandas as pd df1 = pd.DataFrame({'A': ['A0', 'A1', 'A2'], 'B': ['B0', 'B1', 'B2'], 'C': ['C0', 'C1', 'C2']}, index=[0, 1, 2]) df2 = pd.DataFrame({'A': ['A3', 'A4', 'A5'], 'B': ['B3', 'B4', 'B5'], 'C': [..

ImportError: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html

차량 경로 추적 프로젝트 중 해당 오류가 출력되었다. jupyter와 ipywidgets를 업데이트 하라면서 참고할 사이트를 출력해준다. https://ipywidgets.readthedocs.io/en/stable/user_install.html Installation — Jupyter Widgets 8.1.1 documentation Installation Users can install the current version of ipywidgets with pip or conda. In most cases, installing the Python ipywidgets package will also automatically configure classic Jupyter Notebook and Jupyt..

error: OpenCV(4.8.1) D:\a\opencv-python\opencv-python\opencv\modules\highgui\src\window.cpp:1255: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian,..

opencv 사용 중에 위와 같은 오류가 발생했다. 해결법은 opencv를 삭제 후 재설치하는 것이라고 한다. 위와 같은 코드로 삭제와 재설치를 진행하였고, 오류가 계속되자 vscode를 껐다가 다시 켜고 실행하니 정상적으로 코드가 실행된다.

Yolov8 'closing dataloader mosaic' issue

모델을 학습 시킬 때마다 40에폭을 넘어갈 때면 Closing dataloader mosaic 라는 오류문구가 출력되었다. 훈련 지표야 매번 들쑥날쑥하니 지금까지 신경을 쓰진 않았는데 항상 해당 오류가 출력되고나서 mAP 값이 낮아지는 것이 마음에 걸려서 한번 찾아보았다. https://github.com/ultralytics/ultralytics/issues/372 Closing dataloader mosaic · Issue #372 · ultralytics/ultralytics Search before asking I have searched the YOLOv8 issues and discussions and found no similar questions. Question I'm trying to ..

반응형