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

检测帧间性能时报错 assert len(detections_1) == len(detections_0) #12

Open
ll15102327101 opened this issue Oct 15, 2024 · 0 comments

Comments

@ll15102327101
Copy link

Traceback (most recent call last):
File "scripts/run_test_interframe.py", line 85, in
metrics, detections_one_offset = run_test_with_visualization(test_loader, e ma.ema, dataset=args.dataset, name=wandb.run.name, compile_detections=True,
File "/home/chs/DA/dagr/src/dagr/utils/testing.py", line 28, in run_test_with _visualization
for i, data in enumerate(tqdm.tqdm(loader, desc=f"Testing {name}")):
File "/home/chs/miniconda3/envs/dagr1/lib/python3.8/site-packages/tqdm/std.py ", line 1181, in iter
for obj in iterable:
File "/home/chs/miniconda3/envs/dagr1/lib/python3.8/site-packages/torch/utils /data/dataloader.py", line 530, in next
data = self._next_data()
File "/home/chs/miniconda3/envs/dagr1/lib/python3.8/site-packages/torch/utils /data/dataloader.py", line 570, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "/home/chs/miniconda3/envs/dagr1/lib/python3.8/site-packages/torch/utils /data/_utils/fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/chs/miniconda3/envs/dagr1/lib/python3.8/site-packages/torch/utils /data/utils/fetch.py", line 49, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/chs/DA/dagr/src/dagr/data/dsec_data.py", line 164, in getitem
detections_1 = interpolate_tracks(detections_0, detections_1, image_ts_1)
File "/home/chs/DA/dagr/src/dagr/data/dsec_data.py", line 31, in interpolate
tracks
assert len(detections_1) == len(detections_0)
AssertionError

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