You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@singa.apache.org by zh...@apache.org on 2021/01/29 11:48:29 UTC

[singa] branch dev updated: Update README.md

This is an automated email from the ASF dual-hosted git repository.

zhaojing pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/singa.git


The following commit(s) were added to refs/heads/dev by this push:
     new 7765d4b  Update README.md
     new ecbe155  Merge pull request #832 from chrishkchris/readme_data
7765d4b is described below

commit 7765d4b931991346781ac0c6ac2860acbab5153f
Author: Chris Yeung <38...@users.noreply.github.com>
AuthorDate: Thu Jan 28 10:58:46 2021 +0800

    Update README.md
---
 examples/largedataset_cnn/README.md | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/examples/largedataset_cnn/README.md b/examples/largedataset_cnn/README.md
index 7d71279..d872044 100644
--- a/examples/largedataset_cnn/README.md
+++ b/examples/largedataset_cnn/README.md
@@ -24,6 +24,32 @@ Examples inside this folder show how to train CNN models using SINGA for image c
 It read the dataset from the filesystem defined by `process_data.py`. Hence, users can modify `process_data.py`
 for their perference of dataset format.
 
+In the current setting, 'classes.txt' contains the names of the classes at each line. For example, if it is food dataset containing three classes, 'classes.txt' may read like this:
+
+    Fish_and_chips
+    bagel_and_croissant
+    bak_kut_teh
+
+Then, the directory '/Data/' contains all the folders for images of different classes, while each of the folder names should be the same as that appeared in 'classes.txt'. The name of an image file should not be a concern, but it should be placed inside the folder of the class it belongs to. For the same example above, the folder structure may look like this: 
+
+    Data/
+        Fish_and_chips/
+            fish1.jpg
+            fish2.jpg
+            ...
+            chip1.jpg
+            ...
+        bagel_and_croissant/
+            bagel.jpg
+            ...
+            croissant1.jpg
+            croissant2.jpg
+            ...
+        bak_kut_teh/
+            photo.jpg
+            photo2.jpg
+            ...             
+
 Before running the code, the `model` folder in `examples/cnn` should be copied to this directory.
 
 * `train_largedata.py` is the training script, which controls the training flow by