Practical Deep Learning Examples with matlab



Download 5,05 Mb.
Pdf ko'rish
bet13/19
Sana22.07.2022
Hajmi5,05 Mb.
#836233
1   ...   9   10   11   12   13   14   15   16   ...   19
Bog'liq
deep-learning-practical-examples-ebook

 
plot(lgraph);
lgraph
is a layer graph that describes the architecture of a DAG
network, including all the layers and their interconnections.
3. Setting Up the Segmentation Network
% segnetLayers returns SegNet network layers, lgraph, that is 
preinitialized with layers and weights from a pretrained model.
lgraph = segnetLayers(imageSize,numClasses,
'vgg16'
);


23 | Practical Deep Learning Examples with MATLAB
As with the other examples, we have a wealth of training options.
Options we specify include the following:
• Optimization algorithm. We’re using a stochastic gradient descent 
with momentum (SGDM). This is a popular algorithm for
CNN training.
• Batch size. We use a minibatch size of 4, to reduce memory usage 
while training. The batch size can be increased or reduced based on 
the amount of GPU memory available.
• Processor. This network was trained on an NVIDIA™ Tesla K40c. We 
could significantly reduce training time by specifying more advanced 
hardware—for example, we could use a multi-GPU cluster instead of 
a desktop with a single GPU.
Training the network with these options takes about 19 hours. To reduce 
training time, we can adjust some parameters. For example:
• Number of iterations. If we reduce the number of iterations by 20, 
the training takes approximately 10.5 hours. 
• Minibatch size. Increasing the minibatch size will reduce the train-
ing time, since the GPU (or CPU) will process more data at the same 
time. An increase of 1 reduces training time from 19 hours to 12 
hours. 
• Learning rate. Every order-of-magnitude reduction in the learning rate 
(0.1 

0.01) adds approximately half an hour to the total training 
time. 
TIP
There are many GPUs available to help speed training. Finding the right GPU depends on 
a variety of factors, including speed requirements and price. The minimum requirement to 
use GPUs in MATLAB is a 3.0 compute capable NVIDIA GPU.

Download 5,05 Mb.

Do'stlaringiz bilan baham:
1   ...   9   10   11   12   13   14   15   16   ...   19




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish