Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is it possible to use your trained model just for detection purpose ? #61

Open
ssbilakeri opened this issue Nov 9, 2021 · 4 comments
Open

Comments

@ssbilakeri
Copy link

No description provided.

@pedromoraesh
Copy link

Of course, you can use it. The detection part is the base for good tracking performance. In this case, they aim to use almost every detection box to improve the tracking step. With this in mind, you can use the model just for detection without sending the boxes to the tracker.

@ssbilakeri
Copy link
Author

ssbilakeri commented Nov 11, 2021 via email

@ssbilakeri
Copy link
Author

ssbilakeri commented Nov 11, 2021 via email

@zxchang-1
Copy link

I had the same problem,I have used his trained model on mix dataset as a detector with the
deepsort tracker too. I wonder if you have solved your problem

Traceback (most recent call last):
File "C:/Users/zxc/Desktop/ByteTrack-main/tools/demo_track.py", line 558, in
main(exp, args)
File "C:/Users/zxc/Desktop/ByteTrack-main/tools/demo_track.py", line 549, in main
image_demo_deepsort2(predictor, vis_folder, current_time, args)
File "C:/Users/zxc/Desktop/ByteTrack-main/tools/demo_track.py", line 378, in image_demo_deepsort2
outputs = deepsort.update((torch.Tensor(bbox_xywh)), (torch.Tensor(confs)), img_info['raw_img'])
File "C:\Users\zxc\Desktop\ByteTrack-main\deep_sort\deep_sort.py", line 29, in update
features = self._get_features(bbox_xywh, ori_img)
File "C:\Users\zxc\Desktop\ByteTrack-main\deep_sort\deep_sort.py", line 99, in _get_features
features = self.extractor(im_crops)
File "C:\Users\zxc\Desktop\ByteTrack-main\deep_sort\deep\feature_extractor.py", line 45, in call
im_batch = self._preprocess(im_crops)
File "C:\Users\zxc\Desktop\ByteTrack-main\deep_sort\deep\feature_extractor.py", line 40, in _preprocess
im_batch = torch.cat([self.norm(_resize(im, self.size)).unsqueeze(0) for im in im_crops], dim=0).float()
File "C:\Users\zxc\Desktop\ByteTrack-main\deep_sort\deep\feature_extractor.py", line 40, in
im_batch = torch.cat([self.norm(_resize(im, self.size)).unsqueeze(0) for im in im_crops], dim=0).float()
File "C:\Users\zxc\Desktop\ByteTrack-main\deep_sort\deep\feature_extractor.py", line 37, in _resize
a=cv2.resize(im.astype(np.float32)/255., size)
cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\resize.cpp:4052: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants