move model to gpu in tools/visactmap
parent
bf79ba96be
commit
67f56ca361
|
@ -134,6 +134,9 @@ def main():
|
||||||
use_gpu=use_gpu
|
use_gpu=use_gpu
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if use_gpu:
|
||||||
|
model = model.cuda()
|
||||||
|
|
||||||
if args.weights and check_isfile(args.weights):
|
if args.weights and check_isfile(args.weights):
|
||||||
load_pretrained_weights(model, args.weights)
|
load_pretrained_weights(model, args.weights)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue