Skip to content
Merged
Show file tree
Hide file tree
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
282 changes: 1 addition & 281 deletions docs/practices/cv/image_search.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -83,287 +83,7 @@
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"item 191/41626 [..............................] - ETA: 28s - 679us/ite"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Cache file /home/aistudio/.cache/paddle/dataset/cifar/cifar-10-python.tar.gz not found, downloading https://dataset.bj.bcebos.com/cifar/cifar-10-python.tar.gz \n",
"Begin to download\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"item 309/41626 [..............................] - ETA: 30s - 731us/item\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bitem 418/41626 [..............................] - ETA: 30s - 736us/it\n",
"item 2796/41626 [=>............................] - ETA: 27s - 702us/it"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"IOPub message rate exceeded.\n",
"The notebook server will temporarily stop sending output\n",
"to the client in order to avoid crashing it.\n",
"To change this limit, set the config variable\n",
"`--NotebookApp.iopub_msg_rate_limit`.\n",
"\n",
"Current values:\n",
"NotebookApp.iopub_msg_rate_limit=1000.0 (msgs/sec)\n",
"NotebookApp.rate_limit_window=3.0 (secs)\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"item 3977/41626 [=>............................] - ETA: 27s - 721us/it\n",
"item 6665/41626 [===>..........................] - ETA: 25s - 731us/item"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"IOPub message rate exceeded.\n",
"The notebook server will temporarily stop sending output\n",
"to the client in order to avoid crashing it.\n",
"To change this limit, set the config variable\n",
"`--NotebookApp.iopub_msg_rate_limit`.\n",
"\n",
"Current values:\n",
"NotebookApp.iopub_msg_rate_limit=1000.0 (msgs/sec)\n",
"NotebookApp.rate_limit_window=3.0 (secs)\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"item 7883/41626 [====>.........................] - ETA: 24s - 737us/i\n",
"item 10573/41626 [======>.......................] - ETA: 22s - 737us/ite"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"IOPub message rate exceeded.\n",
"The notebook server will temporarily stop sending output\n",
"to the client in order to avoid crashing it.\n",
"To change this limit, set the config variable\n",
"`--NotebookApp.iopub_msg_rate_limit`.\n",
"\n",
"Current values:\n",
"NotebookApp.iopub_msg_rate_limit=1000.0 (msgs/sec)\n",
"NotebookApp.rate_limit_window=3.0 (secs)\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"item 11649/41626 [=======>......................] - ETA: 22s - 739us/i\n",
"item 14429/41626 [=========>....................] - ETA: 20s - 749us/it"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"IOPub message rate exceeded.\n",
"The notebook server will temporarily stop sending output\n",
"to the client in order to avoid crashing it.\n",
"To change this limit, set the config variable\n",
"`--NotebookApp.iopub_msg_rate_limit`.\n",
"\n",
"Current values:\n",
"NotebookApp.iopub_msg_rate_limit=1000.0 (msgs/sec)\n",
"NotebookApp.rate_limit_window=3.0 (secs)\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"item 15507/41626 [==========>...................] - ETA: 19s - 747us/it\n",
"item 18274/41626 [============>.................] - ETA: 17s - 746us/it"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"IOPub message rate exceeded.\n",
"The notebook server will temporarily stop sending output\n",
"to the client in order to avoid crashing it.\n",
"To change this limit, set the config variable\n",
"`--NotebookApp.iopub_msg_rate_limit`.\n",
"\n",
"Current values:\n",
"NotebookApp.iopub_msg_rate_limit=1000.0 (msgs/sec)\n",
"NotebookApp.rate_limit_window=3.0 (secs)\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"item 19387/41626 [============>.................] - ETA: 16s - 749us/i\n",
"item 22152/41626 [==============>...............] - ETA: 14s - 752us/ite"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"IOPub message rate exceeded.\n",
"The notebook server will temporarily stop sending output\n",
"to the client in order to avoid crashing it.\n",
"To change this limit, set the config variable\n",
"`--NotebookApp.iopub_msg_rate_limit`.\n",
"\n",
"Current values:\n",
"NotebookApp.iopub_msg_rate_limit=1000.0 (msgs/sec)\n",
"NotebookApp.rate_limit_window=3.0 (secs)\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"item 23505/41626 [===============>..............] - ETA: 13s - 752us/it\n",
"item 26056/41626 [=================>............] - ETA: 11s - 751us/ite"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"IOPub message rate exceeded.\n",
"The notebook server will temporarily stop sending output\n",
"to the client in order to avoid crashing it.\n",
"To change this limit, set the config variable\n",
"`--NotebookApp.iopub_msg_rate_limit`.\n",
"\n",
"Current values:\n",
"NotebookApp.iopub_msg_rate_limit=1000.0 (msgs/sec)\n",
"NotebookApp.rate_limit_window=3.0 (secs)\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"item 27554/41626 [==================>...........] - ETA: 10s - 756us/i\n",
"item 30135/41626 [====================>.........] - ETA: 8s - 757us/it"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"IOPub message rate exceeded.\n",
"The notebook server will temporarily stop sending output\n",
"to the client in order to avoid crashing it.\n",
"To change this limit, set the config variable\n",
"`--NotebookApp.iopub_msg_rate_limit`.\n",
"\n",
"Current values:\n",
"NotebookApp.iopub_msg_rate_limit=1000.0 (msgs/sec)\n",
"NotebookApp.rate_limit_window=3.0 (secs)\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"item 32176/41626 [======================>.......] - ETA: 7s - 753us/\n",
"item 34137/41626 [=======================>......] - ETA: 5s - 752us/it"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"IOPub message rate exceeded.\n",
"The notebook server will temporarily stop sending output\n",
"to the client in order to avoid crashing it.\n",
"To change this limit, set the config variable\n",
"`--NotebookApp.iopub_msg_rate_limit`.\n",
"\n",
"Current values:\n",
"NotebookApp.iopub_msg_rate_limit=1000.0 (msgs/sec)\n",
"NotebookApp.rate_limit_window=3.0 (secs)\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"item 35459/41626 [========================>.....] - ETA: 4s - 754us/\n",
"item 38238/41626 [==========================>...] - ETA: 2s - 750us/it"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"IOPub message rate exceeded.\n",
"The notebook server will temporarily stop sending output\n",
"to the client in order to avoid crashing it.\n",
"To change this limit, set the config variable\n",
"`--NotebookApp.iopub_msg_rate_limit`.\n",
"\n",
"Current values:\n",
"NotebookApp.iopub_msg_rate_limit=1000.0 (msgs/sec)\n",
"NotebookApp.rate_limit_window=3.0 (secs)\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"item 39537/41626 [===========================>..] - ETA: 1s - 751us/\n",
"item 41626/41626 [============================>.] - ETA: 0s - 749us/item"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\n",
"Download finished\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"(50000, 3, 32, 32)\n",
"(50000,)\n"
]
}
],
"outputs": [],
"source": [
"import paddle.vision.transforms as T\n",
"transform = T.Compose([T.Transpose((2, 0, 1))])\n",
Expand Down
79 changes: 0 additions & 79 deletions docs/practices/jit/image_search_with_jit.ipynb

Large diffs are not rendered by default.

36 changes: 17 additions & 19 deletions docs/practices/quick_start/save_model.ipynb
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -148,35 +148,33 @@
},
"outputs": [
{
"name": "stderr",
"name": "stdout",
"output_type": "stream",
"text": [
"W0422 17:11:10.184468 3841 gpu_context.cc:244] Please NOTE: device: 0, GPU Compute Capability: 7.0, Driver API Version: 11.0, Runtime API Version: 10.1\n",
"W0422 17:11:10.189138 3841 gpu_context.cc:272] device: 0, cuDNN Version: 7.6.\n"
"The loss value printed in the log is the current step, and the metric is the average value of previous steps.\n",
"Epoch 1/3\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"The loss value printed in the log is the current step, and the metric is the average value of previous steps.\n",
"Epoch 1/3\n"
"step 938/938 [==============================] - loss: 0.0882 - acc: 0.9377 - 30ms/step \n",
"step 938/938 [==============================] - loss: 0.0100 - acc: 0.9474 - 30ms/step \n",
"save checkpoint at /home/aistudio/mnist_checkpoint/0\n",
"Eval begin...\n",
"step 157/157 [==============================] - loss: 0.0015 - acc: 0.9771 - 30ms/step \n",
"step 157/157 [==============================] - loss: 0.0044 - acc: 0.9801 - 28ms/step \n",
"Eval samples: 10000\n",
"Epoch 2/3\n",
"step 938/938 [==============================] - loss: 0.0078 - acc: 0.9801 - 29ms/step \n",
"step 938/938 [==============================] - loss: 0.0345 - acc: 0.9813 - 30ms/step \n",
"save checkpoint at /home/aistudio/mnist_checkpoint/1\n",
"Eval begin...\n",
"step 157/157 [==============================] - loss: 2.8927e-04 - acc: 0.9814 - 28ms/step \n",
"step 157/157 [==============================] - loss: 0.0013 - acc: 0.9844 - 27ms/step \n",
"Eval samples: 10000\n",
"Epoch 3/3\n",
"step 938/938 [==============================] - loss: 0.0321 - acc: 0.9865 - 30ms/step \n",
"step 938/938 [==============================] - loss: 0.0028 - acc: 0.9869 - 29ms/step \n",
"save checkpoint at /home/aistudio/mnist_checkpoint/2\n",
"Eval begin...\n",
"step 157/157 [==============================] - loss: 3.5028e-04 - acc: 0.9829 - 31ms/step \n",
"step 157/157 [==============================] - loss: 0.0013 - acc: 0.9872 - 28ms/step \n",
"Eval samples: 10000\n",
"save checkpoint at /home/aistudio/mnist_checkpoint/final\n"
]
Expand Down Expand Up @@ -253,16 +251,16 @@
"text": [
"The loss value printed in the log is the current step, and the metric is the average value of previous steps.\n",
"Epoch 1/2\n",
"step 938/938 [==============================] - loss: 0.0107 - acc: 0.9886 - 30ms/step \n",
"step 938/938 [==============================] - loss: 0.0036 - acc: 0.9895 - 29ms/step \n",
"save checkpoint at /home/aistudio/mnist_checkpoint/0\n",
"Eval begin...\n",
"step 157/157 [==============================] - loss: 3.7397e-05 - acc: 0.9864 - 29ms/step \n",
"step 157/157 [==============================] - loss: 0.0025 - acc: 0.9874 - 28ms/step \n",
"Eval samples: 10000\n",
"Epoch 2/2\n",
"step 938/938 [==============================] - loss: 5.9229e-04 - acc: 0.9918 - 30ms/step \n",
"step 938/938 [==============================] - loss: 8.8357e-04 - acc: 0.9925 - 29ms/step \n",
"save checkpoint at /home/aistudio/mnist_checkpoint/1\n",
"Eval begin...\n",
"step 157/157 [==============================] - loss: 5.6621e-05 - acc: 0.9832 - 30ms/step \n",
"step 157/157 [==============================] - loss: 4.4413e-04 - acc: 0.9884 - 28ms/step \n",
"Eval samples: 10000\n",
"save checkpoint at /home/aistudio/mnist_checkpoint/final\n"
]
Expand Down Expand Up @@ -364,14 +362,14 @@
"text": [
"The loss value printed in the log is the current step, and the metric is the average value of previous steps.\n",
"Epoch 1/2\n",
"step 938/938 [==============================] - loss: 8.9464e-04 - acc: 0.9920 - 30ms/step \n",
"step 938/938 [==============================] - loss: 0.0018 - acc: 0.9926 - 29ms/step \n",
"Eval begin...\n",
"step 157/157 [==============================] - loss: 2.2678e-05 - acc: 0.9851 - 28ms/step \n",
"step 157/157 [==============================] - loss: 1.3860e-04 - acc: 0.9863 - 28ms/step \n",
"Eval samples: 10000\n",
"Epoch 2/2\n",
"step 938/938 [==============================] - loss: 2.6110e-04 - acc: 0.9944 - 30ms/step \n",
"step 938/938 [==============================] - loss: 1.5363e-04 - acc: 0.9949 - 30ms/step \n",
"Eval begin...\n",
"step 157/157 [==============================] - loss: 6.7650e-06 - acc: 0.9866 - 32ms/step \n",
"step 157/157 [==============================] - loss: 1.5809e-04 - acc: 0.9880 - 29ms/step \n",
"Eval samples: 10000\n"
]
}
Expand Down
Loading