Skip to content

VBVR-DataFactory/G-134_select_next_figure_large_small_alternating_sequence_data-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

G-134: Select Next Figure Large Small Alternating Sequence Data Generator

Generates synthetic datasets for training and evaluating vision models on pattern recognition and sequential reasoning tasks. Each sample contains a large-small alternating size sequence where the next figure must be selected from multiple choices.

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-134
Task Select Next Figure Large Small Alternating Sequence
Category Abstraction
Resolution 1024×1024 px
FPS 16 fps
Duration ~3-4 seconds
Output PNG images + MP4 video

🚀 Usage

Installation

# 1. Clone the repository
git clone https://github.com/VBVR-DataFactory/G-134_select_next_figure_large_small_alternating_sequence_data-generator.git
cd G-134_select_next_figure_large_small_alternating_sequence_data-generator

# 2. Create and activate virtual environment
python3 -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# 3. Install dependencies
pip install --upgrade pip
pip install -r requirements.txt
pip install -e .

Generate Data

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

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

# Reproducible generation with seed
python examples/generate.py --num-samples 50 --seed 42

# Without videos (faster)
python examples/generate.py --num-samples 50 --no-videos

Command-Line Options

Argument Description
--num-samples Number of tasks to generate (required)
--output Output directory (default: data/questions)
--seed Random seed for reproducibility
--no-videos Skip video generation (images only)

📖 Task Example

Prompt

The scene has two separated areas: a top SEQUENCE area and a bottom CHOICES area. In the SEQUENCE area, the shapes are the same shape and the same color, and their sizes strictly alternate between LARGE and SMALL from left to right. First observe the size-alternation pattern and determine whether the next item should be LARGE or SMALL, then select the one correct option (out of 4) in the CHOICES area that continues the same shape, color, and large/small alternation pattern. Circle the correct option and show the full process step by step.

Visual

Image Image Image
Initial Frame
Large-small alternating sequence and 4 choices
Animation
Correct option identified and circled
Final Frame
Answer circled in choices area

📖 Task Description

Objective

Identify the large-small alternating size pattern in a sequence and select the correct next figure from multiple choices.

Task Setup

  • Sequence area: Shapes alternating between large and small (left to right)
  • Choices area: 4 candidate options for next figure
  • Pattern constraints: Same shape, same color, alternating size
  • Alternation pattern: Large → Small → Large → Small (or Small → Large → Small → Large)
  • Task: Identify alternation pattern, find matching option, circle it
  • Background: White with clear area separation
  • Goal: Select the one option that continues the alternation correctly

Key Features

  • Size alternation pattern recognition
  • Binary large/small classification
  • Multiple choice selection task
  • Tests understanding of alternating sequences
  • Shape and color consistency verification
  • Visual IQ test style reasoning

📦 Data Format

data/questions/select_next_figure_large_small_alternating_sequence_task/select_next_figure_large_small_alternating_sequence_00000000/
├── first_frame.png      # Sequence and choices without answer
├── final_frame.png      # Correct choice circled
├── prompt.txt           # Alternation pattern continuation instruction
├── ground_truth.mp4     # Animation of answer selection
└── question_metadata.json # Task metadata

File specifications:

  • Images: 1024×1024 PNG format
  • Video: MP4 format, 16 fps
  • Duration: ~3-4 seconds

🏷️ Tags

visual-reasoning pattern-recognition size-alternation sequential-reasoning multiple-choice iq-test-style


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages