필터 지우기
필터 지우기

Object Detection with Saved Network

조회 수: 2 (최근 30일)
Ferhat Kangal
Ferhat Kangal 2023년 4월 21일
댓글: Walter Roberson 2023년 4월 23일
Hello! I have trained couple networks such as ResNet50 and GoogLeNet with my own dataset. I want to use my saved network for object detection. Is there any way to use my saved network for object detection?
  댓글 수: 4
Walter Roberson
Walter Roberson 2023년 4월 23일
If your requirement does not involve generating an executable, then you do not have any problems provided that you have the appropriate Toolbox and Support Package installed in MATLAB.
If your requirement involves generating an executable that needs to be able to train a neural network inside the executable, then you will not be able to do that using the Mathworks toolboxes: Mathworks restricts the training facilities so that they cannot be deployed to an executable.
If your requirement involves generating an executable that needs to be able to use a previously-trained network to predict() or classify(), then the discussion I linked to describes the workflow: load() the network and use it to predict() or classify(), and getting the load() to work often involves using #%function pragmas.
Walter Roberson
Walter Roberson 2023년 4월 23일
L = predict(net, Images);
class_is_present_in_image = L > 0.95; %95% certainty
detected_classes = {};
for mask = class_is_present_in_image
detected_classes{end+1} = classNames(mask);
end
The end result should be a cell array, one entry per image present in Images, in which the entry contains the class names of all classes present in the image to (in this case) 95% certainty.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by