|
|
@ -208,7 +208,7 @@ if __name__ == '__main__':
|
|
|
|
parser.add_argument('--cfg', type=str, default='yolov5s.yaml', help='model.yaml')
|
|
|
|
parser.add_argument('--cfg', type=str, default='yolov5s.yaml', help='model.yaml')
|
|
|
|
parser.add_argument('--device', default='', help='cuda device, i.e. 0 or 0,1,2,3 or cpu')
|
|
|
|
parser.add_argument('--device', default='', help='cuda device, i.e. 0 or 0,1,2,3 or cpu')
|
|
|
|
opt = parser.parse_args()
|
|
|
|
opt = parser.parse_args()
|
|
|
|
opt.cfg = glob.glob('./**/' + opt.cfg, recursive=True)[0] # find file
|
|
|
|
opt.cfg = check_file(opt.cfg) # check file
|
|
|
|
device = torch_utils.select_device(opt.device)
|
|
|
|
device = torch_utils.select_device(opt.device)
|
|
|
|
|
|
|
|
|
|
|
|
# Create model
|
|
|
|
# Create model
|
|
|
|