본문 바로가기

IT/Deeplearning

[CNN classifier / YOLO DARKNET] classifier code review :: load_network- [2.3] 1. [CNN classifier / YOLO DARKNET] classifier code review :: Intro- [1]2. [CNN classifier / YOLO DARKNET] classifier code review :: load_network- [2.1]3. [CNN classifier / YOLO DARKNET] classifier code review :: load_network- [2.2] 저번 포스팅에서는 load_network함수에서 parse_network_cfg 함수의 read_cfg함수를 살펴보았습니다. 이번 포스팅은 make_network함수, is_network함수, parse_net_options함수까지 살펴보도록 하겠습니다. 1. make_network, is_net.. 더보기
[CNN classifier / YOLO DARKNET] classifier code review :: load_network- [2.2] 1. [CNN classifier / YOLO DARKNET] classifier code review :: Intro- [1]2. [CNN classifier / YOLO DARKNET] classifier code review :: load_network- [2.1] 저번 포스팅에서는 load_network함수의 parse_network_cfg 함수까지 개략적으로 살펴보았습니다. 이번 포스팅은 parse_network_cfg함수의 한줄한줄씩, 코드 리뷰를 진행하도록 하겠습니다. 1. read_cfg:: src/parse.cread_cfg함수는 parse.c 파일에 위치하고 있습니다. parse_network_cfg 함수안에서는 1번째 라인에 read_cfg 코드가 다음과 같이 나타나있습니다. 1. f.. 더보기
[CNN classifier / YOLO DARKNET] classifier code review :: load_network- [2.1] 1. [CNN classifier / YOLO DARKNET] classifier code review :: Intro- [1] 이번 포스팅에서는 1. [CNN classifier / YOLO DARKNET] classifier code review :: Intro- [1]에서 진행했던 리뷰에서 조금 더 자세히 들어가서 리뷰를 진행하도록 하겠습니다. 이번 포스팅은 predict_classifier 함수에서 첫번째 줄인, load_network에 대해서 살펴보도록 하겠습니다. 1. predict_classifier :: example/classifier.c load_network는 predict_classifier에서 1번째 라인에 위치하고 있습니다. void predict_classifier(char *.. 더보기
[CNN classifier / YOLO DARKNET] classifier code review :: Intro- [1] 기존에 Darknet의 Object Detection 코드 리뷰를 진행하던 프로젝트의 방향성이 살짝 변경되어 Classifier 부분의 코드 리뷰를 먼저 진행하게되었습니다. 먼저 predict_classifier 부분을 진행하도록 하겠습니다. predict_classifier 부분은 CNN을 이용해서 Classification을 하는 함수입니다. 이번 Intro에서는 간략하게 전체 내용을 훑어보는 정도로 진행하도록 하겠습니다. 만약에 predict_classifier를 통해서 YOLO9000 : Better, Faster, Stronger의 Darknet19 모델을 사용한다면, 네트워크 구성은 다음과 같게됩니다. predict_classifier의 전체 코드는 다음과 같습니다. 1. predict_cla.. 더보기
[Object Detection / YOLO DARKNET] object detection code review :: image structure - [6] [Object Detection / YOLO DARKNET] object detection code review :: read_data_cfg -[1] [Object Detection / YOLO DARKNET] object detection code review :: read_data_cfg -[2] [Object Detection / YOLO DARKNET] object detection code review :: option_find_str -[3] [Object Detection / YOLO DARKNET] object detection code review :: get_labels -[4] [Object Detection / YOLO DARKNET] object detection code rev.. 더보기
[Object Detection / YOLO DARKNET] object detection code review :: load_alphabet -[5] [Object Detection / YOLO DARKNET] object detection code review :: read_data_cfg -[1][Object Detection / YOLO DARKNET] object detection code review :: read_data_cfg -[2][Object Detection / YOLO DARKNET] object detection code review :: option_find_str -[3][Object Detection / YOLO DARKNET] object detection code review :: get_labels -[4] 저번 포스팅에서는 get_labels 메소드에 대해서 코드 리뷰를 진행하였습니다.이번 포스팅은 load_alph.. 더보기
[YOLO / Object Detection / Keras] Code Review - [4] [YOLO / Object Detection / Keras] Code Review - [1][YOLO / Object Detection / Keras] Code Review - [2][YOLO / Object Detection / Keras] Code Review - [3] 저번 포스팅에서는 YOLO class의 initializer(생성자)부분을 살펴보았습니다.이번 포스팅에서는 custom_loss 메소드에 대해서 리뷰를 진행하도록 하겠습니다. custom_loss에 대한 코드 리뷰는 구분구분에 대한 분석이 오래 걸리므로, 이를 여러번 나누어서 진행하도록 하겠습니다. 1. custom_loss :: frontend.pycustom_loss 메소드의 구성은 아래와 같습니다. def custom_loss(.. 더보기
[Object Detection / YOLO DARKNET] object detection code review :: get_labels -[4] [Object Detection / YOLO DARKNET] object detection code review :: read_data_cfg -[1] [Object Detection / YOLO DARKNET] object detection code review :: read_data_cfg -[2] [Object Detection / YOLO DARKNET] object detection code review :: option_find_str -[3] 저번 포스팅에서는 char *name_list = option_find_str(options, "names", "data/names.list") 에 대해서 코드 리뷰를 진행하였습니다. 이번 포스팅은 저번 포스팅으로 가져온 name_list를 인자로 쓰는.. 더보기
[YOLO / Object Detection / Keras] Code Review - [3] [YOLO / Object Detection / Keras] Code Review - [1][YOLO / Object Detection / Keras] Code Review - [2] 저번 포스팅에 이어서 이번 포스팅에서는 YOLO model에 대해서 리뷰하겠습니다. 1. YOLO class :: frontend.py frontend.py는 YOLO class만 있으며, 구성은 다음과 같습니다. 코드량이 엄청 많습니다.... 대충 이렇게 생겼다는 것만 알고 차근차근 알아보도록 하겠습니다. from keras.models import Model from keras.layers import Reshape, Activation, Conv2D, Input, MaxPooling2D, BatchNormalizati.. 더보기
[Object Detection / YOLO DARKNET] object detection code review :: option_find_str -[3] [Object Detection / YOLO DARKNET] object detection code review :: read_data_cfg -[1] [Object Detection / YOLO DARKNET] object detection code review :: read_data_cfg -[2] 이번 포스팅은 char *name_list = option_find_str에 대한 코드 리뷰를 진행하겠습니다. 1. Concept Overview이전에 read_data_cfg에 대한 리뷰를 진행할 때, 아래의 그림과 같이 어떻게 *.data 파일이 리스트형태로 저장되는지 확인하였습니다. 이번에 리뷰하는 char *name_list = option_find_str(options, "names", "data.. 더보기