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