All Projects → Kokensha → book-ml

Kokensha / book-ml

Licence: MIT License
書籍「今すぐ試したい!機械学習・深層学習(ディープラーニング)画像認識プログラミングレシピ」のソースコードを配布するレポジトリです。

Programming Languages

Jupyter Notebook
11667 projects
python
139335 projects - #7 most used programming language
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to book-ml

PiHueEntertainment
An application that can handle the Hue Entertainment Areas on a Raspberry Pi
Stars: ✭ 28 (-3.45%)
Mutual labels:  raspberry-pi-camera, raspberry-pi-3
Face-Recognition-using-Raspberry-Pi
A small project which does face detection using OpenCV library.
Stars: ✭ 48 (+65.52%)
Mutual labels:  raspberry-pi-camera, raspberry-pi-3
rps-cv
A Rock-Paper-Scissors game using computer vision and machine learning on Raspberry Pi
Stars: ✭ 102 (+251.72%)
Mutual labels:  raspberry-pi-camera, opencv-python
Homekitcam
A project to make a Raspberry Pi driven, HomeKit Enabled camera.
Stars: ✭ 69 (+137.93%)
Mutual labels:  raspberry-pi-camera, raspberry-pi-3
opencv-python-inference-engine
Wrapper package for OpenCV with Inference Engine python bindings.
Stars: ✭ 32 (+10.34%)
Mutual labels:  opencv-python, movidius
Google-Colab-QBittorrent
This is my version of https://github.com/MinorMole/RcloneLab
Stars: ✭ 44 (+51.72%)
Mutual labels:  google-colab, google-colaboratory
tutorials
Introduction to Deep Learning: Chainer Tutorials
Stars: ✭ 68 (+134.48%)
Mutual labels:  chainer, google-colaboratory
Rpisurv
Raspberry Pi surveillance
Stars: ✭ 293 (+910.34%)
Mutual labels:  raspberry-pi-camera, raspberry-pi-3
carla-colab
How to run CARLA simulator on colab
Stars: ✭ 81 (+179.31%)
Mutual labels:  google-colab, google-colaboratory
blender-colab
Render Blender 3.x and 2.9x scenes with Google Colaboratory
Stars: ✭ 78 (+168.97%)
Mutual labels:  google-colab, google-colaboratory
Pi Camera In A Box
Stream your Raspberry Pi Camera Module directly to your web browser
Stars: ✭ 49 (+68.97%)
Mutual labels:  raspberry-pi-camera, raspberry-pi-3
Deep-Learning-with-GoogleColab
Deep Learning Applications (Darknet - YOLOv3, YOLOv4 | DeOldify - Image Colorization, Video Colorization | Face-Recognition) with Google Colaboratory - on the free Tesla K80/Tesla T4/Tesla P100 GPU - using Keras, Tensorflow and PyTorch.
Stars: ✭ 63 (+117.24%)
Mutual labels:  google-colab, google-colaboratory
Fotobox
Python based photo-booth script for Raspberry Pi and RPi Camera
Stars: ✭ 22 (-24.14%)
Mutual labels:  raspberry-pi-camera, raspberry-pi-3
TF2DeepFloorplan
TF2 Deep FloorPlan Recognition using a Multi-task Network with Room-boundary-Guided Attention. Enable tensorboard, quantization, flask, tflite, docker, github actions and google colab.
Stars: ✭ 98 (+237.93%)
Mutual labels:  keras-tensorflow, google-colab
Raspberryio
The Raspberry Pi's IO Functionality in an easy-to-use API for Mono/.NET/C#
Stars: ✭ 593 (+1944.83%)
Mutual labels:  raspberry-pi-camera, raspberry-pi-3
azure-iot-starter-kits
Samples for Azure IoT starter kits.
Stars: ✭ 29 (+0%)
Mutual labels:  raspberry-pi-camera, raspberry-pi-3
Repo 2019
BERT, AWS RDS, AWS Forecast, EMR Spark Cluster, Hive, Serverless, Google Assistant + Raspberry Pi, Infrared, Google Cloud Platform Natural Language, Anomaly detection, Tensorflow, Mathematics
Stars: ✭ 133 (+358.62%)
Mutual labels:  raspberry-pi-3, keras-tensorflow
homesecurity
Security camera with Raspberry pi and NVIDIA Jetson platforms
Stars: ✭ 141 (+386.21%)
Mutual labels:  opencv-python, raspberry-pi-3
webcam-to-cctv-using-rpi
In this project, we will use a webcam with Raspberry Pi to live stream wirelessly.
Stars: ✭ 17 (-41.38%)
Mutual labels:  raspberry-pi-camera, raspberry-pi-3
Object-sorting-using-Robotic-arm-and-Image-processing
Sorting objects of different colors using robotic arm and using computer vision (image processing).
Stars: ✭ 21 (-27.59%)
Mutual labels:  raspberry-pi-camera, raspberry-pi-3

book-ml

このレポジトリは、書籍「今すぐ試したい!機械学習・深層学習(ディープラーニング)画像認識プログラミングレシピ」のソースコードを配布するレポジトリです。

アマゾンのリンクはこちらです:https://www.amazon.co.jp/dp/4798056839

book-ml

book-ml

フォルダーの説明

  • Colaboratory:本書で使うJupyter NoteBookです。Google Colaboratoryにインポートして実行してください。インポートする方法は本書の96ページをご参照ください。
  • docker-python3-flask-ml-app:04-05 節、04-06 節、05-01節、05-03 節のサンプルコードと関連するウェブアプリケーションプログラムソースコード。PCの場合はdocker-compose upで起動させることができます(Dockerが必要です)。詳しくは本書の267ページの「Column」の説明をご参照ください。
  • python:04-02 節と05-04 節と05-08 節と07-02 節のPythonプログラムのソースコード
  • scripts:04-02 節のコマンドなどをまとめたファイル

詳しくは、それぞれのフォルダの中身をご確認ください。

Pull Request歓迎!

著者のTwitter:https://twitter.com/kokensha_tech

注意事項

ページ259

python3 app.pyをそのまま実行すると、学習済モデルファイルが見つからずに、正常に実行でできません。これはデータの権利の考慮のため、04-06の学習済モデルファイルをGitHubに配布していないのが原因です。

対応方法:270ページからの04-06節のレシピの手順を沿って、まず猫犬の認識用の学習済モデルファイルを作成して、手動で配置してください。

配置場所は book-ml/docker-python3-flask-ml-app/app/chainer_dogscats/ の配下です。

04-06で学習のために使用するデータは、下記のURL(Kaggle)から取得することが可能です(ユーザー登録が必要)。

訂正

ページ108

一番下のOutputの日本語

誤:「False 花は薔薇ですね」

正:「False 花は薔薇ではないですね」

ページ147、ページ148、ページ231

Pythonプログラムのimportのセクションに下記の一行が追記します(配布しているプログラムの方ではすでに含まれていますので、配布プログラムを利用する場合は、追加不要)。

from mpl_toolkits.mplot3d import Axes3D

ページ173

新しいバージョンのopenCVを利用する読者に下記のエラーが発生するかもしれません。 ValueError: not enough values to unpack (expected 3, got 2)

次のコードのように修正して、正常に実行できます。

import numpy as np
import cv2
import matplotlib.pyplot as plt
 
img_bgr = cv2.imread('kawashima01.jpg')
img_gray = cv2.cvtColor(img_bgr,cv2.COLOR_BGR2GRAY)
retval,thresh = cv2.threshold(img_gray,88,255,0)

contours, hierarchy = cv2.findContours(thresh,cv2.RETR_EXTERNAL,cv2.CHAIN_APPROX_SIMPLE)

blank_image = 255 * np.ones((320,320,3), np.uint8)
result_img = cv2.drawContours(blank_image, contours, -1, (0,0,255), 3)
 
#
plt.imshow(result_img)
plt.show()

ページ175

Pythonプログラム (配布しているプログラムの方は正しいプログラムになっております、配布プログラムを利用する場合は、修正不要)。

誤:x.shape[:2]

正:image.shape[:2]

ページ226

誤:図1 scikit-learn MNIST手書きデータ

正:図1 scikit-learn 手書きデータ

誤:左側データのタイトル iris.data/データ

正:左側データのタイトル digits.data/データ

第5章 第3節(ページ:366)、第4節(ページ:379) 転移学習のColabについて

当時執筆時(2018年12月)、ColabのデフォルトのTensorFlowは当時の最新版1.xを使っていましたが、今はColabのデフォルトのTensorFlowのバージョンは2.xになっています。

当該転移学習のプログラムは、TensorFlow1.xのバージョンを使用する必要があります。 そのため、Colabの一番先頭で、TensorFlow1.xを利用すると宣言する必要があります。 Colabのプログラムの先頭に、下記を追加、実行する必要があります。

%tensorflow_version 1.x

本書の姉妹プロジェクト

機械学習・深層学習レッスン

https://github.com/Kokensha/machine_learning_deep_learning_lessons

川島のITスキルサロンのRepo

https://github.com/kawashimaken/salon

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].