-
-
Save thiagolcks/a46947123eb9f3d7c4656682c4837527 to your computer and use it in GitHub Desktop.
CDiscount - Error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 5, | |
"metadata": { | |
"ExecuteTime": { | |
"end_time": "2017-12-10T00:30:56.635001Z", | |
"start_time": "2017-12-10T00:29:49.084468Z" | |
} | |
}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"3095080\n" | |
] | |
} | |
], | |
"source": [ | |
"%reload_ext autoreload\n", | |
"%autoreload 2 # Reload all modules every time before executing the Python code typed.\n", | |
"%matplotlib inline\n", | |
"\n", | |
"from fastai.imports import *\n", | |
"from fastai.transforms import *\n", | |
"from fastai.model import *\n", | |
"from fastai.dataset import *\n", | |
"\n", | |
"PATH = '/data/cdiscount/'\n", | |
"sz = 120\n", | |
"bs = 64\n", | |
"arch=resnet34\n", | |
"\n", | |
"ts = tfms_from_model(arch, sz, aug_tfms=transforms_side_on, max_zoom=1.1)\n", | |
"data = ImageClassifierData.from_paths(PATH, tfms=ts, bs=bs, test_name='test')" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 63, | |
"metadata": { | |
"ExecuteTime": { | |
"end_time": "2017-12-08T17:20:17.463468Z", | |
"start_time": "2017-12-08T17:20:17.409177Z" | |
} | |
}, | |
"outputs": [], | |
"source": [ | |
"x,y = next(iter(data.test_dl))" | |
] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "Python 3", | |
"language": "python", | |
"name": "python3" | |
}, | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 3 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", | |
"nbconvert_exporter": "python", | |
"pygments_lexer": "ipython3", | |
"version": "3.6.3" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment