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

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

Open
Xiaobao1024 opened this issue Feb 17, 2023 · 0 comments
Open

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

Xiaobao1024 opened this issue Feb 17, 2023 · 0 comments

Comments

@Xiaobao1024
Copy link

/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

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

1 participant