iT邦幫忙

2019 iT 邦幫忙鐵人賽

DAY 25
0
AI & Data

當自動駕駛遇見AI系列 第 25

Day25-當自動駕駛遇見AI- Tensorflow

前言

TensorFlow由Google創建的開源深度學習庫,可將您的神經網絡知識應用於真實數據集,包括自動駕駛所需之數據集。

TensorFlow安裝說明

安裝基本要求

Python 3.4 or higher and Anaconda.

安裝流程(Run the following commands to setup your environment@Mac)

  1. create Tensorflow by python3
    使用這樣的命令: conda create -n tensorflow python=3,其意義是創建一個python3版本的環境,名為IntroToTensorFlow
conda create --name=IntroToTensorFlow python=3 anaconda

https://ithelp.ithome.com.tw/upload/images/20181109/20107143Zkc71lkxGS.png

https://ithelp.ithome.com.tw/upload/images/20181109/20107143cxNdwUoWee.png

2.find IntroToTensorFlow env

conda info --envs

https://ithelp.ithome.com.tw/upload/images/20181109/20107143G4quDHhAiL.png

  1. activate IntroToTensorFlow
source activate /anaconda3/envs/IntroToTensorFlow

https://ithelp.ithome.com.tw/upload/images/20181109/20107143cEvBoldJ8X.png

  1. conda install
conda install -c conda-forge tensorflow

https://ithelp.ithome.com.tw/upload/images/20181109/20107143SYznZ1Q7iy.png

https://ithelp.ithome.com.tw/upload/images/20181109/20107143Q2RHw8sqj8.png

https://ithelp.ithome.com.tw/upload/images/20181109/20107143khjRbhwHI9.png

測試安裝是否成功

import tensorflow as tf

# Create TensorFlow object called tensor
hello_constant = tf.constant('Hello World!')

with tf.Session() as sess:
    # Run the tf.constant operation in the session
    output = sess.run(hello_constant)
    print(output)


上一篇
Day24-當自動駕駛遇見AI-Project2-Advanced-Lane-Lines(6)
下一篇
Day26-當自動駕駛遇見AI- TensorFlow-Training Your Logistic Classifier
系列文
當自動駕駛遇見AI30

尚未有邦友留言

立即登入留言