필터 지우기
필터 지우기

How do I retrain google net's classification to suit my project?

조회 수: 2 (최근 30일)
Syafiqah Daud
Syafiqah Daud 2018년 6월 21일
Hi, I am currently doing a project on object recognition and I am using Google Net to be my preferred CNN. However, some of the classification such as sports car, garbage truck is too specific. I would want to make it more general such as to classify it as a car and just a truck. Here is my code, help would be appreciated :
clear
camera = webcam; % Connect to the camera net = googlenet; % Load the neural net net.Layers
while true picture = camera.snapshot; % Take a picture sz = net.Layers(1).InputSize ; picture = picture(1:sz(1),1:sz(2),1:sz(3));% Resize the picture
label = classify(net, picture); % Classify the picture
image(picture); % Show the picture
title(char(label)); % Show the label
drawnow;
end

답변 (0개)

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by