利用 Container Instance
部署深度學習應用
Deploy Deep Learning Application with
Azure Container Instance - Mia Chang
利用 Container Instance 部署深度學習應用
Deploy Deep Learning Application with Azure Container Instance
WHY AM I HERE...
Microsoft Data Platform MVP
MY JOB TITLE...
Data Scientist
Computer Vision/Algorithm Research
AS A COMMUNITY Co-Organizer
R-Ladies Taipei, Azure Taiwan,
Tech Podcast Night
Mia
mia5419@gmail.com
pymia @github
WHAT BRINGS YOU HERE? Container Instance
深度學習應用
部署
Developer
Data Scientist
IT Pro
Else
Deep Learning Application
Deploy
利用 Container Instance 部署深度學習應用
那些成為資料科學家秘技之外的事。
Those Behind The Scenes...
https://blog.udacity.com/wp-content/uploads/2014/11/Data-Science-Skills-Udacity-Matrix.png
https://docs.microsoft.com/en-us/azure/machine-learning/team-data-science-process/overview
https://docs.microsoft.com/en-us/azure/machine-learning/team-data-science-process/overview
Data Scientist vs Data Scientist
Tensorflow Update
https://lh3.googleusercontent.com/Ns1ea98duQ9csaHN7EQjl6SbnLMxg_ou9bLhZA8KLqbeSv7gg7XXGX1rqtWXgnjiJjBQpiTZWyxIhtxjnWPKTM27-J9T0QI=s688
Use Scenarios
Tensorflow Update
https://lh3.googleusercontent.com/Ns1ea98duQ9csaHN7EQjl6SbnLMxg_ou9bLhZA8KLqbeSv7gg7XXGX1rqtWXgnjiJjBQpiTZWyxIhtxjnWPKTM27-J9T0QI=s688
Use Scenarios
Tensorflow Update Pip Update Can’t Find Waldo
Use Scenarios
https://lh3.googleusercontent.com/Ns1ea98duQ9csaHN7EQjl6SbnLMxg_ou9bLhZA8KLqbeSv7gg7XXGX1rqtWXgnjiJjBQpiTZWyxIhtxjnWPKTM27-J9T0QI=s688
Data Scientist vs Solution Architect
https://docs.microsoft.com/en-us/azure/machine-learning/team-data-science-process/overview
Reproduce it with Docker
•Docker provides you with an easy way to share your
working environments including libraries and drivers. This
enables us to create reproducible data science workflows.
The container advantage
Fast
iteration
Agile
delivery
Immutability Cost
savings
Elastic
bursting
Efficient
deployment
For ITFor developers
Industry analysts agree
“By 2020, more than 50% of enterprises will run
mission-critical, containerized cloud-native applications in
production, up from less than 5% today.”
If you need more reference …https://www.datadoghq.com/docker-adoption/
Microsoft Confidential
今日頭條
Python开发者最流行的框架、库和工具是什么?
云智时代 2018-04-01 22:05:22
Microsoft Confidential
Jupyter Notebook是与Python一起
使用的最流行的技术。Docker以
29%排名第二。
?
Microsoft Confidential
Microsoft Confidential
Microsoft Confidential
Best Time to Use Docker
# Start a new project, and develop with that env
# Co-work with your team
# When we would like deploy our product
Demo
Local Env
Microsoft Confidentialhttps://github.com/linkernetworks/environments
Demo
Azure Env
Reference:
Tips to build a nice Dockerfile
Microsoft Confidential
FROM jjanzic/docker-python3-opencv:contrib-opencv-3.4.0
WORKDIR /
RUN pip install --upgrade pip 
&& pip install --no-cache-dir -e
'git+https://github.com/ahundt/cocoapi.git#egg=pycocotools
&subdirectory=PythonAPI' 
&& pip install --no-cache-dir requests 
&& pip install --no-cache-dir orderedset 
&& pip install --no-cache-dir pandas 
&& pip install --no-cache-dir tensorflow 
&& pip install --no-cache-dir keras 
&& pip install --no-cache-dir dlib 
&& pip install --no-cache-dir flask_restful 
&& pip install --no-cache-dir psutil 
&& pip install --no-cache-dir pymongo 
&& pip install --no-cache-dir docker
# testing
RUN pip install --no-cache-dir requests-mock 
&& pip install --no-cache-dir nose 
&& pip install --no-cache-dir coverage 
&& pip install --no-cache-dir nosexcover
# darkflow
RUN git clone https://github.com/thtrieu/darkflow.git 
&& pip install --no-cache-dir darkflow/. 
&& rm -rf darkflow
ENV PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION
python
COPY . /inference
RUN pip install --no-cache-dir --timeout 1000 /inference/. 
&& rm -rf ~/.cache/pip
Microsoft Confidential
Tips to build a nice Dockerfile
Microsoft Confidential
Tips to build a nice Dockerfile
Tips to build a nice Dockerfile
https://github.com/bcbcarl/docker-rladies-taipei
Reference:
Practice At Home
https://www.tibame.com/course/350
https://www.meetup.com/Azure-Taiwan/events/249669489/
Microsoft Confidentialhttps://github.com/pymia/AKSDeploymentTutorial
https://hackmd.io/i_nZbPXQTj6xkMxaOcQF5Q?view
Thank you
Mia
mia5419@gmail.com
pymia @github
https://www.linkedin.com/in/mia-chang
/

Deploy Deep Learning Application with Azure Container Instance - Devdays2018