본문 바로가기

전체 글117

cuda 11.7 docker 이번에 florence2가 나왔습니다. 이에 대한 환경을 구축하는데 flash attn이 필요한데, 또 cuda11.7 필요! docker 빠르게 구축했습니다.  https://hub.docker.com/r/pytorch/pytorch/tags?page=2&page_size=&ordering=&name=1) 도커풀 docker pull pytorch/pytorch:2.0.1-cuda11.7-cudnn8-devel https://hub.docker.com/r/pytorch/pytorch/tags?name=&ordering=&page=2&page_size= hub.docker.com pytorch/pytorch:2.0.1-cuda11.7-cudnn8-devel 2) 도커런docker run -itd --gp.. 2024. 6. 26.
coco annotation 에 대하여 직접 보았다. 다음과 같이 나온다. 2024. 6. 1.
openai api key 이용방법 안녕하세요 pulluper 입니다.  import openai  openai.api_key = "API KEY" response = openai.chat.completions.create(     model="gpt-3.5-turbo",     messages=[         {"role": "system", "content": "You are a helpful assistant."},         {"role": "user", "content": "Who won the world series in 2020?"},         {"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."},       .. 2024. 5. 15.
sam anything tool 이용방법 1) vs code 2) conda 설치 3) github 에서 다운로드 https://github.com/haochenheheda/segment-anything-annotator  3) pip error --> python.exe pip install --upgrade pip==21.3.1)conda 시 C:\Users\seanoh5403\AppData\Local\anaconda3\envs\pytorch\python.exe -m pip install --upgrade pip==20.3 C:\Users\유저이름\AppData\Local\anaconda3\python.exe -m pip install --upgrade pip==21.3.1C:\Users\유저이름\AppData\Local\anaconda3\.. 2024. 4. 15.
QObject::moveToThread: Current thread (0x55c07be39a60) is not the object's thread (0x55c07c164490). Cannot move to target thread (0x55c07be39a60) python 디버깅이 안될 때 PyQT5 관련된 pip 부분을 다 지우고 실행하면 된다. 2024. 4. 10.
[OpenCV] 2. 이미지의 shape/type/color 이번에는 cv2 이미지의 shape/type/color 에 대하여 알아보겠습니다. 1) 이미지의 shape 확인하기 h, w, c = image.shape torch 와 다르게 h, w, c 의 순서로 shape을 가진다. 2) 이미지의 type 확인 이미지 타입은 default 로 uint8이다. 따라서 range 는 0~255 print(image.dtype) 2-1) 이미지의 type 변경하기 만약 float32로 타입을 변환 시키는 부분은 다음과 같다. 주의할 점은 255 곱하고 나누는 순서가 다른 부분이다. # uint8 --> float32 / 64 image = image.astype(np.float32) / 255 # float 32 --> uint8 image = (image * 255).. 2024. 4. 10.