필터 지우기
필터 지우기

How can I install a MATLAB Toolbox from the command line without a GUI?

조회 수: 16 (최근 30일)
I need to install the Deep Learning Toolbox Model for VGG-16 Network from the command line because I don't have a GUI. Anyone can help? Thanks in advance.

채택된 답변

David Willingham
David Willingham 2021년 6월 7일
Hi Pablo,
There are 2 ways which you could get VGG-16 from the command line:
Approach1: This approach will get you the network, but not all of the support package. It won't show up as a preinstalled model in Deep Network designed, but you can load it manually:
To get the network, run this code in MATLAB:
vgg19_18a_tar_gz = matlab.internal.examples.downloadSupportFile( "nnet", "/data/vgg19_18a.tar.gz" )
vgg19_18a_tar = gunzip(vgg19_18a_tar_gz)
vgg19_18a = untar(vgg19_18a_tar{1})
load vgg19
deepNetworkDesigner(vgg19)
I hope this helps,
David
  댓글 수: 2
Pablo Meseguer Esbri
Pablo Meseguer Esbri 2021년 6월 8일
The first approach worked really good for me. That was for the network VGG-19 but it also works for VGG-16 just by changing the first line of the code like this.
vgg19_18a_tar_gz = matlab.internal.examples.downloadSupportFile("nnet", "/data/vgg16_18a.tar.gz")
Later I had a minor problem because when I was trying to read the .SeriesNetwork variable, MATLAB was calling the function with the same name. So I just changed the name of the recently download net to solve this. Thank you.
Sandeep Mishra
Sandeep Mishra 2022년 6월 20일
Hi David, how to access such a central repository so that I can download any other pre-trained network? I would like to use the pre-trrained resnet50 but just replacing it in the above command didn't work.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by