본문 바로가기

전체 글50

MMpretrain custom dataset Train Base Line code _Tutorial 튜토리얼 #mmpretrain_base_ = [ '../_base_/models/mae_vit-base-p16.py', '../_base_/datasets/imagenet_bs512_mae.py', '../_base_/default_runtime.py',]train_dataloader = dict( dataset=dict( type='CustomDataset', data_root='data/custom_dataset/', ann_file='', # We assume you are using the sub-folder format without ann_file data_prefix='', # The `data_root` is t.. 2024. 9. 20.
'LocalVisualizer is not in the mmengine::visualizer registry. Please check whether the value of `LocalVisualizer` is correct or it was registered as expected. mmpretrain으로 classification 진행하려는데 "'LocalVisualizer is not in the mmengine::visualizer registry. Please check whether the value of `LocalVisualizer` is correct or it was registered as expected." 이런 문제가 생겼을때 별것을 다검색했지만 해결안됫는데  결론은 mmpretrain과 mmcv의 호환성문제였음 https://mmcv.readthedocs.io/en/latest/get_started/installation.html 에 들어가서 해당하는 토치버전이랑 같이 설정하고 다운 받고 추가로 mmcv-lite다운받았더니 해결 2024. 9. 19.
python sql insert 하기 import pymysqldb_config = { 'host' : '127.0.0.1', 'user': 'root', 'password' : '1234', 'database' : 'test', 'port' : 3306 }sql_path = r'D:\QT_GUI\Modern_GUI_PyDracula_PySide6_or_PyQt6\sql_test.sql'connection = pymysql.connect(**db_config)print(f"connection:{connection}")try: with connection.cursor() as cursor: # SQL 파일 읽기.. 2024. 7. 30.
mmganeration 설치 오류 OSError: [WinError 1314] 클라이언트가 필요한 권한을 가지고 있지 않습니다 mmcv 설치때문에 오류발생시 mmcv 2 미만 버전 설치 ->환경명시 해서 설치해줭됨 pip install mmcv-full==1.6.0 -f https://download.openmmlab.com/mmcv/dist/cu113/torch1.12.0/index.html OSError: [WinError 1314] 클라이언트가 필요한 권한을 가지고 있지 않습니다 : '..\\..\\tools' -> 'D:\\mmgeneration\\mmgen\\.mim\\tools' 이런 오류만나면 윈도우키+R 사용안함으로 설정하면 해결됨 설정하고 재부팅하고 설치해야 제대로 된다. 2024. 3. 4.
rotation matrix python 회전 행렬 변환 구현 rotation matrix python 회전 행렬 변환 구현 def calc_rotate( x,y,degree=45): rad = degree * (math.pi / 180.0) nx = round(math.cos(rad) * x - math.sin(rad) * y) ny = round(math.sin(rad) * x + math.cos(rad) * y) return nx, ny def Ccalc_rotate( x,y,img_cx,img_cy,theta=45): new_x = (x - img_cx ) * cos(radians(360-theta)) - (y - img_cy) * sin(radians(360-theta)) + img_cx new_y = (x - img_cx) * sin(radians(360.. 2023. 11. 7.
gpu cuda 호환성 확인 딥러닝을 하려면 설치하는 것 부터 처음 시작하는 사람에겐 만만찮은 일이라고 생각이 들 수 있는데 아래와 같은 사이트를 참고하면 내가 가지고 있는 gpu를 찾아 맞는 쿠다 버전 찾기가 쉬워진다. 참고 하면 좋을 사이트 - 내가 가지고 있는 그래픽 드라이버와 확인 CUDA Toolkit and Corresponding Driver Versions https://www.wikiwand.com/en/CUDA#/GPUs_supported Wikiwand - CUDA CUDA is a proprietary and closed source parallel computing platform and application programming interface that allows software to use certai.. 2023. 10. 25.
반응형