SageMaker_S3FD_Face_Detector

8f03b1056593e12c94aaafab2e08599e?s=47 raobystorm
February 13, 2019

 SageMaker_S3FD_Face_Detector

みてねMeetup#4で発表した内容。高速な顔検出実現

8f03b1056593e12c94aaafab2e08599e?s=128

raobystorm

February 13, 2019
Tweet

Transcript

  1. SageMaker    Mixi, Inc.    

     
  2.  "    • 2016+),'#/ & %* •

    2017+-   • %*$.!* 0( 3
  3.  Deep Learning %  ' • 1)% • DVD%$

    •   ' %"!#&(* 4
  4.  SageMaker  .?, • +)7000=,   • 

    %1 0* • 6 :;"9 '53  / • &71<0.1s -4 • !(@  • #>28$ 5
  5.  #( + • ->/J"&?8 • ->4,I7DBNB  • LM6<

     5O= • "&@ KH0DG • E1 &%  • :.2C= &) • ;3* $!9+AF)(' 6
  6. Auto Scaling group Auto Scaling group    Instances

    Auto Scaling group  Instances SageMaker 7
  7.  S^3FD: Single Shot Scale-invariant Face Detector +)https://arxiv.org/abs/1708.05237 Github: https://github.com/sfzhang15/SFD

    • ' #SSD Network Architecture •   pre-trained • !*SSD&  • "(WIDER FACE Hard AP 0.858 • $ TensorRT% 8
  8.  %.!6=+ • Caffe(,S3FD ;"-$) 0.87  p3.2xlarge • :402

     103%.! 6= %.!9 • TensorRT' (https://developer.nvidia.com/tensorrt) • V100 GPU1! Multi-precision*?&< • DALI'(https://github.com/NVIDIA/DALI) • 8>!5/#!(Python 3.5, Aiohttp) 9
  9.  $ • TensorRTSSD/ #!0%  =>  #!*C++ •

    TensorRT,4  => (- & • .,4 ),41 => Python 3.5 multiprocess 35& • CPU GPU2'"$ => DALI+ .,4GPU  10
  10. SageMaker 1. Http ( 2. (Asyncio) CloudFront'!   

    3. (Process Pool) %" 4. (Thread Pool + DALI) ! ) 5. (TensorRT) GPU* 6. (Process Pool) ) 7.  API$ !1& 0.04#) 11
  11.  • GPU5*$" " • CircleCI Server 2@73 • 1:A4

     • &+/ %-#Hook  • master( STG/DEV!'. • 081-Click >;!'. • >;!'. )=9 • ,/6<?  12
  12. SageMaker Maintenance Pipeline 1. Code Build  "+ # -

    2.  EC2 GPU""  ECS (' 3. pre-release   $)%& ! 4. pre-release prod   ,*! master feature merge Developer commit unit test pipeline pre-release pipeline deploy pipeline dev / stg prod 13
  13.   •   # " • SageMaker&% 

    " • +( ! *' •  " $),  •   " 14
  14.  Auto Scaling group  Job Instances Batch Instance queue

    size Auto Scaling group SageMaker target tracking alarm total queue size SageMaker container count required instance count load-base alarm 1 2 3 4 5 6 15
  15.  1. ',. "*(CloudWatch - 2. Target Tracking Policy" SageMaker

     $&#!- 3. &+ ', /+()  4. CloudWatch 01', /+- 5. ',. % $& 16
  16.  • %1& 0.04s!# • 7000' $ •  "

     17
  17.  2G0 • /-7000E0 !;' => 4?' •  (7

    5. => #$ • = !BC%A *<9  3 • )>1D0.1s 1: => 0.04s • $",H  => SageMaker+F • &F8@' =>  "$6 18
  18.  • GPU  •   •  •

     19
  19.