Can I use pretrained network csp-darknet53-coco?

12 views (last 30 days)
Hello guys, I want to train YOLOv4 detector and as shown in example on MathWorks page they used pretrained network csp-darknet53-coco… but i have my own 1865 annotated imaged which contains 5 different classes which i specified… so can i use this network or do i have to make my own network using deep network designer in matlab and edit darknet53 network there? Next I want to train Faster R-CNN and SSD detector and as shown in examples on MathWorks page these detectors use pretrained ResNet50 network … question is the same - can i use this network or do i have to edit the resnet50 network in matlab deep network designer and use my edited network? Thanks for answers :)

Answers (1)

Neha
Neha on 30 May 2023
Hi Adrain,
I understand that you want to know if pre-trained network can be used to create a detector with your own dataset. For the YOLOv4 detector, you can fine-tune the pretrained csp-darknet53-coco network using transfer learning. Similarly, the pre-trained ResNet-50 can be used to train Faster R-CNN and SSD Detector. This involves replacing the last few layers of the network with new layers that are tailored to your specific task or just replacing the last layer with a new output layer. This can be done using the Deep Network Designer app or by modifying the network architecture using the MATLAB code. Please refer to Transfer Learning Using Pretrained Network - MATLAB & Simulink (mathworks.com) for more information.
Hope this helps!
  2 Comments
Adrian Kleffler
Adrian Kleffler on 30 May 2023
Hello, thanks for answer. But do i have to fine tune it? Or can i just use these networks? Will it be fine?
Neha
Neha on 5 Jun 2023
Hi Adrian,
You can just replace the last layer of the network with a new output layer to implement transfer learning.

Sign in to comment.

Categories

Find more on Get Started with Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!