본문 바로가기

전체 글70

[Docker] /var/lib/docker/overlay2/<folder name> no such file or directory /var/lib/docker/overlay2/ no such file or directory Error Message /var/lib/docker/overlay2/ no such file or directory Solution 내 경우에는 /etc/docker/에 daemon.json을 만들고 restart했더니 해결됐다. daemon.json cat > /etc/docker/daemon.json 2022. 10. 5.
[Docker] nvidia-docker2 deb패키지로 설치 nvidia-docker deb패키지로 설치 ubuntu에서 docker를 보안때문에 설치되기 힘든 서버에서 설치하고자 이런 저런 방법을 찾아보다가 tar로 압축되어 있는 파일을 찾았는데, 이 방법은 nvidia-docker가 아니여서 그런지 nvidia-driver를 불러오지 못했다. https://shuka.tistory.com/46 [Docker] ubuntu 압축파일로 docker 설치 회사에 있는 내부 서버를 사용해야하거나 할 때 보안 이슈로 이런 저런 설치가 힘들 경우가 많다. docker 설치도 그 중 하나가 될 수 있는데 이런 저런 방법을 찾아보다가 설치 방법을 발견했다. ht shuka.tistory.com 그래서 nvidia-docker를 설치하기 위해 찾은 방법이 deb패키지들을 받아.. 2022. 9. 29.
ubuntu 압축파일로 docker 설치 ubuntu 압축파일로 docker 설치 회사에 있는 내부 서버를 사용해야 하거나 할 때 보안 이슈로 이런저런 설치가 힘들 경우가 많다. docker 설치도 그중 하나가 될 수 있는데 이런저런 방법을 찾아보다가 설치 방법을 발견했다. https://download.docker.com/linux/static/stable/ Index of linux/static/stable/ download.docker.com 위의 링크에 들어가서 해당 PC의 아키텍처별로 들어가면 다음과 같이 압축되어 있는 파일을 다운로드할 수 있다. 원하는 버전의 압축 파일을 다운로드하고 압축을 풀면 다음과 같은 파일들이 있는 것을 볼 수 있다. 해당 파일들을 '/usr/bin'에 옮겨주고 terminal에서 dockerd를 치면 doc.. 2022. 9. 27.
[XML] python code로 xml label 수정 python code로 xml label값 수정하는 방법 가끔 detection에서 labeling 된 object의 name을 수정하고 싶거나 bounding box 값을 변환하고 싶을 때 labeling tool을 사용하기도 하지만 직접 코드로 원하는 값으로 바꾸고 싶을 때가 있다. 전체 example python code 밑의 코드는 xml로 되어있는 annotation파일에 대해 object의 name을 수정하거나 bounding box 값을 수정할 수 있는 코드이다. import os # 라이브러리 호출 import xml.etree.ElementTree as ET # 변환하고 싶은 xml파일들을 list에 저장 path = 'annotations' anno_list = [os.path.join.. 2022. 9. 26.
[Nvidia Driver] NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running Nvidia Driver 설치시 문제 A100에서 nvidia driver를 설치f 완료하고 드라이버 확인을 위해 nvidia-smi를 치면 다음과 같은 오류가 발생할 수 있다. 해당 부분에 대한 오류가 A100에서만 발생하는 오류인줄 알고 있었는데, V100이나 nvidia 30대 gpu 등 여러 부분에서 발생하는 것을 확인했다. "NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running." 해당 오류에 대해서 많을 블로그들을 찾아봤지만 지웠다가 다시 설치하라는 얘기가 많은데 내 경우에는 다른 방법으로 해결.. 2022. 7. 12.
[Triton Inference Server] Server reload없이 model update --model-control-mode option Triton Inference Server에서 model-control-mode option이란 기존에 triton server에 모델을 올릴 때 update하면 server를 내렸다가 다시 load하는 식으로 진행해 왔었는데, 찾아보니 "--model-control-mode"라는 option이 있었다. "--model-control-mode= " option에는 3가지가 있는데 default인 None과 EXPLICIT, 그리고 POLL이 있다. 여기서 POLL을 option으로 주게 되면 model-repository에 모델을 변경하거나 update하였을 때 자동으로 update된 부분에 대해 update를 해준다. 자세한 설명은 밑의 링크를 보면 설명이 되어 있다. https://github.com.. 2022. 6. 27.
[HDD Mount] ubuntu OS에서 HDD mount하는 방법 ubuntu에서 HDD mount하는 방법 ubuntu18.04를 설치하고 디스크를 마운트하는 방법은 여러 가지가 있지만, 해당 방법은 fstab에 입력해서 mount를 해주는 방법이다. 우선, 밑의 명령어로 새로운 디스크에 대한 이름을 알아둔다. sudo fdisk -l 이름은 '/dev/sda', '/dev/sdb', ... 이런 형식으로 되어 있다. 원하는 디스크의 이름을 확인했다면 밑의 명령어로 위의 명령어에서 찾았던 이름의 UUID와 type을 복사해둔다. sudo blkid UUID와 type을 알았으면 이제 해당 디스크를 마운트하고 싶은 위치에 원하는 이름의 폴더를 생성한다. mkdir /media/vs_computing/disk fstab에 다음과 같이 아까 복사한 UUID와 생성한 폴더 .. 2022. 4. 27.
[TensorRT] trtexec dumpProfile / profilingVerbosity / dumpLayerInfo option trtexec에서 dumpProfile / profilingVerbosity / dumpLayerInfo option tensorrt에서 trtexec --help를 보면 많은 option들이 있는데 그중 "--dumpProfile --profilingVerbosity=detailed ---dumpLayerInfo"이라는 세 개의 option이 있다. 해당 option들에 대해서는 다음과 같이 설명이 되어 있다. dumpProfile option을 추가해서 실행하였을 경우 --dumpProfile Print profile information per layer (default = disabled) dumpProfile 옵션은 tensorrt 형식으로 변환된 모델에 대해 profile 정보를 출력해 준다고.. 2022. 4. 21.
[Scipy] error: library dfftpack has Fortran sources but no Fortran compiler found pip으로 scipy 설치시 에러 발생 scipy를 설치하다 보면 밑의 이미지처럼 에러가 발생할 경우가 있다. 에러 내용: 'error: library dfftpack has Fortran sources but no Fortran compiler found' 오류 발생에 대한 이미지 scipy 설치 오류에 대한 해결 방법 (sudo) apt-get install gfortran 2022. 4. 18.
[Docker] ascii codec can't decode byte error Docker container 안에서 한글 깨짐 현상 발생 Docker container 안에서 작업을 할 때 한글이 포함되게 되면 ascii codec error가 발생할 때가 있다. 밑의 사진은 triton inference server에서 docker로 모델을 run하게 됐을 때 모델 안에 한글이 포함되어 있기 때문에 발생한 에러이다. 한글 깨짐 현상 해결 방법 해당 문제를 해결하기 위해서는 container를 생성하기 위해 docker run을 할 때 옵션 하나만 추가해 주면 바로 해결이 되었다. -e LC_ALL=C.UTF-8 2022. 3. 14.
[Triton Inference Server] batch size does not match other inputs error Triton Inference Server ensemble model batch size error Triton inference server는 ensemble model을 만들어서 backend에서 한번에 결과를 출력할 수 있다. 이때 ensemble model에서는 config.pbtxt를 작성하는데, config.pbtxt에 scheduling한 모델 순서대로 process가 진행되고 각 모델 별로 input과 output의 name을 설정한다. 그리고, scheduling에 포함되어 있는 각 모델의 폴더 내에 있는 config.pbtxt와 이름을 맞춰주고, input과 output의 shape를 지정해 주게 된다. 만약 ensemble 방법이 궁금하면 밑의 링크를 보면 된다. https://shu.. 2022. 3. 14.
[Docker] docker container 확인 및 삭제 docker container 확인 실행중인 container 확인 docker에서 실행중인 container를 보려면 다음 명령어를 치면 된다. docker ps stop 상태인 container 확인 만약 실행중인 container와 stop 상태인 container를 보려면 다음 명령어를 치면 된다. docker ps -a docker container 삭제 docker container를 'rm'을 사용해서 삭제하려면 일단 container가 stop상태가 되어야 한다. 다음 명령어를 치고 'docker ps' 명령어 를 했을 때 stop한 container는 없어져 있다. docker stop ex_1) docker stop tensorrt-21.03 ex_2) docker stop 7b0932.. 2022. 2. 9.
728x90