Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mingdong-li committed Oct 1, 2019
2 parents d1a8343 + 32b569f commit 8e75f8b
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 984 deletions.
674 changes: 0 additions & 674 deletions detector/yolov3/LICENSE

This file was deleted.

198 changes: 0 additions & 198 deletions detector/yolov3/README.md

This file was deleted.

17 changes: 0 additions & 17 deletions detector/yolov3/requirements.txt

This file was deleted.

9 changes: 0 additions & 9 deletions detector/yolov3/run.sh

This file was deleted.

21 changes: 0 additions & 21 deletions pysot/ReID/LICENSE

This file was deleted.

62 changes: 0 additions & 62 deletions pysot/ReID/README.md

This file was deleted.

6 changes: 3 additions & 3 deletions pysot/mot_zj/MUST_ASSO/MUST_asso_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ def __init__(self):
checkpoint = load_checkpoint(os.path.join(os.getcwd(), 'weights', 'checkpoint.pth.tar'))
self.model.load_state_dict(checkpoint['state_dict'])
self.model.eval()
self.frame_root = os.path.join('.\\result\\img')
self.tracklet_root = "pysot\\img_traj"
self.frame_root = os.path.join(os.getcwd(), 'result', 'img')
self.tracklet_root = os.path.join("pysot","img_traj")
if torch.cuda.is_available():
self.model = self.model.cuda()
print('load weights done!')

def __call__(self, bboxes_asso, seq_name, frame, id_num):
img_trajs = []
frame_path = os.path.join(self.frame_root, seq_name, "img1\\{:06d}.jpg".format(frame))
frame_path = os.path.join(self.frame_root, seq_name, "img1", "{:06d}.jpg".format(frame))
traj_dir = os.path.join(self.tracklet_root, seq_name, str(id_num))

img_frame = cv2.imread(frame_path) # the whole frame image needed
Expand Down

0 comments on commit 8e75f8b

Please sign in to comment.