Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vermavinay982/imagenet-coco-classes
https://github.com/vermavinay982/imagenet-coco-classes
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/vermavinay982/imagenet-coco-classes
- Owner: vermavinay982
- Created: 2021-05-13T10:10:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-20T05:57:18.000Z (about 3 years ago)
- Last Synced: 2024-10-14T14:12:10.634Z (24 days ago)
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ImageNet-1000 Classes, COCO 80+1 Background Classes
Click Copy Button - and use whereever you want. :innocent:
# JSON only allows key names to be strings.
```python
import jsonwith open('coco_classes.json','r') as f:
labels = json.load(f)
len(labels)
# OR if you have String
with open('imagenet_classes.json') as f:
labels = json.load(f)
len(labels)
``````python
with open('imagenet_classes.json','r') as f:
text = f.read()
labels = json.loads(text)
len(labels)
# OR if you have String
with open('coco_classes.json','r') as f:
text = f.read()
labels = json.loads(text)
len(labels)
```