← 开源
facebookresearch

clevr-dataset-gen

A Diagnostic Dataset for Compositional Language and Elementary Visual Reasoning

Model DevelopmentDataset engineeringPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
654
Star
220
Fork
+1
本周
1
贡献者
创建于 2017-07-05 · 更新于 2026-10-10 · 今日第 15438 名

facebookresearch/clevr-dataset-gen 排名第 15,438,有 654 个星标。

同类别比较

facebookresearch/clevr-dataset-gen 排名第 15,438,此处有 8 个同类条目;facebookresearch/pippo 排名第 15,439。

同类别比较
名称排名指标
sdv-dev/Copulas15,430
语言:
Python
星标数:
655
分叉数:
121
简介:
A library to model multivariate data using copulas.
yinboc/few-shot-meta-baseline15,434
语言:
Python
星标数:
655
分叉数:
108
简介:
Meta-Baseline: Exploring Simple Meta-Learning for Few-Shot Learning, in ICCV 2021
AgentTorch/AgentTorch15,435
语言:
Jupyter Notebook
星标数:
654
分叉数:
100
简介:
large population models
NVlabs/mimicgen15,436
语言:
Python
星标数:
654
分叉数:
119
简介:
This code corresponds to simulation environments used as part of the MimicGen project.
facebookresearch/pippo15,439
语言:
Python
星标数:
654
分叉数:
48
简介:
Pippo: High-Resolution Multi-View Humans from a Single Image
fangchangma/self-supervised-depth-completion15,440
语言:
Python
星标数:
654
分叉数:
134
简介:
ICRA 2019 "Self-supervised Sparse-to-Dense: Self-supervised Depth Completion from LiDAR and Monocular Camera"
kvh/ramp15,444
语言:
Python
星标数:
654
分叉数:
97
简介:
Rapid Machine Learning Prototyping in Python
tensorflow/tcav15,446
语言:
Jupyter Notebook
星标数:
654
分叉数:
148
简介:
Code for the TCAV ML interpretability project
关键参数与规格
关键参数与规格
参数值
语言Python
类别Model Development
子类别Dataset engineering
关键词Computer vision, Data synthesis
星标数654
分叉数220
贡献者1
创建日期2017-07-05
更新日期2026-10-10
1 天星标数0
7 天星标数1
排名15,438
上次排名15,247
排名变化-191
7 天星标排名11,022
上次 7 天星标排名11,091
7 天星标排名变化69
总星标排名15,676
上次总星标排名15,643
总星标排名变化-33
国家USA
README 摘录

CLEVR Dataset Generation This is the code used to generate the CLEVR dataset as described in the paper: **CLEVR: A Diagnostic Dataset for Compositional Language and Elementary Visual Reasoning** Justin Johnson , Bharath Hariharan , Laurens van der Maaten , Fei-Fei Li , Larry Zitnick , Ross Girshick Presented at CVPR 2017 Code and pretrained models for the baselines used in the paper can be found here. You can use this code to render synthetic images and compositional questions for those images, like this

: **Q:** How many small spheres are there? **A:** 2 **Q:** What number of cubes are small things or red metal objects? **A:** 2 **Q:** Does the metal sphere have the same color as the metal cylinder? **A:** Yes **Q:** Are there more small cylinders than metal things? **A:** No **Q:** There is a cylinder that is on the right side of the large yellow object behind the blue ball; is there a shiny cube in front of it? **A:** Yes

If you find this code useful in your research then please cite All code was developed and tested on OSX and Ubuntu 16. Step 1: Generating Images First we render synthetic images using Blender, outputting both rendered images as well as a JSON file containing ground-truth scene information for each image. Blender ships with its own installation of Python which is used to execute scripts that interact with Blender; you'll need to add the directory to Python path of

Blender's bundled Python. The easiest way to do this is by adding a file to the directory of Blender's Python, like this: where is the directory where Blender is installed and is your Blender version; for example on OSX you might run: You can then render some images like this: On OSX the binary is located inside the blender. app directory; for convenience you may want to add the following alias to your file: If you have an NVIDIA GPU

with CUDA installed then you can use the GPU to accelerate rendering like this: After this command terminates you should have ten freshly rendered images stored in like these: The file will contain ground-truth scene information for all newly rendered images. You can find more details about image rendering here. Step 2: Generating Questions Next we generate questions, functional programs, and answers for the rendered images generated in the previous step. This step takes as input the single JSON

file containing all ground-truth scene information, and outputs a JSON file containing questions, answers, and functional programs for the questions in a single JSON file. You can generate questions like this: The file will then contain questions for the generated images. You can find more details about question generation here.

常见问题

记录了多少星标和分叉?

facebookresearch/clevr-dataset-gen 有 654 个星标和 220 个分叉。

仓库排名是多少?

facebookresearch/clevr-dataset-gen 排名第 15,438。

记录的语言和类别是什么?

facebookresearch/clevr-dataset-gen 有 654 个星标,语言为 Python,类别为 Model Development。

哪个仓库排名最接近?

facebookresearch/clevr-dataset-gen 与 facebookresearch/pippo 比较,后者排名第 15,439,有 654 个星标。

README

CLEVR Dataset Generation

This is the code used to generate the CLEVR dataset as described in the paper:

CLEVR: A Diagnostic Dataset for Compositional Language and Elementary Visual Reasoning

Justin Johnson, Bharath Hariharan, Laurens van der Maaten, Fei-Fei Li, Larry Zitnick, Ross Girshick

Presented at CVPR 2017

Code and pretrained models for the baselines used in the paper can be found here.

You can use this code to render synthetic images and compositional questions for those images, like this:

Q: How many small spheres are there?

A: 2

Q: What number of cubes are small things or red metal objects?

A: 2

Q: Does the metal sphere have the same color as the metal cylinder?

A: Yes

Q: Are there more small cylinders than metal things?

A: No

Q: There is a cylinder that is on the right side of the large yellow object behind the blue ball; is there a shiny cube in front of it?

A: Yes

If you find this code useful in your research then please cite

@inproceedings{johnson2017clevr,
  title={CLEVR: A Diagnostic Dataset for Compositional Language and Elementary Visual Reasoning},
  author={Johnson, Justin and Hariharan, Bharath and van der Maaten, Laurens
          and Fei-Fei, Li and Zitnick, C Lawrence and Girshick, Ross},
  booktitle={CVPR},
  year={2017}
}

All code was developed and tested on OSX and Ubuntu 16.04.

Step 1: Generating Images

First we render synthetic images using Blender, outputting both rendered images as well as a JSON file containing ground-truth scene information for each image.

Blender ships with its own installation of Python which is used to execute scripts that interact with Blender; you'll need to add the image_generation directory to Python path of Blender's bundled Python. The easiest way to do this is by adding a .pth file to the site-packages directory of Blender's Python, like this:

echo $PWD/image_generation >> $BLENDER/$VERSION/python/lib/python3.5/site-packages/clevr.pth

where $BLENDER is the directory where Blender is installed and $VERSION is your Blender version; for example on OSX you might run:

echo $PWD/image_generation >> /Applications/blender/blender.app/Contents/Resources/2.78/python/lib/python3.5/site-packages/clevr.pth

You can then render some images like this:

cd image_generation
blender --background --python render_images.py -- --num_images 10

On OSX the blender binary is located inside the blender.app directory; for convenience you may want to add the following alias to your ~/.bash_profile file:

alias blender='/Applications/blender/blender.app/Contents/MacOS/blender'

If you have an NVIDIA GPU with CUDA installed then you can use the GPU to accelerate rendering like this:

blender --background --python render_images.py -- --num_images 10 --use_gpu 1

After this command terminates you should have ten freshly rendered images stored in output/images like these:

The file output/CLEVR_scenes.json will contain ground-truth scene information for all newly rendered images.

You can find more details about image rendering here.

Step 2: Generating Questions

Next we generate questions, functional programs, and answers for the rendered images generated in the previous step. This step takes as input the single JSON file containing all ground-truth scene information, and outputs a JSON file containing questions, answers, and functional programs for the questions in a single JSON file.

You can generate questions like this:

cd question_generation
python generate_questions.py

The file output/CLEVR_questions.json will then contain questions for the generated images.

You can find more details about question generation here.

排名相邻
同类项目