Comments (3)
I think i figured it out. The paper says that in each entries in the JSON files the categories are the last
entries of the ground truth program.
set([ ent['program'][-1].get('function') for ent in js['questions']])
I made a dict of classes based on that:
categories = {'count': ['count'],
'compare-attribute':[
'equal_color',
'equal_material',
'equal_shape',
'equal_size'],
'exist': ['exist'],
'compare-numbers':[
'greater_than',
'less_than',
'equal_integer'],
'query-attribute':[
'query_color',
'query_material',
'query_shape',
'query_size']
}
from clevr-dataset-gen.
Hello @manoja328
In de dataset, every question has a key question_family_index
. However, I have yet to find out in what order the question templates are numbered. It would indeed be great to have this information (e.g. in the question generation README file)
from clevr-dataset-gen.
@manoja328 This is correct - the final element of the program in the JSON file determines the type of the question.
@JensNevens The question_family_index
is even more fine-grained; it determines which of the question templates was used to generate the question. There are potentially many templates for each question type, and in general questions from the same template will have the same type.
from clevr-dataset-gen.
Related Issues (20)
- No key 'function' in the list of questions HOT 1
- image rendering issue HOT 17
- generate_questions produces a dataset that is more balanced than the original one HOT 4
- Inconsistency in 3d coordinates HOT 1
- degenerate questions
- Blender compatible version HOT 1
- Cannot run render_images.py on Blender 2.81 HOT 11
- Duplicate question templates in comparison.json
- Issues downloading the generated dataset
- /python/lib/python3.7/site-packages/clevr.pth: Read-only file system HOT 6
- Image rendering fails in the function check_visibility() HOT 1
- Error after around 700 images rendered HOT 4
- Link for Clevr data generation using Colab
- Add different shapes
- Get rendered image data without writing to disk
- CLEVR with other background HOT 1
- Deciding a right of a given Object
- Using different materials for the object
- Object rotation angle problem
- Zeroeth template in compare_integer.json can never return true
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 clevr-dataset-gen.