oskarastrom commited on
Commit
188a41c
·
1 Parent(s): 5c03d26

Update detect_frames.py

Browse files
Files changed (1) hide show
  1. scripts/detect_frames.py +2 -4
scripts/detect_frames.py CHANGED
@@ -87,12 +87,10 @@ def detect(in_seq_dir, out_seq_dir, model, device, verbose):
87
  'height': height
88
  }
89
  print('created object')
90
- json_string = json.dumps(json_obj)
91
- print('created string')
92
 
93
  with open(os.path.join(out_seq_dir, 'pred.json'), 'w') as f:
94
- f.write(json_string)
95
- print('saved string')
96
 
97
  def argument_parser():
98
  parser = argparse.ArgumentParser()
 
87
  'height': height
88
  }
89
  print('created object')
 
 
90
 
91
  with open(os.path.join(out_seq_dir, 'pred.json'), 'w') as f:
92
+ json.dump(json_obj, f)
93
+ print('saved')
94
 
95
  def argument_parser():
96
  parser = argparse.ArgumentParser()