Skip to content

Commit

Permalink
- write error cases to file in test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kweston committed Jun 10, 2021
1 parent 8c76b8b commit 31b0ca7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ def test(data,
parser.add_argument('--exist-ok', action='store_true', help='existing project/name ok, do not increment')
parser.add_argument('--cfg', type=str, default='models/yolov4-csp.cfg', help='*.cfg path')
parser.add_argument('--names', type=str, default='data/coco.names', help='*.cfg path')
parser.add_argument('--save-errors', help='Save the error cases to file', action='store_true')
opt = parser.parse_args()
opt.save_json |= opt.data.endswith('coco.yaml')
opt.data = check_file(opt.data) # check file
Expand Down

0 comments on commit 31b0ca7

Please sign in to comment.