Comments (5)
https://github.com/EscVM/OIDv4_ToolKit
from dataset.
I did a small script using the bbox_hierarchy.json file from dendrogram
You can download the file from here
import json class_hierarchy_path = './data/classes/bbox_hierarchy.json' with open(class_hierarchy_path, 'r') as file: class_hierarchy = json.load(file) def find_children(json_input, keyword): if isinstance(json_input, dict): for k, v in json_input.items(): if k =='name' and v == keyword: print('search in children of', v) keywords.update([keyword]) if 'children' in json_input: find_children(json_input['children'], keyword=next(studied_class)) elif k =='name' and keyword == '*': keywords.update([v]) if 'children' in json_input: find_children(json_input['children'], keyword=keyword) elif isinstance(json_input, list): for json_item in json_input: find_children(json_item, keyword)
Then you can write some paths from the dendrogram. Examples:
categories = ['Entity.Vehicle.Land vehicle.Car.*', 'Entity.Outdoor.Street items.*' ] keywords = set() for category in categories: studied_class = iter(category.split('.')) #assert class_hierarchy['name'] == next(studied_class), 'the root class is "Entity"' find_children(class_hierarchy, next(studied_class)) print('Found keywords are : ', keywords)
Those keywords can be replaces with trainable_classes_path in code of deepdive5 which I used to download images.
from dataset.
Any Solution to download only needed classes ?
from dataset.
how can i use data augmentation on open images v4 for some classes ?
from dataset.
@cyrineee I guess you should search StackOverflow for the answer & replies to this thread shouldn't be derailed. Besides, I guess the thread should be closed as @keldrom's reply appears to work perfectly.
from dataset.
Related Issues (20)
- OpenImages V6 data set HOT 1
- there are no cat and dog coarse-grain category. HOT 1
- Image 01a624308e2f8c5d in oidv6-train-annotations-bbox.csv is mislabled
- Mislabeled Images HOT 1
- segmentations.csv mask 3 coordinates HOT 1
- Decoding Openimages v6 mask coordinates HOT 2
- BadZipFile Error HOT 3
- Soil-dataset
- L
- Golf rounds
- OIDv4 Tool Kit Windows 10 Python 3.7 HOT 2
- Extended dataset download per category? HOT 1
- (V5) Mismatched image and mask resolutions. HOT 2
- Explore UI does not load images HOT 2
- How to report invalid/questionable images? HOT 5
- Open Image Dataset V5 to COCO JSON format
- Why not build a video instance segmentation dataset?
- Where can I download the OpenImage V2 dataset? HOT 1
- Hierarchy question
- Request to add pretrained large-scale object detector to "Community Contributions" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dataset.