Switch to the Python version you want to use:
| '''This script goes along the blog post | |
| "Building powerful image classification models using very little data" | |
| from blog.keras.io. | |
| It uses data that can be downloaded at: | |
| https://www.kaggle.com/c/dogs-vs-cats/data | |
| In our setup, we: | |
| - created a data/ folder | |
| - created train/ and validation/ subfolders inside data/ | |
| - created cats/ and dogs/ subfolders inside train/ and validation/ | |
| - put the cat pictures index 0-999 in data/train/cats |
| # Object-oriented API | |
| # | |
| # Memory usage (iteration, object count, memory size) | |
| # 100 5637 1562216 | |
| # 200 5529 1491528 | |
| # 300 5422 1426264 | |
| # 400 5758 1587376 | |
| # 500 5422 1426288 | |
| # 600 5416 1440456 | |
| # 700 5610 1515056 |