tensorflow / tensorflow/models

create_pet_tf_record.py is broken

Open
#2,958 15 comments 0 reactions 2 assignees View on GitHub

Nobody has claimed this yet.

models:research:odapi type:support
Dominant language
Python
Stars
77.7k
Forks
44.8k
PR merge metrics
No merged PRs in 30d

Description

create_pet_tf_record.py does not work anymore
the flag faces_only=True does not work

There is an import error and even if I fix that, all the images are ignored:
WARNING:root:Invalid example: annotations/xmls/great_pyrenees_15.xml, ignoring.

the bug should be here:
mask_stack = np.stack(masks).astype(np.float32)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.