Effacer les filtres
Effacer les filtres

Object Detection with Saved Network

2 vues (au cours des 30 derniers jours)
Ferhat Kangal
Ferhat Kangal le 21 Avr 2023
Commenté : Walter Roberson le 23 Avr 2023
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 commentaires
Walter Roberson
Walter Roberson le 23 Avr 2023
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 le 23 Avr 2023
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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Image Data Workflows dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by