꾸준희
Enough is not enough
꾸준희

공지사항

  • 꾸준희 블로그
전체 방문자
2,415,585
오늘
1,528
어제
2,910
  • 분류 전체보기 (592)
    • Book Review (39)
    • Paper Review (23)
    • AI Research Topic (127)
      • Deep Learning (24)
      • Pose Estimation (29)
      • Object Detection (22)
      • Object Segmentation (3)
      • Object Tracking (11)
      • Video Surveillance (4)
      • Action Recognition (6)
      • Stereo Vision (6)
      • 3D Reconstruction (5)
      • Machine Vision (2)
      • Image Processing (11)
      • Dataset (4)
    • AI Development (77)
      • NVIDIA DeepStream (3)
      • NVIDIA TensorRT (30)
      • NVIDIA TAO Toolkit (2)
      • ONNX (9)
      • PyTorch (5)
      • TensorFlow (15)
      • TensorFlow Lite (1)
      • GPU | CUDA | PyCUDA (12)
    • Programming (147)
      • GStreamer | FFmpeg (6)
      • Python (27)
      • C | C++ (15)
      • OpenCV (34)
      • Linux (36)
      • Embedded linux (7)
      • Etc. (22)
    • Computer Science (64)
      • 학부 및 대학원 과목 (22)
      • 선형대수학 및 기타 수학 (9)
      • SQL-D (33)
    • 삽질 기록 (50)
    • 생각 (15)
    • 기타 (50)
      • 참고자료 (30)
      • 좋은 글 (5)
      • 티스토리 (2)
      • 논문 작성 관련 참고 (10)
      • 메모 (0)

블로그 메뉴

  • 👀 CV
  • 🌸 GitHub
  • 💌 LinkedIn
  • 📚 방명록

최근 댓글

  • 넵 저도 여기다 써놓고 두고두⋯
    꾸준희
  • 되게 헷갈리고 볼때마다 찾던⋯
    옐로우씨
  • 아뇨 ㅠ 저도 어디서 가져온거⋯
    꾸준희
  • 앗 감사합니다 🙇🏻‍♀️
    꾸준희
  • 항상 보면서 존경스럽습니다!⋯
    버터미소
08-18 15:12

티스토리

hELLO · Designed By 정상우.
꾸준희

AI Development/NVIDIA DeepStream

[DeepStream] ubuntu에서 nvidia docker + ngc 설치하기

2021. 1. 27. 16:28
728x90
반응형

 

본 포스팅은 아래 링크를 실행하기 위한 준비과정이다. 

 

참고로 아래 링크는 NVIDIA DeepStream을 이용하여 RetinaNet 모델을 학습시키는 과정에 관한 것이다. 

 

developer.nvidia.com/blog/real-time-redaction-app-nvidia-deepstream-part-1-training/

 

Building a Real-time Redaction App Using NVIDIA DeepStream, Part 1: Training | NVIDIA Developer Blog

Some of the biggest challenges in deploying an AI-based application are the accuracy of the model and being able to extract insights in real time. There’s a trade-off between accuracy and inference…

developer.nvidia.com

 

 

1. nvidia-docker install

 

 

1.1 Setting up Docker

 

$ curl https://get.docker.com | sh \
  && sudo systemctl start docker \
  && sudo systemctl enable docker

 

 

1.2 Setting up NVIDIA Container Toollkit

 

distribution=$(. /etc/os-release;echo $ID$VERSION_ID) \
   && curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - \
   && curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list

 

$ sudo apt-get update
$ sudo apt-get install -y nvidia-docker2
$ sudo systemctl restart docker

 

 

1.3 Check

$ sudo docker run --rm --gpus all nvidia/cuda:11.0-base nvidia-smi
Wed Jan 27 06:16:53 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.33.01    Driver Version: 440.33.01    CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce RTX 2080    On   | 00000000:01:00.0  On |                  N/A |
| 23%   64C    P0    57W / 215W |   1518MiB /  7981MiB |      3%      Default |
+-------------------------------+----------------------+----------------------+
|   1  GeForce RTX 2080    On   | 00000000:02:00.0 Off |                  N/A |
| 22%   64C    P2    59W / 215W |    125MiB /  7982MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
+-----------------------------------------------------------------------------+

 

 

 

 

 

 

2. ngc install (AMD64 Linux Install)

 

 

2.1 install 

$ wget -O ngccli_cat_linux.zip https://ngc.nvidia.com/downloads/ngccli_cat_linux.zip && unzip -o ngccli_cat_linux.zip && chmod u+x ngc
$ md5sum -c ngc.md5
$ echo "export PATH=\"\$PATH:$(pwd)\"" >> ~/.bash_profile && source ~/.bash_profile
$ ngc config set

 

 

2.2 ngc login 

 

회원가입 후 로그인

 

ngc.nvidia.com/

 

NVIDIA NGC

 

ngc.nvidia.com

 

2.3 Generate API Key

 

아래와 같은 경로에서 Generate API Key를 누르면 키가 생성된다.

 

좌측 상단 계정 클릭 > Setup > Generate API Key > Get API Key > Generate API Key(좌측 상단 초록 버튼)

 

 

 

2.4 login 

$ ngc config set

 

$ docker login nvcr.io

Username: $oauthtoken
Password: 

 

 

 

 

참고자료 1 : docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#docker

 

Installation Guide — NVIDIA Cloud Native Technologies documentation

On RHEL 7, install the nvidia-container-toolkit package (and dependencies) after updating the package listing: Restart the Docker daemon to complete the installation after setting the default runtime: Note Depending on how your RHEL 7 system is configured

docs.nvidia.com

참고자료 2 : ngc.nvidia.com/setup/installers/cli

 

NVIDIA NGC

 

ngc.nvidia.com

 

728x90
반응형
저작자표시비영리
  • 카카오스토리
  • 트위터
  • 페이스북

'AI Development > NVIDIA DeepStream' 카테고리의 다른 글

[DeepStream] ubuntu에서 nvidia docker + ngc 설치하기  (0) 2021.01.27
[DeepStream] 딥스트림 개요 및 참고자료들  (2) 2021.01.24
[DeepStream] GTC 2020, Certification (Deep Learning for Intelligent Video Analytics)  (0) 2021.01.22
    'AI Development/NVIDIA DeepStream' 카테고리의 다른 글
    • [DeepStream] 딥스트림 개요 및 참고자료들
    • [DeepStream] GTC 2020, Certification (Deep Learning for Intelligent Video Analytics)
    꾸준희
    꾸준희
    생각과 기록 그리고 발전
    댓글쓰기
    다음 글
    한빛미디어 "진지한 파이썬" 베타리뷰어로 참여해본 짧은 후기
    이전 글
    [CUDA] 기존 CUDA 버전 삭제하기
    • 이전
    • 1
    • ···
    • 119
    • 120
    • 121
    • 122
    • 123
    • 124
    • 125
    • 126
    • 127
    • ···
    • 592
    • 다음

    티스토리툴바