Skip to content

Commit 74c5292

Browse files
committed
P-2 Image classification done
0 parents  commit 74c5292

5 files changed

+1893
-0
lines changed

README.md

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
## Running the Udacity Deep Learning Foundations image classification project on floydhub.com
2+
3+
1. Create an account on [floydhub.com](https://www.floydhub.com) (don't forget to confirm your email). You will automatically receive 100 free GPU hours.
4+
5+
2. Install the `floyd` command on your computer:
6+
7+
pip install -U floyd-cli
8+
9+
Do this even if you already installed `floyd-cli` before, just to make sure you have the most recent version (its peace of development is fast!).
10+
11+
3. Associate the command with your Floyd account:
12+
13+
floyd login
14+
15+
(a page with authentication token will open; you will need to copy the token into your terminal)
16+
17+
2. Clone this repository:
18+
19+
git clone https://github.com/ludwiktrammer/deep-learning.git
20+
21+
Note: There are couple minor differences between this repository and the original Udacity repository. You can read about them [in README](https://github.com/ludwiktrammer/deep-learning/tree/master/image-classification#how-is-this-repository-different-from-the-original). To follow this instructions you need to use this repository.
22+
23+
3. Enter the folder for the image classification project:
24+
25+
cd image-classification
26+
27+
4. Initiate a Floyd project:
28+
29+
floyd init dlnd_image_classification
30+
31+
5. Run the project:
32+
33+
floyd run --gpu --env tensorflow --mode jupyter --data diSgciLH4WA7HpcHNasP9j
34+
35+
It will be run on a machine with GPU (`--gpu`), using a Tenserflow environment (`--env tensorflow`), as a Jupyter notebook (`--mode jupyter`), with Floyd's built-in cifar-10 dataset available (`--data diSgciLH4WA7HpcHNasP9j`).
36+
37+
6. Wait for the Jupyter notebook to become available and then access the URL displayed in the terminal (described as "path to jupyter notebook"). You will see the notebook.
38+
39+
7. Remember to explicitly stop the experiment when you are not using the notebook. As long as it runs (even in the background) it will cost GPU hours. You can stop an experiment in the ["Experiments" section on floyd.com](https://www.floydhub.com/experiments) or using the `floyd stop` command:
40+
41+
floyd stop ID
42+
43+
(where ID is the "RUN ID" displayed in the terminal when you run the project; if you lost it you can also find it in the ["Experiments" section on floyd.com](https://www.floydhub.com/experiments))
44+
45+
**Important:** When you run a project it will always start from scratch (i.e. from the state present *locally* on your computer). If you made changes in the remote jupiter notebook during a previous run, the changes will **not** be present in subsequent runs. To make them permanent you need to add the changes to your local project folder. When running the notebook you can download them directly from Jupyter - *File / Download / Notebook*. After downloading it, just replace your local `dlnd_image_classification.ipynb` file with the newly downloaded one.
46+
47+
Alternatively, If you already stoped the experiment, you can still download the file using the `floyd output` command:
48+
49+
floyd output ID
50+
51+
(where ID is the "RUN ID" displayed in the terminal when you run the project; if you lost it you can also find it in the ["Experiments" section on floyd.com](https://www.floydhub.com/experiments))
52+
53+
Just run the command above, download `dlnd_image_classification.ipynb` and replace your local version with the newly downloaded one.
54+
55+
## How is this repository different from [the original](https://github.com/udacity/deep-learning)?
56+
57+
1. I added support for Floyds built-in cifar-10 dataset. If its presence is detected, it will be used, without a need to download anything. ([see the commit](https://github.com/ludwiktrammer/deep-learning/commit/2e84ff7852905f154f1692f67ca15da28ac43149), [learn more abut datasets provided by Floyd](http://docs.floydhub.com/guides/datasets/))
58+
59+
2. I added a `floyd_requirements.txt` file, so an additional dependency is automatically taken care of. ([see the commit](https://github.com/ludwiktrammer/deep-learning/commit/80b459411d4395dacf8f46be0b028c81858bd97a), [learn more about `.floyd_requirements.txt` files](http://docs.floydhub.com/home/installing_dependencies/))
60+
61+
3. I added a `.floydignore` file to stop local data from being uploaded to Floyd - which wastes time and may even result in a timeout ([see the commit](https://github.com/ludwiktrammer/deep-learning/commit/30d4b536b67366feef38425ce1406e969452717e), [learn more about `.floydignore` files](http://docs.floydhub.com/home/floyd_ignore/))
62+
63+
3. I added this README

0 commit comments

Comments
 (0)