Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,13 @@ Sometimes you would need a functionality which is not directly provided by Keras
(i.e. a neural network which takes input from multiple data sources, and does a combined training on this data), and you want that the data generator should be able to handle the data preparation on the fly, you can create a wrapper around ImageDataGenerator class to give the required output.[This notebook](./Code/CustomDataGen_Keras.ipynb) explains a simple solution to this usecase.

2. Another use case could be that you want to resize the images from a shape say 150x150 to a shape 224x224, which is generally utilized by the pretrained models, you can customize the ImageDataGenerator without coding your own data generator from ground up [(Example Notebook)](https://github.com/faizankshaikh/AV_Article_Codes/blob/master/Inception_From_Scratch/improvements/Inception_v1_from_Scratch.ipynb).

- ### Data Science Hack #45 Easily Convert Notebooks to Python Scripts and Sharable Files with nbconvert
### Run nbconvert from the Command Line
From your terminal shell, run `jupyter nbconvert --to my_format my_notebook.ipynb`.
`my_format` is one of the conversion options.
`my_notebook.ipynb` is the name of the file path to your notebook to be converted.

### Running nbconvert in a program
`jupyter nbconvert --to script my_notebook.ipynb` creates `my_notebook.py` in the same folder.
Then you can run `python my_notebook.py`