본문 바로가기

전체 글47

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.
python len, 삭제 len 공백문자 포함 ======삭제하기========== List의 요소 삭제하기 (pop, remove, clear, del) Str 요소삭제하기 replace(삭제할것,"") "" -> 띄어쓰기하면 안됨 만약 특정 문자를 모두 삭제하지 않고, 처음에 발견되는 1개만 삭제하고 싶다면, 아래 예제와 같이 3번째 인자로 삭제할 회수를 전달하시면 됩니다. ex = "Hello World Python" ex.replace("y", "") output Hello World Pthon ========================= Str -> split list -> slice 2023. 9. 30.
window | 윈도우 pycocotools 설치 에러 윈도우 OS에서 터미널에서 pip install pycocotools 입력하여 pycocotools설치 에러났을 경우, 혹은 pip install git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI 했을 경우, 아래와 같은 오류 메세지가 뜬다 ---------------------------------------------------------------------------------------- Building wheels for collected packages: pycocotools Building wheel for pycocotools (setup.py) ... error error: subprocess-exited-wit.. 2023. 1. 11.
텐서플로우 | Could not load library cudnn_cnn_infer64_8.dll. Error code 1455 Instructions for updating: `tf.batch_gather` is deprecated, please use `tf.gather` with `batch_dims=-1` instead. W1207 15:48:11.376248 19644 deprecation.py:333] From C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\util\dispatch.py:201: batch_gather (from tensorflow.python.ops.array_ops) is deprecated and will be removed after 2017-10-25. Instruct.. 2022. 12. 7.
반응형