AI on the Edge LESSON 3: Learn Python Essentials In One Session
- Reviewing Python in context of AI on the edge
- Notes that Python is an interpreted language -> converts to zeros and ones line-by-line -> executes them compiled
- C compiled once until you change the code (fast!)
- Advantage of Python as interpreted language is more forgiving and execution ready
- Python doesn’t make you declare your variables which is nice but “just gives enough rope to make you hang yourself”
- Arduino would round down if you did 7/2
- When you are sending data to the pins, many times those are going to be integers. If you send floats (eg. after a division operation) it will crash
- You call libraries for functions, you need to pay attention if they want ints
- When you think of OpenCV or working with images: images are arrays of pixels (rows and columns)
- Row, Column
- x = [[1,0,0],[0,1,0],[0,0,1]] #example of a diagonal
- x = [[100,0,0],[0,100,0],[0,0,100]] #example of grayscale image
- With color picture you need a three dimensional array
- RGB 0-255
- x = [[[255,0,0], [0,255,0],[0,0,255]],[[0,255,255],[255,0,255], [255,255,0]]] #3 columns and 2 rows
Google: The AI Company | Acquired
- Google’s 20 year AI journey -> takeaways is that all the major companies are intertwined and has taken a lot of the research power from universities due to high costs
- Hyperscale competitiveness and foundational model competitiveness seems to ping pong back and forth
- Jeff Dean and George Hinton major players that appear in every AI book about last decade
- Customer Tensor tech in TPUs allows for high workloads at likely lower costs
Leave a Reply