alanlukezic / d3s

D3S - Discriminative Single Shot Segmentation Tracker (CVPR 2020)
265 stars 57 forks source link

TypeError: expected Tensor as argument 0, but got TensorList #45

Open Xiaobao1024 opened 1 year ago

Xiaobao1024 commented 1 year ago

/home/bfj/d3s/pytracking/../pytracking/evaluation/vot18dataset.py:54: FutureWarning: The squeeze argument has been deprecated and will be removed in a future version. Append .squeeze("columns") to the call to squeeze.

sequence_list = pandas.read_csv(list_path, header=None, squeeze=True).values.tolist() Tracker: segm default_params None , Sequence: ants1 /home/bfj/anaconda3/envs/pytracking/lib/python3.10/site-packages/torchvision/models/_utils.py:252: UserWarning: Accessing the model URLs via the internal dictionary of the module is deprecated since 0.13 and may be removed in the future. Please access them via the appropriate Weights Enum instead. warnings.warn( Traceback (most recent call last): File "/home/bfj/d3s/pytracking/run_tracker.py", line 84, in main() File "/home/bfj/d3s/pytracking/run_tracker.py", line 80, in main run_tracker(args.tracker_name, args.tracker_param, args.runid, args.dataset, args.sequence, args.debug, args.threads) File "/home/bfj/d3s/pytracking/run_tracker.py", line 65, in run_tracker run_dataset(dataset, trackers, debug, threads) File "/home/bfj/d3s/pytracking/../pytracking/evaluation/running.py", line 54, in run_dataset run_sequence(seq, tracker_info, debug=debug) File "/home/bfj/d3s/pytracking/../pytracking/evaluation/running.py", line 21, in run_sequence tracked_bb, exec_times = tracker.run(seq, debug=debug) File "/home/bfj/d3s/pytracking/../pytracking/evaluation/tracker.py", line 58, in run output_bb, execution_times = tracker.track_sequence(seq) File "/home/bfj/d3s/pytracking/../pytracking/tracker/base/basetracker.py", line 35, in track_sequence self.initialize(image, sequence.init_state) File "/home/bfj/d3s/pytracking/../pytracking/tracker/segm/segm.py", line 96, in initialize feat_max_stride = max(self.params.features_filter.stride()) File "/home/bfj/d3s/pytracking/../pytracking/features/extractor.py", line 66, in stride return torch.Tensor(TensorList([f.stride() for f in self.features if self._return_feature(f)]).unroll()) TypeError: expected Tensor as argument 0, but got TensorList