Download quickdraw dataset into ./datasets/ folder
parent
060420e1ac
commit
b62624c4cd
|
@ -2942,13 +2942,23 @@
|
|||
"cell_type": "code",
|
||||
"execution_count": 82,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Downloading data from http://download.tensorflow.org/data/quickdraw_tutorial_dataset_v1.tar.gz\n",
|
||||
"1065304064/1065301781 [==============================] - 230s 0us/step\n",
|
||||
"1065312256/1065301781 [==============================] - 230s 0us/step\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"DOWNLOAD_ROOT = \"http://download.tensorflow.org/data/\"\n",
|
||||
"FILENAME = \"quickdraw_tutorial_dataset_v1.tar.gz\"\n",
|
||||
"filepath = tf.keras.utils.get_file(FILENAME,\n",
|
||||
" DOWNLOAD_ROOT + FILENAME,\n",
|
||||
" cache_subdir=\"datasets/quickdraw\",\n",
|
||||
"tf_download_root = \"http://download.tensorflow.org/data/\"\n",
|
||||
"filename = \"quickdraw_tutorial_dataset_v1.tar.gz\"\n",
|
||||
"filepath = tf.keras.utils.get_file(filename,\n",
|
||||
" tf_download_root + filename,\n",
|
||||
" cache_dir=\".\",\n",
|
||||
" extract=True)"
|
||||
]
|
||||
},
|
||||
|
@ -2975,16 +2985,16 @@
|
|||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"['/Users/ageron/.keras/datasets/quickdraw/training.tfrecord-00000-of-00010',\n",
|
||||
" '/Users/ageron/.keras/datasets/quickdraw/training.tfrecord-00001-of-00010',\n",
|
||||
" '/Users/ageron/.keras/datasets/quickdraw/training.tfrecord-00002-of-00010',\n",
|
||||
" '/Users/ageron/.keras/datasets/quickdraw/training.tfrecord-00003-of-00010',\n",
|
||||
" '/Users/ageron/.keras/datasets/quickdraw/training.tfrecord-00004-of-00010',\n",
|
||||
" '/Users/ageron/.keras/datasets/quickdraw/training.tfrecord-00005-of-00010',\n",
|
||||
" '/Users/ageron/.keras/datasets/quickdraw/training.tfrecord-00006-of-00010',\n",
|
||||
" '/Users/ageron/.keras/datasets/quickdraw/training.tfrecord-00007-of-00010',\n",
|
||||
" '/Users/ageron/.keras/datasets/quickdraw/training.tfrecord-00008-of-00010',\n",
|
||||
" '/Users/ageron/.keras/datasets/quickdraw/training.tfrecord-00009-of-00010']"
|
||||
"['datasets/training.tfrecord-00000-of-00010',\n",
|
||||
" 'datasets/training.tfrecord-00001-of-00010',\n",
|
||||
" 'datasets/training.tfrecord-00002-of-00010',\n",
|
||||
" 'datasets/training.tfrecord-00003-of-00010',\n",
|
||||
" 'datasets/training.tfrecord-00004-of-00010',\n",
|
||||
" 'datasets/training.tfrecord-00005-of-00010',\n",
|
||||
" 'datasets/training.tfrecord-00006-of-00010',\n",
|
||||
" 'datasets/training.tfrecord-00007-of-00010',\n",
|
||||
" 'datasets/training.tfrecord-00008-of-00010',\n",
|
||||
" 'datasets/training.tfrecord-00009-of-00010']"
|
||||
]
|
||||
},
|
||||
"execution_count": 84,
|
||||
|
@ -3004,16 +3014,16 @@
|
|||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"['/Users/ageron/.keras/datasets/quickdraw/eval.tfrecord-00000-of-00010',\n",
|
||||
" '/Users/ageron/.keras/datasets/quickdraw/eval.tfrecord-00001-of-00010',\n",
|
||||
" '/Users/ageron/.keras/datasets/quickdraw/eval.tfrecord-00002-of-00010',\n",
|
||||
" '/Users/ageron/.keras/datasets/quickdraw/eval.tfrecord-00003-of-00010',\n",
|
||||
" '/Users/ageron/.keras/datasets/quickdraw/eval.tfrecord-00004-of-00010',\n",
|
||||
" '/Users/ageron/.keras/datasets/quickdraw/eval.tfrecord-00005-of-00010',\n",
|
||||
" '/Users/ageron/.keras/datasets/quickdraw/eval.tfrecord-00006-of-00010',\n",
|
||||
" '/Users/ageron/.keras/datasets/quickdraw/eval.tfrecord-00007-of-00010',\n",
|
||||
" '/Users/ageron/.keras/datasets/quickdraw/eval.tfrecord-00008-of-00010',\n",
|
||||
" '/Users/ageron/.keras/datasets/quickdraw/eval.tfrecord-00009-of-00010']"
|
||||
"['datasets/eval.tfrecord-00000-of-00010',\n",
|
||||
" 'datasets/eval.tfrecord-00001-of-00010',\n",
|
||||
" 'datasets/eval.tfrecord-00002-of-00010',\n",
|
||||
" 'datasets/eval.tfrecord-00003-of-00010',\n",
|
||||
" 'datasets/eval.tfrecord-00004-of-00010',\n",
|
||||
" 'datasets/eval.tfrecord-00005-of-00010',\n",
|
||||
" 'datasets/eval.tfrecord-00006-of-00010',\n",
|
||||
" 'datasets/eval.tfrecord-00007-of-00010',\n",
|
||||
" 'datasets/eval.tfrecord-00008-of-00010',\n",
|
||||
" 'datasets/eval.tfrecord-00009-of-00010']"
|
||||
]
|
||||
},
|
||||
"execution_count": 85,
|
||||
|
|
Loading…
Reference in New Issue