Skip to content

VBVR-DataFactory/G-193_draw_next_sized_shape_data-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

G-193: Draw Next Sized Shape Data Generator

Generates synthetic tasks where shapes of the same type follow a repeating size cycle in a row. The goal is to determine the next size in the cycle and draw the appropriate shape in the empty box.

Each sample pairs a task (first frame + prompt describing what needs to happen) with its ground truth solution (final frame showing the result + video demonstrating how to achieve it). This structure enables both model evaluation and training.


📌 Basic Information

Property Value
Task ID G-193
Task Draw Next Sized Shape
Category Abstraction
Resolution 1024×1024 px
FPS 16 fps
Duration ~4.7 seconds
Output PNG images + MP4 video

🚀 Usage

Installation

# Clone the repository
git clone https://github.com/Jiaqi-Gong/Gong_VBVR_Data.git
cd Gong_VBVR_Data/G-193_draw_next_sized_shape_data-generator

# Install dependencies
pip install -r requirements.txt

Generate Data

# Generate 100 samples
python examples/generate.py --num-samples 100

# Generate with specific seed
python examples/generate.py --num-samples 100 --seed 42

# Generate without videos
python examples/generate.py --num-samples 100 --no-videos

# Custom output directory
python examples/generate.py --num-samples 100 --output data/my_output

Command-Line Options

Argument Type Description Default
--num-samples int Number of samples to generate 100
--seed int Random seed for reproducibility Random
--output str Output directory data/questions
--no-videos flag Skip video generation False

📖 Task Example

Prompt

A row of shapes of the same type follows a repeating size cycle. The last box is empty. First determine which size should come next in the cycle, then draw the next shape inside the empty box. Do not change anything else. Show the complete solution step by step.

Visual

Initial Frame
Shapes with size pattern, last box empty
Animation
Next shape drawn in empty box
Final Frame
Pattern completed with correct size

📖 Task Description

Objective

Analyze a repeating size pattern in a sequence of shapes and draw the next shape in the correct size to continue the pattern.

Task Setup

  • Shape Arrangement: Shapes displayed in boxes arranged in a row
  • Shape Consistency: All shapes are the same type (e.g., all circles, all squares, etc.)
  • Size Cycle: Shapes follow a repeating size pattern (e.g., small-medium-large, small-medium-large, ...)
  • Empty Box: Final box is empty, awaiting the next shape
  • Task Goal: Identify the pattern and draw the appropriately sized shape in the empty box
  • Preservation: All existing shapes and boxes remain unchanged

Key Features

  • Pattern recognition: Requires identifying the repeating size cycle
  • Size reasoning: Tests understanding of relative size relationships
  • Shape consistency: Same shape type throughout maintains focus on size
  • Predictive reasoning: Must extrapolate pattern to next element
  • Step-by-step solution: Animation shows the drawing process clearly
  • Visual clarity: Boxed layout clearly delineates the sequence

📦 Data Format

data/questions/draw_next_sized_shape_task/draw_next_sized_shape_00000000/
├── first_frame.png      # Initial state (sequence with empty box)
├── final_frame.png      # Goal state (pattern completed)
├── prompt.txt           # Task instructions
├── ground_truth.mp4     # Solution video (16 fps)
└── question_metadata.json # Task metadata

File specifications: Images are 1024×1024 PNG. Videos are MP4 at 16 fps, approximately 4.7 seconds long showing the shape drawing process.


🏷️ Tags

pattern-recognition sequence-completion size-reasoning visual-patterns predictive-reasoning


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages