Borrar filtros
Borrar filtros

Object Detection with Saved Network

2 visualizaciones (últimos 30 días)
Ferhat Kangal
Ferhat Kangal el 21 de Abr. de 2023
Comentada: Walter Roberson el 23 de Abr. de 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 comentarios
Walter Roberson
Walter Roberson el 23 de Abr. de 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 el 23 de Abr. de 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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Image Data Workflows en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by