--resume bug fix #252
This commit is contained in:
1 parent
0a08375a8a
commit
86784cfdbf
1 file changed
+1
-1
@@ -378,7 +378,7 @@ if __name__ == '__main__':
|
||||
parser.add_argument('--multi-scale', action='store_true', help='vary img-size +/- 50%')
|
||||
parser.add_argument('--single-cls', action='store_true', help='train as single-class dataset')
|
||||
opt = parser.parse_args()
|
||||
opt.weights = last if opt.resume else opt.weights
|
||||
opt.weights = last if opt.resume and not opt.weights else opt.weights
|
||||
opt.cfg = check_file(opt.cfg) # check file
|
||||
opt.data = check_file(opt.data) # check file
|
||||
print(opt)
|
||||
|
||||
Reference in new issue
Block a user