【年度計畫?Show, Don't Tell】
去年的元旦,在大家制定年度計畫跟公佈計畫的同時,我想做的是先挑一個能在元旦那天就完成的小目標,先完成這個,再來看新的一年要做什麼。
太遠的計畫跟目標,就容易受到變化影響。不信,大家可以去看看各公司的 2020 yearly goal 或是大家自己的 2020 年計畫,碰到疫情之後,改變了多少?
.
【Start Finishing, Stop Starting】
讓自己先習慣動手完成事情,而不是列待辦。去年元旦,我第一次嘗試用 Python 寫了 Tennis 的 kata,並且宣佈 2020 開始,極速開發支援 Python 版本了。
請見:https://www.facebook.com/91agile/posts/1375662539275027
.
【你永遠不知道你所努力的點,何時會變成線、何時會變成面】
會做這件事的契機,是因為 2019 年 Q4 去輔導了永豐金證券,他們有一個 team 用 Python, 而這輩子沒寫過 Python 的我,跟他們 pair
了 15 分鐘,感覺蠻好玩的,所以新的一年給自己新的嘗試,就是試著寫寫看 Python,這是一種找愛的過程,不試試看,你是不會知道對它有沒有愛的。
因為點燃了這個火花,它影響我 2020 年很多的工作:
➀ 極速開發、單元測試、TDD與重構、How to write testable code(內訓) 這四門課,在 2020 年都一起支援了 Python
➁ 在輔導 OnePlus 時,協助建立起整個 OOS, app 的 Python UI 測試共用框架(page objects, utilities, decorator 等等..),寫了幾十支 Python mobile UI 自動化測試
➂ 在翻譯書的過程,裡面有 1/3 的 sample code 是用 Python 寫的
一切就是這樣水到渠成,如果沒有前面那個機會,如果因為沒寫過 Python 而錯過跟他們 pair 的機會,如果沒有元旦的時候,靠自己動手寫寫 Python,這些工作的機會、結果、品質,都會大打折扣。
.
【2021 年元旦】
是的,今天又是元旦了。我今天開始新的嘗試,是用 Ruby 寫 Tennis (前幾天在試著準備 Ruby 的單元測試版本)。
我的第一版 Ruby Tennis, 15分56秒(看在還要寫那一堆 RSpec 的 context,加上動態語言 IDE 支援度比較弱的前提下,第一版這樣的速度我很滿意了),影片:https://www.youtube.com/watch?v=pT_ZGis5COA&feature=youtu.be&ab_channel=JoeyChen
2021 年的 #極速開發、#單元測試,正式支援 Ruby 的範例啦!!
(#TDD與持續重構 讓我再醞釀一下)
.
※ 喜歡我隨手錄的技術影片,就訂閱一下 youtube 吧,你也不知道會不會哪天就從某個影片上,獲得影響你一年或職涯的那個火花。
同時也有10000部Youtube影片,追蹤數超過2,910的網紅コバにゃんチャンネル,也在其Youtube影片中提到,...
「python sample code」的推薦目錄:
- 關於python sample code 在 91 敏捷開發之路 Facebook 的最讚貼文
- 關於python sample code 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的最讚貼文
- 關於python sample code 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的精選貼文
- 關於python sample code 在 コバにゃんチャンネル Youtube 的最讚貼文
- 關於python sample code 在 大象中醫 Youtube 的最佳貼文
- 關於python sample code 在 大象中醫 Youtube 的最讚貼文
- 關於python sample code 在 geekcomputers/Python: My Python Examples - GitHub 的評價
- 關於python sample code 在 Introduction to Programming & Python | Python Tutorial - Day #1 的評價
- 關於python sample code 在 Python Numpy Tutorial (with Jupyter and Colab) 的評價
- 關於python sample code 在 Python code example | Coding, Python, Weird shapes - Pinterest 的評價
python sample code 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的最讚貼文
<ตัวอย่างโค้ดตัดคำภาษาไทย โดยเบื้องหลังใช้ AI จัดการ>
.
คุณเคยเห็นประโยคแบบนี้หรือไม่?
"ประเทศไทยรวมเลือดเนื้อชาติเชื้อไทยเป็นประชารัฐไผทของไทยทุกส่วนอยู่ดำรงคงไว้ได้ทั้งมวลด้วยไทยล้วนหมายรักสามัคคีไทยนี้รักสงบแต่ถึงรบไม่ขลาดเอกราชจะไม่ให้ใครข่มขี่สละเลือดทุกหยาดเป็นชาติพลี เถลิงประเทศชาติไทยทวีมีชัยชโย"
.
ถ้าใช้คนไทยอ่านตัดคำแยกออกมา ก็ยังดูวุ่นวาย
.
แต่โค้ดที่จะเห็นต่อไปนี้ (ใช้ภาษา Python)
จะใช้เทคโนโลยี AI (ปัญญาประดิษฐ์) สาย Deep learning (การเรียนรู้เชิงลึก)
เพื่อนำมาใช้ในงานตัดคำของรูปประโยคในภาษาไทย
.
สนใจลองไปศึกษาได้
https://colab.research.google.com/…/1tLrKRFR6i4TAzrbJ8wgsp4…
+++
เรียบเรียงโดย โปรแกรมเมอร์ไทย Thai programmer
.
,
++++ฝากประชาสัมพันธ์+++++
😻 ถ้าใครสนใจเล่ม "AI ไม่ยาก เรียนรู้ด้วยเลขม. ปลาย"
ก็สั่งซื้อ ebook ได้ที่นี้ (ขออภัยยังไม่มีเล่มกระดาษขาย)
ไม่ต้องมีความรู้เรื่องโค้ดดิ้ง ขอให้มีพื้นฐานเลข ม. ปลาย ก็อ่านได้
👉 https://www.mebmarket.com/web/index.php…
.
ส่วนตัวอย่างหนังสือ ก็ดูได้ที่
👉 https://www.dropbox.com/s/fg8l38hc0k9b…/chapter_example.pdf…
.
ราคาขาย 295 บาท ฿
แต่ถ้าซื้อผ่านระบบของ Apple จะแพงขึ้น ราคา 329 บาท ฿
วิธีอ่าน อ่านผ่านแอพหรือโปรแกรมของ mebmarket.com เท่านั้น
.
✍ เขียนโดย โปรแกรมเมอร์ไทย thai programmer
< Code sample, cut Thai word by behind the scenes using AI manage >
.
Have you ever seen a sentence like this?
′′ Thailand includes Thai nation flesh and blood, Thai leavening agents. Every part of Thailand stays and stays. They are all Thai unity, Thai unity, peacefulness, but even if the battle doesn't cheat, independence won't let anyone suffer from blood sacrifice. Every Yad is a nation of Thai Thawiwi has a victory. ′′
.
If you use Thai people to read and cut the word separately, you still look messy.
.
But the code to see the following (Python language)
Going to use AI technology (Artificial Intelligence) Deep Learning Line (Insight Learning)
To be used to cut words of sentences in Thai language
.
If interested, try to study.
https://colab.research.google.com/drive/1tLrKRFR6i4TAzrbJ8wgsp4aihfWnMgnT#scrollTo=r9BzPKP9iJGa
+++
Organized by Thai programmer Thai coder
.
,
++++ Please publicize +++++
😻 If anyone is interested in the book ′′ AI, it's not difficult to learn with the numbers. The tip ′′
You can order an ebook here. (Sorry, no paper book for sale)
Don't have knowledge of code. Let's have a math base. The end can be read.
👉 https://www.mebmarket.com/web/index.php?action=BookDetails&data=YToyOntzOjc6InVzZXJfaWQiO3M6NzoiMTcyNTQ4MyI7czo3OiJib29rX2lkIjtzOjY6IjEwODI0NiI7fQ
.
Personal like a book. Check it out.
👉 https://www.dropbox.com/s/fg8l38hc0k9b0md/chapter_example.pdf?dl=0
.
Sale price 295 baht ฿
If you buy Apple's system, it will be more expensive. Price is 329 Baht. ฿
How to read through app or program of mebmarket.com only
.
✍ Written by Thai programmer thai coderTranslated
python sample code 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的精選貼文
🤓 น้องๆ รู้ไหมครับว่า computer vision
อ่านว่า "คอมพิวเตอร์วิชั่น"
เป็นศาสตร์ทางคอมชั้นสูงอีกแขนงหนึ่ง
ที่ทำให้คอมพิวเตอร์มองเห็นได้ดุจดังตามนุษย์
เป็นไงฟังแล้วเท่ห์มั๊ยละ
.
ปกติมนุษย์เวลาเห็นวัตถุ สิ่งของ สิ่งมีชีวิต อยู่ในรูป หรือในวีดีโอ
เช่น เห็นปูุ๊บก็จะบอกได้ทันทีว่า
ในรูปหรือวีดีโอมีหมา แมว แก้วน้ำ แจกัน ฯลฯ
เรื่องแบบนี้สำหรับคน ถือว่าโคตรรรรรรรรรง่ายๆ
.
แต่ทว่าในมุมของคอมพิวเตอร์
มันยากมากกกกกกกกกกกกกก
.
ถ้าคอมมันทำได้ก็ถือว่าฉลาดมากแล้ว
ถือว่า intelligent เป็นสิ่งอัจฉริยะในมุมของคอม
ซึ่งการแยกแยะว่าสิ่งที่อยู่ในรูปว่ามันเป็นอะไร
ภาษาอังกฤษเรียกว่า classification (แยกแยะประเภท)
.
สำหรับศาสตร์ computer vision 💻 💻
มันแตกแขนงได้หลายเทคนิค หลายสาย
แต่ในโพสต์นี้จะพูดถึงเฉพาะแค่ 2 เรื่อง เท่านั้นได้แก่
.
☑ 1) การทำ Object detection
เป็นการตรวจจจับวัตถุในรูป
ในมุมการ classification มันแค่บอกว่าสิ่งในรูปคืออะไร
แต่ Object detection จะไม่ใช่แค่บอกว่าสิ่งที่อยู่ในรูปคืออะไรเท่านั้น
.
😲 😲 มันเหมือนอัพเกรตจากความสามารถ classification
เพื่อพัฒนาไปตีกล่องสี่เหลี่ยมล้อมรอบ (ภาษาอังกฤษเรียกว่า Box)
ตีกล่องเพื่อบอกตำแหน่งสิ่งที่มันตรวจจับในรูปหรือในวีดีโอได้ ...โอ้วแม่เจ้าจะเทพไปถึงไหน
.
.
☑ 2) การทำ Segmentation
จะแอดวานซ์จาก Object detection
เหมือนเป็นเวอร์ชั่นอัพเกรตอีกต่อหนึ่ง
.
คือมันไม่ได้ตีกรอบล้อมรอบวัตถุนะ
แต่มันจะยิ่งกว่านั้น
...ก็คือมันจะไฮไลท์ (ฝรั่งบอกว่า mask)
....มันจะระบุพื้นที่วัตถุ สิ่งของ ที่มันตรวจจับได้ (เหมือนเราแรงงานไปยังวัตถุนั้น ๆ)
.
.
ซึ่งศาสตร์ computer vision ปัจจุบันนี้
นิยมเอา AI (ปัญญาประดิษฐ์) มาใช้งาน
จริงมันก็ทำอย่างอื่นได้นอกจากสองเรื่องที่ผ่าน เช่น
pose estimation ตรวจจับจุดต่างๆ ของมนุษย์ แบบกล่องสองผี 💀💀 💀 ....จนปรึ้นๆๆ น่ากลัวหรือเปล่า เป็นต้น
.
และมีข่าวดีสำหรับใครที่สนใจเขียนโปรแกรม 👏 👏
สำหรับงาน Object Detection กับ Segmentaion
ผมทำตัวอย่างการใช้งานไว้แล้ว
มี 5 แบบ ลองเข้าไปดูโค้ดได้ที่นี้
.
🔥 1. การช้งานไลบรารี่ imageai ตรวจจับวัตถุในรูป
https://colab.research.google.com/…/1uQnZfPlRhplvcZKWiXn1je…
🔥 2. การใช้งานไลบรารี่ pixellib ตรวจจับวัตถุในรูป
https://colab.research.google.com/…/1llWzReE3rS9wDfSGGm8M7R…
🔥 3. การใช้ไลบรารี่ Tensorflow ตัวอย่างของ Google ตรวจจับวัตถุในรูป
https://colab.research.google.com/…/12K-4uQ1tAvOukLb1-lwXx4…
🔥 4. การใช้ไลบรารี่ Detectron2 ของเฟสบุ๊ค ตรวจจับวัตถุในรูป
https://colab.research.google.com/…/1jnWFADFdZHz1LSyfXVKHY3…
🔥 5 ตัวอย่างการใช้โมเดล Msk RCNN ตรวจจับวัตถุในรูป
https://colab.research.google.com/…/1JGRIMQ1YSdMXkEZdC6QNGb…
.
ปล. มีแต่โค้ด python เพราะต้องทำใจอะนะ
เพราะงานด้านนี้ ภาษานี้คืออันดับหนึ่งในงาน AI ณ ห่วงเวลานี้
(สามารถไปอ่านตำราเรียน ม.1-2-3 มีเนื้อหา python อยู่ในตำรา)
.
.
+++++ขอประชาสัมพันธ์ (ขายของ)
📔 หนังสือ "ปัญญาประดิษฐ์ (AI) ไม่ยาก" เข้าใจได้ด้วยเลขม. ปลาย (เนื้อหาภาษาไทย)
.
ถ้าสนใจสั่งซื้อเล่ม 1 ก็สั่งซื้อได้ที่ (เล่มอื่นๆ กำลังทยอยตามมา)
👉 https://www.mebmarket.com/web/index.php…
.
ขออภัยยังไม่มีเล่มกระดาษจำหน่าย มีแต่ ebook
.
ส่วนตัวอย่างหนังสือ ก็ดูได้ลิงค์นี้
👉 https://www.dropbox.com/s/fg8l38hc0k9b…/chapter_example.pdf…
.
✍เขียนโดย โปรแกรมเมอร์ไทย thai programmer
🤓 Do you know that computer vision?
Read ′′ Computer Vision ′′
It's another elite computer science.
That makes computers visible as human eyes.
How are you? Are you cool?
.
Normally humans see objects of living things in the photo or video.
Such as seeing a crab, I can tell you right away.
In the picture or video, there are dogs, cats, mug, vase etc.
This kind of thing for people is considered simple.
.
But in the corner of computer
It's very difficult.
.
If a computer can do it, it's very clever.
Intelligent is considered genius in the corner of the computer.
Which digest what's in the picture is what it is.
English is called classification (type digest)
.
For computer vision science 💻 💻
It's broken. Many tricks. Many lines.
But in this post, it's only about 2 stories.
.
☑ 1) Object detection
Detection of the objects in the photo
In classification angle, it just says what is in the picture.
But Object detection won't just say what's in the picture.
.
😲 😲 It's like an upgrade from ability classification.
To develop, hit a square box, surround (English is called Box).
Hit the box to spot what it detects in the photo or video... Oh my god how can it be?
.
.
☑ 2) Making Segmentation
Will admin from Object detection
It's like another upgrade version.
.
Well, it doesn't hit the frame surrounding the object.
But it will be more than that.
... Well, it's going to be highlighted (Foreigner says mask)
.... It will identify the areas, objects, things that they detect (like we labor to that object).
.
.
The science of computer vision nowadays.
Popular to use AI (Artificial Intelligence)
True, it can do anything else but two things that pass, e.g.
pose estimation detects different points of human in two ghost box. 💀💀 💀 💀 💀.... so bad, scary, etc.
.
And some good news for anyone who is interested in programming 👏 👏
For Object Detection with Segmentaion
I made an example of use.
There are 5 designs. Check out the code here.
.
🔥 1. Imageai library work. Detection of objects in the photo.
https://colab.research.google.com/drive/1uQnZfPlRhplvcZKWiXn1jeytJIFEVLkV
🔥 2. usage of pixellib libraries. Detect objects in the photo.
https://colab.research.google.com/drive/1llWzReE3rS9wDfSGGm8M7RQ25jeEfSIi
🔥 3. uses of Tensorflow's Tensorflow library. A sample of Google detects objects in the photo.
https://colab.research.google.com/drive/12K-4uQ1tAvOukLb1-lwXx4bnXkeQupTk
🔥 4. Facebook's Detectron2 Library Uses rūp Objects Detector
https://colab.research.google.com/drive/1jnWFADFdZHz1LSyfXVKHY3fIwuY5F_uo
🔥 5 examples of using Msk RCN model. Detect objects in the photo.
https://colab.research.google.com/drive/1JGRIMQ1YSdMXkEZdC6QNGbI722tEQJTE
.
Ps. There are only code python because I need to get over it.
Because of this side job, this language is number one in AI event. At this time, I'm
(Can go to read textbooks. 1-2-3 python content in the textbook)
.
.
+++++ Public relations (selling items)
📔 The book ′′ Artificial Intelligence (AI) is not difficult It can be understood by the number. Tipping (Thai language content)
.
If you are interested in ordering book 1, you can order at (other books are gradually following).
👉 https://www.mebmarket.com/web/index.php?action=BookDetails&data=YToyOntzOjc6InVzZXJfaWQiO3M6NzoiMTcyNTQ4MyI7czo3OiJib29rX2lkIjtzOjY6IjEwODI0NiI7fQ&fbclid=IwAR11zxJea0OnJy5tbfIlSxo4UQmsemh_8TuBF0ddjJQzzliMFFoFz1AtTo4
.
Sorry, no paper books available. Only ebooks.
.
Personal like the book. You can see this link.
👉 https://www.dropbox.com/s/fg8l38hc0k9b0md/chapter_example.pdf?dl=0
.
✍ Written by Thai programmer thai coderTranslated
python sample code 在 Introduction to Programming & Python | Python Tutorial - Day #1 的推薦與評價
![影片讀取中](/images/youtube.png)
Surprisingly, it is equally easy to learn and master Python. This python tutorial for absolute beginners in Hindi series will focus on ... ... <看更多>
python sample code 在 Python Numpy Tutorial (with Jupyter and Colab) 的推薦與評價
This tutorial was originally contributed by Justin Johnson. We will use the Python programming language for all assignments in this course. ... <看更多>
python sample code 在 geekcomputers/Python: My Python Examples - GitHub 的推薦與評價
log files in the given directory, zip them using the program you specify, and then date stamp them. move_files_over_x_days.py - Moves all files over a specified ... ... <看更多>