Skip to content

Commit

Permalink
Properly set context for detector network (#1670)
Browse files Browse the repository at this point in the history
  • Loading branch information
marksteve authored Jun 9, 2021
1 parent d4bb9a1 commit ba36d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gluoncv/model_zoo/smot/general_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def __init__(self, gpu_id,
self.ctx = mx.gpu(gpu_id)

self.net = get_net(classes=COCODetection.CLASSES,
ctx=mx.gpu(0),
ctx=self.ctx,
model_name=model_name,
use_pretrained=use_pretrained,
param_path=param_path)
Expand Down

0 comments on commit ba36d1b

Please sign in to comment.