https://github.com/settinghead/project2-cnn-image-classification
https://github.com/settinghead/project2-cnn-image-classification
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/settinghead/project2-cnn-image-classification
- Owner: settinghead
- Created: 2017-09-17T03:23:41.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-18T00:10:43.000Z (over 8 years ago)
- Last Synced: 2025-03-04T13:46:49.289Z (about 1 year ago)
- Language: HTML
- Size: 254 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## (Optional) Running the Udacity Deep Learning Foundations image classification project on floydhub.com
You are not required to use FloydHub for this project, but we've provided instructions if you'd like help getting set up.
1. Create an account on [floydhub.com](https://www.floydhub.com) (don't forget to confirm your email). Create an individual account on floydhub.com (don't forget to confirm your email). (You won’t be able to finish most projects in the one hour allowed for free trials). Prices for floydhub.com are currently $0.432 / hour of GPU use, and most of your projects will run in around 2 - 3 hours. In order to minimize cost, you may want to try to both debug as much as possible on your local computer and make sure that you end your jobs soon after they finish.
2. Install the `floyd` command on your computer:
pip install -U floyd-cli
Do this even if you already installed `floyd-cli` before, just to make sure you have the most recent version (Its pace of development is fast!).
3. Associate the command with your Floyd account:
floyd login
(a page with authentication token will open; you will need to copy the token into your terminal)
4. Enter the folder for the image classification project:
cd image-classification
5. Initiate a Floyd project:
floyd init dlnd_image_classification
6. Run the project:
floyd run --data mat_udacity/datasets/udacity-cifar-10/1:cifar --mode jupyter --gpu --env tensorflow-1.2
It will be run on a machine with GPU (`--gpu`), using a Tenserflow environment (`--env tensorflow-1.2`), as a Jupyter notebook (`--mode jupyter`), with the cifar-10 dataset available (`--data mat_udacity/datasets/udacity-cifar-10/1:cifar`).
7. 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.
8. 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:
floyd stop ID
(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))
**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.
Alternatively, If you already stoped the experiment, you can still download the file using the `floyd output` command:
floyd output ID
(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))
Just run the command above, download `dlnd_image_classification.ipynb` and replace your local version with the newly downloaded one.