initialize from darknet53
This commit is contained in:
parent
26c52f9485
commit
741626c55b
2
train.py
2
train.py
|
@ -76,7 +76,7 @@ def main(opt):
|
||||||
else:
|
else:
|
||||||
# Initialize model with darknet53 weights (optional)
|
# Initialize model with darknet53 weights (optional)
|
||||||
if not os.path.isfile('weights/darknet53.conv.74'):
|
if not os.path.isfile('weights/darknet53.conv.74'):
|
||||||
os.system('wget https://pjreddie.com/media/files/darknet53.conv.74 -P /weights')
|
os.system('wget https://pjreddie.com/media/files/darknet53.conv.74 -P weights')
|
||||||
load_weights(model, 'weights/darknet53.conv.74')
|
load_weights(model, 'weights/darknet53.conv.74')
|
||||||
|
|
||||||
if torch.cuda.device_count() > 1:
|
if torch.cuda.device_count() > 1:
|
||||||
|
|
Loading…
Reference in New Issue