Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a778063

Browse files
updated create_coco_tf_record.py file to include masks by default
1 parent 0593d42 commit a778063

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ python labelme2coco.py test test.json
147147
Now we can create the TFRecord files using the [create_coco_tf_record.py script](create_coco_tf_record.py).
148148

149149
```bash
150-
python create_coco_tf_record.py --logtostderr --train_image_dir=images/train --test_image_dir=images/test --train_annotations_file=images/train.json --test_annotations_file=images/test.json --output_dir=./
150+
python create_coco_tf_record.py --logtostderr --train_image_dir=images/train --test_image_dir=images/test --train_annotations_file=images/train.json --test_annotations_file=images/test.json --include_masks=True --output_dir=./
151151
```
152152

153153
After executing this command, you should have a train.record and test.record file inside your object detection folder.

‎create_coco_tf_record.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151

5252

5353
flags = tf.app.flags
54-
tf.flags.DEFINE_boolean('include_masks', False,
54+
tf.flags.DEFINE_boolean('include_masks', True,
5555
'Whether to include instance segmentations masks '
56-
'(PNG encoded) in the result. default: False.')
56+
'(PNG encoded) in the result. default: True.')
5757
tf.flags.DEFINE_string('train_image_dir', '',
5858
'Training image directory.')
5959
tf.flags.DEFINE_string('test_image_dir', '',

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /