Skip to content

Dynamic Prompt System for Video Model Training#10

Merged
ImYangC7 merged 1 commit intomainfrom
feature/add_dynamic_prompt
Dec 11, 2025
Merged

Dynamic Prompt System for Video Model Training#10
ImYangC7 merged 1 commit intomainfrom
feature/add_dynamic_prompt

Conversation

@ImYangC7
Copy link
Collaborator

Replace hardcoded prompts with a dynamic prompt system that generates skin-specific prompts from description.json files.

Changes

New Files:

  • prompts/__init__.py - Module entry with get_dynamic_prompt(game_type, skin_id, skins_root) API
  • prompts/videomodel_{maze,maze3d,sokoban,trapfield,pathfinder}_prompt.py - Template-based prompt generators for each game type

Modified:

  • prompts/generate_metadata.py
    • Removed hardcoded DATASET_PROMPTS dictionary
    • Integrated dynamic prompt loading from skins/{game_type}/{skin_id}/description.json
    • Added --skins-root CLI argument

Usage

# Prompts now auto-generated based on skin's visual_description
python -m prompts.generate_metadata --games maze --skins 1 2

Before/After

Before After
"The red circle slides along the white path..." (hardcoded) "The {player} slides along the {floor} path...""The blue square slides along the gray path..." (from skin config)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant