facebookresearch / facebookresearch/detectron2
AttributeError: 'list' object has no attribute Error (detectron2)
- 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
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