-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert Video classification network into dlnetwork #3
Comments
If you are asking about the slowFastVideoClassifier, inflated3dVideoClassifier, or r2plus1dVideoClassifier, then the underlying networks are not user accessible. Besides visualizing the network, you mentioned modifying the network. Could you say more about why you’d like to do that? Is it to improve the accuracy or is it to reduce the memory usage? Do you want to design your own network that is completely different from the type used in SlowFast, for example, or do you just want to make small tweaks? This information will help us enhance our functionality to better suit your needs. |
@mwbpatel |
hi, @mrclasalvia On the other hand, it is possible to open up the outer layer of the wrapper and load the data layer into the network so that you can use dlnetwork objects, such as the r(2+1)d network, directly: which r2plus1dVideoClassifier.m Open the m-file above and locate the last internal function in the file %------------------------------------------------------------------
function data = iTripwireR2Plus1DResnet3D18()
% Check if support package is installed
breadcrumbFile = 'vision.internal.cnn.supportpackages.IsR2Plus1DInstalled';
fullPath = which(breadcrumbFile);
if isempty(fullPath)
name = 'Computer Vision Toolbox Model for R(2+1)D Video Classification';
basecode = 'RD_VIDEO';
throwAsCaller(MException(message('nnet_cnn:supportpackages:InstallRequired', mfilename, name, basecode)));
else
pattern = fullfile(filesep, '+vision','+internal','+cnn','+supportpackages','IsR2Plus1DInstalled.m');
idx = strfind(fullPath, pattern);
matfile = fullfile(fullPath(1:idx), 'data', 'r2plus1dPretrained_3d18.mat');
data = load(matfile);
end
end output dlnetwork object: data.Network dlnetwork - 属性:
使用 summary 查看摘要。 |
Hi Everyone!
I am writing to you to ask for help concerning the video classification models on the Matlab model hub: how can I convert them into dlnetworks, add and change layers? I didn't find anything to perform such operations. Namely, I would like to visualize and even modify the network, however, I do not know how.
The text was updated successfully, but these errors were encountered: