Skip to content

Commit

Permalink
create tfrecords dir automatically (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanyanjiali authored May 22, 2020
1 parent 4365cdf commit cbe6578
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Datasets/MPII/tfrecords_mpii.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def parse_one_annotation(anno, image_dir):

def main():
print('Start to parse annotations.')
if not os.path.exists('./tfrecords_mpii'):
os.makedirs('./tfrecords_mpii')
if not os.path.exists('./tfrecords'):
os.makedirs('./tfrecords')

with open('./mpii_human_pose_v1_u12_2/train.json') as train_json:
train_annos = json.load(train_json)
Expand Down

0 comments on commit cbe6578

Please sign in to comment.