initialize from darknet53
This commit is contained in:
parent
332fe002b3
commit
ed0390d0b5
1
train.py
1
train.py
|
@ -74,7 +74,6 @@ def main(opt):
|
||||||
del checkpoint # current, saved
|
del checkpoint # current, saved
|
||||||
else:
|
else:
|
||||||
load_weights(model, 'weights/darknet53.conv.74') # load darknet53 weights (optional)
|
load_weights(model, 'weights/darknet53.conv.74') # load darknet53 weights (optional)
|
||||||
|
|
||||||
if torch.cuda.device_count() > 1:
|
if torch.cuda.device_count() > 1:
|
||||||
print('Using ', torch.cuda.device_count(), ' GPUs')
|
print('Using ', torch.cuda.device_count(), ' GPUs')
|
||||||
model = nn.DataParallel(model)
|
model = nn.DataParallel(model)
|
||||||
|
|
Loading…
Reference in New Issue