Skip to content

Conversation

liangxiao05
Copy link
Contributor

When creat a tf record using purely negative images which have no 'object' in their xmls ,the script gets a key error : for obj in data['object']: Key Error : 'object'
In order to fix this , add a 'if ' judegement before it .

when creat a tf record using purely negative images which have no 'object' in their xmls ,the script gets a key error : for obj in data['object']:  Key Error : 'object'
In order to fix this , add a 'if ' judegement before it .
@liangxiao05
Copy link
Contributor Author

please refer to this
#3578

@pkulzc pkulzc merged commit e3bfb9b into tensorflow:master Apr 9, 2018
@liangxiao05
Copy link
Contributor Author

hi,@pkulzc,thank you .
same question in the script ,so you will have to fix this script too~
https://github.com/tensorflow/models/blob/master/research/object_detection/dataset_tools/create_pet_tf_record.py

@pkulzc
Copy link
Contributor

pkulzc commented Apr 10, 2018

Sure, we will fix that in the next release. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants