facebookresearch / facebookresearch/detectron2

AttributeError: 'list' object has no attribute Error (detectron2)

Open
#4,614 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
34.7k
Forks
7.9k
PR merge metrics
No merged PRs in 30d

Description

## Instructions To Reproduce the 🐛 Bug:
1. I ran the following code in google colab to retrain the model on my custom dataset. "https://colab.research.google.com/drive/16jcaJoc6bCFAQ96jDe2HwtXj7BMD_-m5#scrollTo=PIbAM2pv-urF"

The following error "AttributeError: 'list' object has no attribute 'items'" appeared at this stage of the code:
```

```
I tried to prepare and check my dataset preparation using the above code as mentioned in the google colab tutorial.
Thanks.

Contributor guide

Open the contributing guide

Research direction

Start with the linked Colab notebook and the get_balloon_dicts function in the issue body; inspect the structure loaded from dataset.json and the regions value before the .items() call. Reproduce the failure with the supplied custom dataset and compare its JSON shape with the tutorial input. Done means identifying whether the mismatch is in the dataset or detectron2 and documenting the confirmed cause.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.