Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit d8fdd47

Browse files
committed
move convert dir to tools dir
1 parent bfda006 commit d8fdd47

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

convert/README.md renamed to tools/README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
# Convert the label files to CSV
1+
# Additional tools
22

3-
## Introduction
3+
## Convert the label files to CSV
4+
5+
### Introduction
46
To train the images on [Google Cloud AutoML](https://cloud.google.com/automl), we should prepare the specific csv files follow [this format](https://cloud.google.com/vision/automl/object-detection/docs/csv-format).
57

68
`label_to_csv.py` can convert the `txt` or `xml` label files to csv file. The labels files should strictly follow to below structure.
79

8-
## Structures
9-
* Images
10+
### Structures
11+
* Images
1012
To train the object detection tasks, all the images should upload to the cloud storage and access it by its name. All the images should stay in the **same buckets** in cloud storage. Also, different classes should have their own folder as below.
1113
```
1214
<bucket_name> (on the cloud storage)
@@ -21,7 +23,7 @@ To train the images on [Google Cloud AutoML](https://cloud.google.com/automl), w
2123
| ...
2224
```
2325
Note, URI of the `class1_01.jpg` is `gs://<bucket_name>/class1/class1_01.jpg`
24-
* Labels
26+
* Labels
2527
There are four types of training data - `TRAINING`, `VALIDATION`, `TEST` and `UNASSIGNED`. To assign different categories, we should create four directories.
2628
Inside each folder, users should create the class folders with the same name in cloud storage (see below structure).
2729
```
@@ -33,22 +35,22 @@ To train the images on [Google Cloud AutoML](https://cloud.google.com/automl), w
3335
| | -- class2
3436
| | | -- class2_01.txt (or .xml)
3537
| | | ...
36-
| | ...
38+
| | ...
3739
| -- VALIDATION
3840
| | -- class1
3941
| | | -- class1_02.txt (or .xml)
4042
| | | ...
4143
| | -- class2
4244
| | | -- class2_02.txt (or .xml)
4345
| | | ...
44-
| | ...
46+
| | ...
4547
| -- TEST
4648
| | (same as TRAINING and VALIDATION)
4749
| -- UNASSIGNED
4850
| | (same as TRAINING and VALIDATION)
4951
```
50-
51-
## Usage
52+
53+
### Usage
5254
5355
To see the argument of `label_to_csv.py`,
5456
```commandline
@@ -82,4 +84,4 @@ python label_to_csv.py \
8284
```
8385

8486
The output file is `res.csv` by default. Afterwards, upload the csv file to the cloud storage and you can start training!
85-
87+
File renamed without changes.

0 commit comments

Comments
 (0)