Help us understand the problem. What is going on with this article?

ゼロから始めるDeep Learning ―通勤時間にスマホの Google Colab で学ぶ :01

More than 1 year has passed since last update.

はじめに

今更ながら ゼロから作るDeep Learning ――Pythonで学ぶディープラーニングの理論と実装 を通勤時間に読み始めたので、ついでにQiitaへの投稿も初めてみる

簡単に自己紹介

しがない社内SE、Jupyter Notebook や、Google Colab を、サラッと試した事があり、Deep Learning、機械学習についてもサラッと調べてる程度

通勤環境

-都内3路線乗り継ぎでドア2ドア1時間
-スマホはiPhone 6S Plus

当初の目論見

『使うライブラリは、NumPy と Matplotlib ね、それなら Google Colab 使って、通勤時間にハンズオンできるじゃね』

とりあえず、1章

Matplotlib での、グラフ描画も問題なさそう。
ch01-1.png

が、問題発生

1.6.3 画像の表示

そもそも読み込む画像がないので deep-learning-from-scratch からソースコードを持ってくる。
!コマンドでシェルコマンドを実行できるので、

!git clone https://github.com/oreilly-japan/deep-learning-from-scratch ./hoge #適当なフォルダ

フルパスで指定して読み込み

!pwd #/content

import matplotlib.pyplot as plt
from matplotlib.image import imread

!ls ~/ #datalab  hoge
#img = imread('~/hoge/dataset/lena.png') # FileNotFoundError: [Errno 2] No such file or directory: '~/hoge/dataset/lena.png'
img = imread('/content/hoge/dataset/lena.png') # 画像の読み込み
plt.imshow(img)

plt.show()

ch01-2.png

今回はここまで

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away