-
Notifications
You must be signed in to change notification settings - Fork 8
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
File /MixSort/yolox/mixsort_oc_tracker/mixformer.py:103 causes TypeError: expected Tensor as element 0 in argument 0, but got tuple #2
Comments
Hi, From the error message you provided, it seems that the To help diagnose the issue, could you please check the value and type of the
Please ensure that the By examining the contents of |
@ret-1,
Notice the first element in the list is a tuple of a tensor and an empty list. |
@SergeySandler From your details, the issue seems to originate from the exception handling in MixSort/yolox/mixsort_oc_tracker/mixformer.py Lines 66 to 72 in 52d317c
This behavior is actually a simplified adaptation from the handling below where data is marked as invalid if the boxes are too small. The choice to return a zero tensor and an empty list was made because this specific case wasn't encountered during our experiments. MixSort/MixViT/lib/train/data/processing.py Lines 273 to 280 in 52d317c
Could you confirm if it aligns with the issue you observed? If so, consider making the necessary adjustments and submitting a pull request to handle such cases more effectively. Thanks for pointing this out. |
@SergeySandler Have you solved this problem? Could you provide the solution? |
@sky-creater no unfortunately not solved. |
torch.stack(template_imgs).float().div(255) on line 103 in /MixSort/yolox/mixsort_oc_tracker/mixformer.py
causes TypeError: expected Tensor as element 0 in argument 0, but got tuple.
I've followed the installation instructions https://github.com/MCG-NJU/MixSort#installation. My code fragment that triggers the problem is as following,
The call stack:
File /MixSort/yolox/mixsort_oc_tracker/mixsort_oc_tracker.py:284, in MIXTracker.update(self, output_results, img_info, img_size, img, scale)
File /MixSort/yolox/mixsort_oc_tracker/association.py:272, in associate(detections, trackers, iou_threshold, velocities, previous_obs, vdc_weight, img, mixformer, alpha, templates)
File /MixSort/yolox/mixsort_oc_tracker/mixformer.py:103, in MixFormer.compute_vit_sim(self, detections, trackers, img, templates)
The text was updated successfully, but these errors were encountered: