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

faster_rcnn训练自己的数据集训练一个Epoch后报错 #846

Open
peko919 opened this issue Dec 12, 2024 · 0 comments
Open

faster_rcnn训练自己的数据集训练一个Epoch后报错 #846

peko919 opened this issue Dec 12, 2024 · 0 comments

Comments

@peko919
Copy link

peko919 commented Dec 12, 2024

Traceback (most recent call last):
  File "train_res50_fpn.py", line 231, in <module>
    main(args)
  File "train_res50_fpn.py", line 153, in main
    coco_info = utils.evaluate(model, val_data_set_loader, device=device)
  File "D:\App\miniconda3\envs\faster_rcnn\lib\site-packages\torch\autograd\grad_mode.py", line 27, in decorate_context
    return func(*args, **kwargs)
  File "D:\GitClone\faster_rcnn\train_utils\train_eval_utils.py", line 76, in evaluate
    coco = get_coco_api_from_dataset(data_loader.dataset)
  File "D:\GitClone\faster_rcnn\train_utils\coco_utils.py", line 54, in get_coco_api_from_dataset
    return convert_to_coco_api(dataset)
  File "D:\GitClone\faster_rcnn\train_utils\coco_utils.py", line 15, in convert_to_coco_api
    hw, targets = ds.coco_index(img_idx)
AttributeError: 'VOCDataSet' object has no attribute 'coco_index'
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