DarkNet 시리즈 - Connected Layer
connected_layer Fully Connected Layer 란? 이전 Layer의 모든 노드가 다음 Layer의 모든 노드에 각각 하나씩 연결되어있는 Layer 입니다. 가장 기본적인 Layer 1차원 배열로만 이루어져 있습니다. 이해를 돕기위해 그림으로 살펴보겠습니다. 크게 복잡하지 않고 단순한 연산으로만 이루어져 있습니...
connected_layer Fully Connected Layer 란? 이전 Layer의 모든 노드가 다음 Layer의 모든 노드에 각각 하나씩 연결되어있는 Layer 입니다. 가장 기본적인 Layer 1차원 배열로만 이루어져 있습니다. 이해를 돕기위해 그림으로 살펴보겠습니다. 크게 복잡하지 않고 단순한 연산으로만 이루어져 있습니...
compare train_compare void train_compare(char *cfgfile, char *weightfile) { srand(time(0)); float avg_loss = -1; char *base = basecfg(cfgfile); char *backup_directory = "/home/pjr...
col2im columns을 이미지로 변환해주는 것을 말합니다. col2im_add_pixel void col2im_add_pixel(float *im, int height, int width, int channels, int row, int col, int channel, int pad, flo...
box nms_comparator int nms_comparator(const void *pa, const void *pb) { detection a = *(detection *)pa; detection b = *(detection *)pb; float diff = 0; if(b.sort_class >= 0){ ...
blas blas 란? 벡터의 덧셈, 내적, 선형 조합, 행렬 곱셈과 같은 일반적인 선형 대수 연산을 수행하기 위한 역할을 합니다. Basic Linear Algebra Subprograms의 약자입니다. 크게 3개의 level(vector-vector, matrix-vector, matrix-matrix)로 구분되어 집니다. c...
batchnorm_layer Batch Normalization 이란? Paper : https://arxiv.org/abs/1502.03167 Gradient Vanishing, Gradient Exploding 문제점 internal covariate shift : weight의 변화가 중첩되어 가중되는 크기 변화가 크다는 문제점 ...
avgpool Average Pooling Layer 란? Feature Map의 평균 값을 계산해 전파시키는 Layer 입니다. //avgpool_layer.h typedef layer avgpool_layer; make_avgpool_layer avgpool_layer make_avgpool_layer(int batch, int w, ...
activation_layer make_activation_layer layer make_activation_layer(int batch, int inputs, ACTIVATION activation) { layer l = {0}; l.type = ACTIVE; l.inputs = inputs; l.outputs = ...
YOLOv4 Paper : https://arxiv.org/abs/2004.10934 기존 YOLOv3까지 저자셨던 Joseph Redmon이 참여하지 않았습니다. YOLOv4는 YOLOv3이후에 나온 딥러닝의 정확도를 개선하는 다양한 방법을 적용해 YOLO의 성능을 극대화 하는 방법을 설명합니다. 위에 표를 보면 속도는 유사하지만 ...
YOLOv3 Paper : https://pjreddie.com/media/files/papers/YOLOv3.pdf YOLOv2 이후 나온 논문을 적용해 Object Detection의 약점들을 해결하려는 실험을 합니다. 정확성은 높지만 여전히 빠릅니다! SSD보다 3배 빠르지만 정확도는 높습니다. RetinaNet과 정확도가...