Skip to content

VBVR-DataFactory/G-218_identify_largest_angle_in_triangle_data-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

G-218: Identify Largest Angle in Triangle Data Generator

Generates synthetic tasks where a single triangle is displayed. The goal is to identify the vertex where the largest angle is located and circle that vertex with a red circle.

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-218
Task Identify Largest Angle in Triangle
Category Perception
Resolution 1024×1024 px
FPS 16 fps
Duration ~1.9 seconds
Output PNG images + MP4 video

🚀 Usage

Installation

# Clone the repository
git clone https://github.com/VBVR-DataFactory/G-218_identify_largest_angle_in_triangle_data-generator.git
cd G-218_identify_largest_angle_in_triangle_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

The scene shows a single triangle on a white background. Identify the vertex where the largest angle is located, then circle that vertex with a red circle. Show the solution step by step.

Visual

Image Image Image
Initial Frame
Single triangle displayed
Animation
Red circle appears at largest angle vertex
Final Frame
Largest angle vertex circled

📖 Task Description

Objective

Analyze a triangle to identify which vertex has the largest interior angle and mark that vertex with a red circle.

Task Setup

  • Triangle Count: One triangle per image
  • Triangle Types: Various triangles (acute, right, obtuse) with different angle distributions
  • Angle Range: Interior angles vary, with one being distinctly the largest
  • Marking Method: Red circle at the vertex with the largest angle
  • Precision: Circle must be centered at the correct vertex
  • Unique Solution: Only one vertex has the largest angle per triangle

Key Features

  • Angle comparison: Tests ability to visually compare three interior angles
  • Geometric reasoning: Requires understanding of angle sizes and vertex positions
  • Vertex identification: Must identify the correct corner point of the triangle
  • Visual analysis: Comparing angles without explicit measurements
  • Step-by-step solution: Animation shows circle appearing at the target vertex
  • Clean background: White background enhances triangle visibility

📦 Data Format

data/questions/identify_largest_angle_in_triangle_task/identify_largest_angle_in_triangle_00000000/
├── first_frame.png      # Initial state (triangle without marking)
├── final_frame.png      # Goal state (largest angle vertex circled)
├── 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 1.9 seconds long.


🏷️ Tags

geometry angle-comparison triangle-analysis vertex-identification angle-recognition geometric-reasoning


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages