深度学习常用的图形模板_第1页
深度学习常用的图形模板_第2页
深度学习常用的图形模板_第3页
深度学习常用的图形模板_第4页
深度学习常用的图形模板_第5页
已阅读5页,还剩56页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

MLVisualsBydair.aiBasicMLVisualsSoftmaxConvolveSharpenSoftmaxConvolveSharpenPositionalEncodingMaskedMulti-HeadAttentionAdd&NormOutputEmbeddingMulti-HeadAttentionAdd&NormOutputs(shiftedright)PositionalEncodingMulti-HeadAttentionAdd&NormInputEmbeddingFeedForwardAdd&NormInputsFeedForwardAdd&NormLinearSoftmaxMulti-HeadAttentionAdd&NormInputEmbeddingOutputEmbeddingFeedForwardAdd&NormMaskedMulti-HeadAttentionAdd&NormMulti-HeadAttentionAdd&NormFeedForwardAdd&NormLinearSoftmaxInputsOutputs(shiftedright)PositionalEncodingPositionalEncodingTokenizeIlovecodingandwriting“Ilovecodingandwriting”InputLayerHiddenLayersOutputLayerX=A[0]a[4]A[1]A[3]XŶa[1]1a[1]2a[1]3a[1]na[2]1a[2]2a[2]3a[2]na[3]1a[3]2a[3]3a[3]nA[2]A[4]InputLayerHiddenLayersOutputLayerX=A[0]a[4]A[1]A[3]XŶa[1]1a[1]2a[1]3a[1]na[2]1a[2]2a[2]3a[2]na[3]1a[3]2a[3]3a[3]nA[2]A[4]InputLayerHiddenLayersOutputLayerX=A[0]a[4]A[1]A[3]XŶ[1a]1a[1]2a[1]3a[1]na[2]1a[2]2a[2]3a[2]na[3]1a[3]2a[3]3a[3]nA[2]A[4]NxNx3+b1+b2MxMMxM+b1+b2ReLUReLUa[l]MxMX2a[l-1]CONVoperationNxNx3+b1+b2MxMMxM+b1+b2ReLUReLUMxMX2CONVoperationNxNx3+b1+b2MxMMxM+b1+b2ReLUReLUMxMX2CONVoperationAbstractbackgroundsDAIR.AIGradientBackgroundsCommunityContributionsS=1S=2StridinginCONVNxNx192NxNx64NxNx32NxNx128NxNx1921x1Same3x3Same5x5SameMaxPoolSames=1InceptionModuleRetrainingw/oexpansiont-1tNo-Retrainingw/expansionPartialRetrainingw/expansionNo-Retrainingw/expansionPartialRetrainingw/expansiont-1ttt-1No-RetrainingexpansiontPartialRetrainingexpansiontt-1Retrainingexpansiont-1tt-1Size#bedZIPWealthFamily?Walk?SchoolPRICEŷXYXŶ=0Ŷ=1HowdoesNNwork(InspriredfromCoursera)LogisticRegressionBasicNeuronModelSize$Size$LinearregressionReLU(x)IV128*128*1128*128*1CONV1CONV2CONV4CONV3CONV5CONV6CONV7I1128*128*1ENcoderDecoderV1EncoderDecoder128*128*1TrainingLargeNNMedNNSmallNNSVM,LRetcηAmountofDataWhydoesDeeplearningwork?a[1]1a[1]2a[1]3InputHiddenOutputX=A[0]a[1]4a[2]A[1]A[2]XŶOnehiddenlayerneuralnetworka[1]1a[1]2x[1]a[2]x[2]x[2]x[3]x[1]NeuralnetworktemplatesTrainValidTestx1x2x1x2x1x2Train-Dev-Testvs.ModelfittingUnderfittingGoodfitOverfittingx[2]x[3]x[1]a[L]x1x2r=1x1x2DropOutNormalizationw1w1w2Jw1w2Jw1w2w2BeforeNormalizationAfterNormalizationEarlystoppingDevTrainErrit.x1x2w[1]w[2]w[L-2]w[L-1]w[L]FNTNTPFPDeepneuralnetworksUnderstandingPrecision&Recallw1w2SGDBGDw1w2SGDBatchvs.Mini-batch

GradientDescentBatch

GradientDescentvs.SGDx[2]x[3]x[1]p[1]p[2]SoftmaxPredictionwith2outputsMiscellaneous3641616323264128128256256128+256128164+1286432+643216+321616Convolution3x3MaxPooling2x2Convolution1x1SkipconnectionUpSampling2x2BlockcopiedDropout0.1Dropout0.2Dropout0.3Conv3-32Conv3-32Conv3-32Max-PoolConv3-32Conv3-128Max-PoolConv3-64Conv3-64Max-PoolInputConvConvMax-PoolMax-PoolFCLayer1SoftmaxFCLayer2Layer3Layer4Layer1Layer2Layer3Layer4InputConv3-32Conv3-32Conv3-32Max-PoolConv3-32Conv3-128Conv3-64Conv3-64Max-PoolLayer1Layer2Layer3FC-512OutputMax-PoolFC-512OutputPreviouslayer1x1convolutions1x1convolutions3x3convolutions1x1convolutions5x5convolutions3x3maxpooling1x1convolutionsFilterconcatenationPreviouslayer1x3conv,1padding1x5conv,2padding1x3conv,1padding1x7conv,3paddingFilterconcatenation1x3conv,1padding1x3conv,1paddingInputConvMax-PoolMax-PoolMax-PoolInceptionInceptionMax-PoolConvMax-PoolConvInceptionInceptionInceptionInceptionInceptionInceptionInceptionAvg-PoolConvFCFCSoftmaxAvg-PoolConvFCSoftmaxAvg-PoolConvFCFCSoftmaxAuxiliaryClassifierAuxiliaryClassifierPreviouslayer1x1conv.1x1conv.3x3conv.1x1conv.3x3conv.Pool1x1conv.Filterconcatenation3x3conv.Previouslayer1x1conv.1x1conv.1x1conv.3x3conv.Pool1x1conv.Filterconcatenation1x3conv.3x1conv.1x3conv.3x1conv.(a)(b)R1R2R3R1R2R3R1R1R1R2StackedlayersPreviousinputxF(x)y=F(x)StackedlayersPreviousinputxF(x)y=F(x)+xxidentity+InputConvAvg-PoolDenseBlock2DenseBlock3ConvAvg-PoolConvDenseBlock1Avg-PoolFCSoftmaxTransitionlayers3x3conv(a)addidentity3x3conv5x5conv3x3avgidentity3x3avg3x3avg3x3conv5x5convaddaddaddaddFilterconcatenationhihi-1...hi+1hihi-1...7x7conv5x5conv7

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论