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

CTW1500数据训练问题 #30

Open
S130111 opened this issue Aug 2, 2021 · 0 comments
Open

CTW1500数据训练问题 #30

S130111 opened this issue Aug 2, 2021 · 0 comments

Comments

@S130111
Copy link

S130111 commented Aug 2, 2021

Traceback (most recent call last):
File "tools/train_net.py", line 174, in
main()
File "tools/train_net.py", line 167, in main
model = train(cfg, args.local_rank, args.distributed)
File "tools/train_net.py", line 73, in train
arguments,
File "/home/root1/SHI/ContourNet/maskrcnn_benchmark/engine/trainer.py", line 57, in do_train
for iteration, (images, targets, _) in enumerate(data_loader, start_iter):
File "/home/software/anaconda2019/envs/ContourNet/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 819, in next
return self._process_data(data)
File "/home/software/anaconda2019/envs/ContourNet/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 846, in _process_data
data.reraise()
File "/home/software/anaconda2019/envs/ContourNet/lib/python3.7/site-packages/torch/_utils.py", line 385, in reraise
raise self.exc_type(msg)
AttributeError: Caught AttributeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/software/anaconda2019/envs/ContourNet/lib/python3.7/site-packages/torch/utils/data/_utils/worker.py", line 178, in _worker_loop
data = fetcher.fetch(index)
File "/home/software/anaconda2019/envs/ContourNet/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/software/anaconda2019/envs/ContourNet/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/root1/SHI/ContourNet/maskrcnn_benchmark/data/datasets/word_dataset.py", line 64, in getitem
img, anno = super(WordDataset, self).getitem(idx)
File "/home/software/anaconda2019/envs/ContourNet/lib/python3.7/site-packages/torchvision/datasets/coco.py", line 118, in getitem
img, target = self.transforms(img, target)
File "/home/root1/SHI/ContourNet/maskrcnn_benchmark/data/transforms/transforms.py", line 26, in call
image, target = t(image, target)
File "/home/root1/SHI/ContourNet/maskrcnn_benchmark/data/transforms/transforms.py", line 143, in call
crop_region, keep_target = self.adjust_crop_region(crop_region, target0)
File "/home/root1/SHI/ContourNet/maskrcnn_benchmark/data/transforms/transforms.py", line 193, in adjust_crop_region
inter_area = self.intersect_area(crop_region, target.bbox)
AttributeError: 'dict' object has no attribute 'bbox'

求帮助

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