glenn-jocher
commited on
Commit
•
80b82e8
1
Parent(s):
245bd1d
update yolo.py
Browse files- models/yolo.py +1 -1
models/yolo.py
CHANGED
@@ -208,7 +208,7 @@ if __name__ == '__main__':
|
|
208 |
parser.add_argument('--cfg', type=str, default='yolov5s.yaml', help='model.yaml')
|
209 |
parser.add_argument('--device', default='', help='cuda device, i.e. 0 or 0,1,2,3 or cpu')
|
210 |
opt = parser.parse_args()
|
211 |
-
opt.cfg =
|
212 |
device = torch_utils.select_device(opt.device)
|
213 |
|
214 |
# Create model
|
|
|
208 |
parser.add_argument('--cfg', type=str, default='yolov5s.yaml', help='model.yaml')
|
209 |
parser.add_argument('--device', default='', help='cuda device, i.e. 0 or 0,1,2,3 or cpu')
|
210 |
opt = parser.parse_args()
|
211 |
+
opt.cfg = check_file(opt.cfg) # check file
|
212 |
device = torch_utils.select_device(opt.device)
|
213 |
|
214 |
# Create model
|