(self)
| 330 | }) |
| 331 | |
| 332 | def dump(self): |
| 333 | dump_arguments = [ |
| 334 | (self.bbox_data, args.bbox_det_file), |
| 335 | (self.mask_data, args.mask_det_file) |
| 336 | ] |
| 337 | |
| 338 | for data, path in dump_arguments: |
| 339 | with open(path, 'w') as f: |
| 340 | json.dump(data, f) |
| 341 | |
| 342 | def dump_web(self): |
| 343 | """ Dumps it in the format for my web app. Warning: bad code ahead! """ |
no outgoing calls
no test coverage detected