In this Keras machine learning tutorial, youâll learn how to train a convolutional neural network model, convert it to Core ML, and integrate it into an iOS app.
So, executing docker run command for the ML learning tutorial (audreyâs) tells me that keras-mnist doesnât exist:
_docker run --rm -it -p 8888:8888 -v $(pwd)/notebook:/workspace/notebook keras-mnist
_ Unable to find image âkeras-mnist:latestâ locally docker: Error response from daemon: pull access denied for keras-mnist, repository does not exist or may require âdocker loginâ.
Ahhhh; itâs a typo. Turns out the built image is called keras-mninst, not keras-mnist. My bad! Thanks, though.
best,
jps (see, below):
A122758:docker-keras wz3264$ docker run -it -p 8888:8888 -v $(pwd)/notebook:/workspace/notebook keras-mninst
[I 15:05:13.937 NotebookApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret
[I 15:05:14.364 NotebookApp] Serving notebooks from local directory: /workspace
[I 15:05:14.364 NotebookApp] 0 active kernels
[I 15:05:14.365 NotebookApp] The Jupyter Notebook is running at:
[I 15:05:14.365 NotebookApp] http://0.0.0.0:8888/?token=7cb4549a114786a05597be503119bda7a049fb3041e60021
[I 15:05:14.366 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 15:05:14.367 NotebookApp] No web browser found: could not locate runnable browser.
[C 15:05:14.367 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://0.0.0.0:8888/?token=7cb4549a114786a05597be503119bda7a049fb3041e60021
how strange! but then, the X has been having a few problems ⊠maybe you could report it to Apple?
update: my friend-with-iPhoneX has the same experience so itâs a question for Apple?
further update:
No difference if you switch 3D off. Note if you write nothing it Predicts. If you tap dots it predicts but if you draw lines or write a number in one swipe it crashes
one more update: another dev friend tried inverting the DrawView colors, and got a non-nil CIImage that way.
This is quite the tutorial on ML. I suspect most iOS programmers wonât have a thorough grounding in the topic. I would strongly recommend the following from Coursera to get a decent grasp of the fundamentals.
After run âimport kerasâ command, then happen âThe kernel appears to have died. It will restart automatically.â
Have any hardware requirements ?
When I google that error, most of the results talk about insufficient memory or conflicting versions of jupyter etc. Itâs unlikely youâve run out of memory right at the start. Do you have other python stuff on your Mac? Although running the docker image should avoid version conflicts âŠ
I am not familiar with docker so I am attempting to follow the tutorial. When I execute the command:
docker build -t keras-mnist .
I get the error:
Package ipython-notebook is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package âipython-notebookâ has no installation candidate
The command â/bin/sh -c apt-get update && apt-get install -y wget python2.7 python-pip python-dev ipython ipython-notebook && rm -rf /var/lib/apt/lists/*â returned a non-zero code: 100
It seems that keras is not installed.
On import keras statement, I obtain:
MemoryError Traceback (most recent call last)
in ()
2 from matplotlib import pyplot as plt
3
----> 4 import keras
/usr/local/lib/python2.7/dist-packages/keras/init.py in ()
1 from future import absolute_import
2
----> 3 from . import utils
4 from . import activations
5 from . import applications
/usr/local/lib/python2.7/dist-packages/keras/utils/init.py in ()
1 from future import absolute_import
2 from . import np_utils
----> 3 from . import generic_utils
4 from . import data_utils
5 from . import io_utils
hi! I canât replicate your error ⊠I think itâs similar to alanwangâs problem, possible insufficient-memory? try restarting your computer, then just start docker and a browser, and nothing else?
I am getting below error while running the command
âdocker run --rm -it -p 8888:8888 -v $(pwd)/notebook:/workspace/notebook keras-mnistâ
Error
docker: invalid reference format.
See âdocker run --helpâ.