[TensorRT] ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
* 2019.10.10 해결 완료 난 RTX 2080 에 CUDA 10.0 cuDNN 7.3.1 환경이라서 분명 tensorRT 5.0.2.6 - CUDA 10.0 버전을 설치하고 TensorRT 소스를 돌리면, 왜 아래와 같은 오류가 나는 것일까. ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory 아래 libcublas.so.9.0 은 CUDA 9.0 버전에 있는 파일이고 나는 libcublas.so.10.0 파일만 존재하는데 ... TensorRT 를 CUDA 10.0 으로 깔았는데 왜 CUDA 9.0 을 찾는 것인가? 에러를 쳐보면 다들 CUDA 9.0 으로 다운그레이드 하라고 나오거나 Te..
2019.10.10
[TensorRT] Yolo v3 to onnx
tensorrt/samples/python/yolov3_onnx/yolov3_to_onnx.py 파일을 사용하여 yolo v3 가중치 및 모델을 onnx 모델로 변환 이 코드는 python2 에서만 구동 가능함 $ python yolov3_to_onnx.py Layer of type yolo not supported, skipping ONNX node generation. Layer of type yolo not supported, skipping ONNX node generation. Layer of type yolo not supported, skipping ONNX node generation. graph YOLOv3-608 ( %000_net[FLOAT, 64x3x608x608] ) initial..
2019.10.08
[Object Detection] COCO Category 91 vs 80
COCO 데이터 세트 논문에 나와있는 클래스의 개수는 91이다. Darknet 프레임워크에 나와있는 클래스의 개수는 80개이다. COCO 데이터 세트의 2014 데이터와 2017 데이터 이름은 같으며, 단지, Paper 와의 약소한 차이인 누락된 클래스가 있다. 누락된 클래스 11개 stop sign hat shoe eye glasses plate mirror window desk door blender hair brush 또한 참고로 COCO 주석인 json 파일에서 stop sign 에 대한 주석이 빠지면서 생긴 문제인지 train 및 val 의 이미지 개수와 annotation 개수의 차이가 다소 있다. train2017 : 118,287 장 annotation (train2017) : 117,26..
2019.10.08
no image
[Object Detection] Darknet 학습 준비하기
환경 Ubuntu 16.04 GeForce RTX 2080 1. 학습 준비하기 1.1 COCO 데이터 세트를 이용한 학습 COCO 데이터는 2014 , 2017 로 나뉘어져 있는데, 홈페이지에서 다운 받을 수도 있지만, 크기가 너무 커서 유틸리티 curl 를 이용하여 다운받아야 한다. COCO 데이터 세트 https://cocodataset.org/#download COCO - Common Objects in Context cocodataset.org COCO 데이터 세트 종류는 다음과 같다. 이미지 2014 Train images [83K/13GB] 2014 Val images [41K/6GB] 2014 Test images [41K/6GB] 2015 Test images [81K/12GB] 2017 ..
2019.10.08
[Deep Learning] 커널의 의미
각기 다른 개념에서 사용하는 커널의 의미는 다음과 같다. 커널 PCA와 서포트 벡터 머신(SVM)에서의 커널 비선형 함수 MeanShift 알고리즘에서의 커널 샘플의 영향 범위 신경망에서의 커널 가중치 참고자료 : 파이썬을 활용한 머신러닝 쿡북 (한빛미디어)
2019.10.05
no image
[책] 파이썬을 활용한 머신러닝 쿡북
이 책은 머신러닝 입문 책이 아닌, 머신러닝의 실용적인 솔루션을 배울 수 있는 책이다. 이미 딥러닝에 대해서 어느 정도 알고 있고, 유명한 모델들을 로드하여 실행해본 사람들이 타겟이며 또한 이 책이 "작업 기반" 접근 방식으로 머신러닝을 다루고 있다고 하는데, 목차를 보면 그 뜻을 알 수 있다. 예를 들면 아래와 같다. 제 2장 데이터 적재 - 2.5 JSON 파일 적재하기 제 3장 데이터 랭글링 - 3.1 데이터프레임 만들기 제 6장 텍스트 다루기 - 단어 중요도에 가중치 부여하기 ... 등으로 구성되어 있어서 머신러닝을 하는데 있어 필요한 팁들을 싸그리 모아놓은 책이라고 할 수 있다. 옮긴이는 이 책이 일상적인 문제를 해결할 용도로 머신러닝 기술자의 책상에 모서리가 잔뜩 접힌 채 놓여 있으면 좋겠다고..
2019.10.05
[TensorRT] support matrix 지원 가능한 레이어 목록
https://docs.nvidia.com/deeplearning/sdk/tensorrt-support-matrix/index.html#layers-precision-matrix TensorRT Support Matrix :: Deep Learning SDK Documentation These support matrices provide a look into the supported platforms, features, and hardware capabilities of the TensorRT 6.0.1 APIs, parsers, and layers. For previously released TensorRT documentation, see TensorRT Archives. docs.nvidia.com..
2019.09.26
[TensorFlow] AssertionError: Bad argument number for Name: 3, expecting 4
WARNING:tensorflow:Entity could not be transformed and will be executed as-is. Please report this to the AutgoGraph team. When filing the bug, set the verbosity to 10 (on Linux, `export AUTOGRAPH_VERBOSITY=10`) and attach the full output. Cause: converting : AssertionError: Bad argument number for Name: 3, expecting 4 WARNING:tensorflow:Entity could not be transformed and will be executed as-is...
2019.09.20
[TensorRT] Cuda Error in allocate: 2
[TensorRT] ERROR: runtime.cpp (24) - Cuda Error in allocate: 2 [TensorRT] ERROR: runtime.cpp (24) - Cuda Error in allocate: 2 Cuda Memory 설정과 관련된 문제로서 builder.max_workspace_size = 1
2019.09.19
[TensorRT] keras model 에서 node name 확인하는 방법
아래와 같은 에러 발생 시 [TensorRT] ERROR: Parameter check failed at: ../builder/Network.cpp::addInput::406, condition: isValidDims(dims) [TensorRT] ERROR: UFFParser: Failed to parseInput for node input_1 [TensorRT] ERROR: UFFParser: Parser error: input_1: Failed to parse node - Invalid Tensor found at node input_1 input shape을 (224, 224, 3) 가 아닌 [224, 224, 3] 으로 넣어주어야 함 그리고 keras model의 input node name, ..
2019.09.19
[TensorFlow] Allocator (GPU_0_bfc) ran out of memory trying to allocate
Allocator (GPU_0_bfc) ran out of memory trying to allocate 에러는 아래와 같이 gpu 옵션을 통해 해결 방법 1 : gpu 메모리 런타임 할당에 따라 메모리 설정하여 해결 ( allow_growth 이용) config = tf.ConfigProto() config.gpu_options.allow_growth = True session = tf.Session(config=config) 방법 2 : gpu 메모리 할당 비율을 설정하여 해결 (per_process_gpu_memory_fraction 이용) config = tf.ConfigProto() config.gpu_options.per_process_gpu_memory_fraction = 0.4 sessio..
2019.09.19
[Linux] Unzip 명령어 실행 시 bad zipfile offset 에러
~$ zip -F file.zip --out file-large.zip ~$ unzip file-large.zip 참고자료 https://stackoverflow.com/questions/36807921/unzipping-the-multipart-file-bad-zipfile-offset-local-header-sig-4 Unzipping the multipart file - bad zipfile offset (local header sig): 4 I have a file with 13 GB, which has been split equally using martipart feature in the Winzip(Windows 7). I uploaded the files to the Linux server..
2019.09.18