Skip to content

Commit 93413c5

Browse files
author
liaogang
committed
fix PIL in image classification
ISSUE=4600255 git-svn-id: https://svn.baidu.com/idl/trunk/paddle@1459 1ad973e4-5ce8-4261-8a94-b56d1f490c56
1 parent 169eb90 commit 93413c5

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

doc/demo/image_classification/image_classification.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,17 @@ First, download CIFAR-10 dataset. CIFAR-10 dataset can be downloaded from its of
1111
<https://www.cs.toronto.edu/~kriz/cifar.html>
1212

1313
We have prepared a script to download and process CIFAR-10 dataset. The script will download CIFAR-10 dataset from the official dataset.
14-
It will convert it to jpeg images and organize them into a directory with the required structure for the tutorial. Make sure that you have installed the python dependency (PIL). If not, you can install it by `pip install PIL` and if you have installed `pip` package.
14+
It will convert it to jpeg images and organize them into a directory with the required structure for the tutorial. Make sure that you have installed pillow and its dependents.
15+
Consider the following commands:
16+
17+
1. install pillow dependents
18+
19+
```bash
20+
sudo apt-get install libjpeg-dev
21+
pip install pillow
22+
```
23+
24+
2. download data and preparation
1525

1626
```bash
1727
cd demo/image_classification/data/

0 commit comments

Comments
 (0)