"git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "7226980fb6c8fdb6cf4f5112a00b4e05781365ea"
Commit c766ef27 authored by Jimmy's avatar Jimmy Committed by Neal Wu
Browse files

update warning on extra background class added by build_image_data.py

parent a24df861
...@@ -639,6 +639,14 @@ reside within `$TRAIN_DIR` and `$VALIDATION_DIR` arranged as such: ...@@ -639,6 +639,14 @@ reside within `$TRAIN_DIR` and `$VALIDATION_DIR` arranged as such:
$VALIDATION_DIR/cat/cat.JPG $VALIDATION_DIR/cat/cat.JPG
... ...
``` ```
**NOTE** This script will append an extra background class indexed at 0, so your
class labels will range from [0, num_labels]. Using the example above, the
corresponding class labels generated from `build_image_data.py` will be as follows:
```shell
0
1 dog
2 cat
```
Each sub-directory in `$TRAIN_DIR` and `$VALIDATION_DIR` corresponds to a unique Each sub-directory in `$TRAIN_DIR` and `$VALIDATION_DIR` corresponds to a unique
label for the images that reside within that sub-directory. The images may be label for the images that reside within that sub-directory. The images may be
...@@ -650,6 +658,7 @@ Each entry of the `TFRecord` is a serialized `tf.Example` protocol buffer. A ...@@ -650,6 +658,7 @@ Each entry of the `TFRecord` is a serialized `tf.Example` protocol buffer. A
complete list of information contained in the `tf.Example` is described in the complete list of information contained in the `tf.Example` is described in the
comments of `build_image_data.py`. comments of `build_image_data.py`.
To run `build_image_data.py`, you can run the following command line: To run `build_image_data.py`, you can run the following command line:
```shell ```shell
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment