一键导入
polym-eval-score-video-gemini
Score generated videos with Gemini via Vertex AI or AIDP. Use for pointwise video grading and pairwise video comparisons.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Score generated videos with Gemini via Vertex AI or AIDP. Use for pointwise video grading and pairwise video comparisons.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Research BytePlus products, APIs, SDKs, setup, quotas, regions, pricing, and troubleshooting using the bundled official documentation index, then verify claims on live docs. Use for requests for BytePlus documentation or official links.
Batch-generate Seedance 2.0 Mini videos via the BytePlus console BFF (Mini has no public API). Covers T2V, image/video reference (I2V/R2V), first/last frame, and human portraits. Triggers: "seedance mini", "dreamina mini", "用 mini 出视频".
Generate textured 3D models (GLB + PBR) from an image and/or text prompt via Volcengine Ark Seed3D (doubao-seed3d). Submits the async task, polls to completion, and downloads the .glb. Domestic Volcengine Ark only, not BytePlus overseas.
Generate videos with BytePlus Seedance. Use for Seedance text-to-video, image-to-video, camera control, and draft video workflows.
Generate images with BytePlus Seedream 4.x/4.5. Use for Seedream text-to-image, AI art, product images, and batch image generation.
Creates polished explainer videos from docs, URLs, PDFs, screenshots, or text. Use for product demos, announcement reels, repo videos, and requests like "make an explainer video" or "turn this repo into a video".
| name | polym-eval-score-video-gemini |
| description | Score generated videos with Gemini via Vertex AI or AIDP. Use for pointwise video grading and pairwise video comparisons. |
Evaluate AI-generated video quality using Google Gemini models.
Two backends:
google-genai SDKgemini-3.1-p)Two evaluation modes:
Vertex AI backend — verify in .env:
GOOGLE_CLOUD_PROJECT (Required — GCP project ID)GOOGLE_CLOUD_LOCATION (Required — e.g. us-central1)GOOGLE_CLOUD_MODEL (optional, default: gemini-2.5-flash-preview-05-20)Ensure:
ffprobe is available on PATH (for audio detection in pairwise mode)cv2) is installed (for frame extraction fallback)AIDP backend — verify in .env:
AIDP_API_KEY (Required — ByteDance AIDP API key)AIDP_ENDPOINT (optional, default: https://aidp.bytedance.net/api/modelhub/online/v2/crawl)AIDP_MODEL (optional, default: gemini-3.1-p)Also install: pip install openai
AIDP video input: gemini-3.1-p supports direct video upload via base64. Falls back to frame extraction automatically if direct upload fails.
# Pointwise via Vertex AI (default)
python skills/polym-eval-score-video-gemini/scripts/evaluate.py \
--mode pointwise \
--prompt "A cat jumps onto a table and knocks over a cup" \
--video generated.mp4
# Pointwise via AIDP (gemini-3.1-p)
python skills/polym-eval-score-video-gemini/scripts/evaluate.py \
--mode pointwise \
--prompt "A cat jumps onto a table and knocks over a cup" \
--video generated.mp4 \
--backend aidp
# Pointwise with reference images
python skills/polym-eval-score-video-gemini/scripts/evaluate.py \
--mode pointwise \
--prompt "The character walks forward slowly" \
--video generated.mp4 \
--ref-images character_ref.jpg
# Pairwise via AIDP: compare two videos
python skills/polym-eval-score-video-gemini/scripts/evaluate.py \
--mode pairwise \
--prompt "A drone shot rising over a coastal city at sunset" \
--video-a modelA.mp4 \
--video-b modelB.mp4 \
--backend aidp
# Pairwise with forced audio evaluation
python skills/polym-eval-score-video-gemini/scripts/evaluate.py \
--mode pairwise \
--prompt "A person singing in a park" \
--video-a modelA.mp4 \
--video-b modelB.mp4 \
--has-audio
| Parameter | CLI Flag | Type | Description | Default |
|---|---|---|---|---|
mode | --mode | string | pointwise or pairwise | Required |
prompt | --prompt, -p | string | Text prompt used to generate the video | Required |
backend | --backend | string | vertexai or aidp | vertexai |
video | --video | string | Video path (pointwise mode) | Required for pointwise |
video_a | --video-a | string | Video A path (pairwise mode) | Required for pairwise |
video_b | --video-b | string | Video B path (pairwise mode) | Required for pairwise |
ref_images | --ref-images | string[] | Reference image paths | None |
model | --model, -m | string | Gemini model ID | env GOOGLE_CLOUD_MODEL / AIDP_MODEL |
max_frames | --max-frames | int | Max frames to extract | 12 |
temperature | --temperature | float | Sampling temperature | 0.2 |
has_audio | --has-audio | flag | Force audio evaluation (pairwise) | auto-detect |
Evaluates instruction-following only. Scale: 0 = no/wrong response, 1 = partial, 2 = fully correct.
| Dimension | Description |
|---|---|
subject_action | Whether the specified subject performs the required action correctly |
camera_motion | Whether camera movements match the prompt (pan/zoom/dolly/etc.) |
degree_adverb | Whether intensity/speed/quantity adverbs are respected (slowly, rapidly, etc.) |
environment_scene | Whether scene/environment description is consistent across the video |
temporal_order | Whether multi-step instructions execute in correct temporal order |
If the prompt does not specify a requirement for a given dimension, score defaults to 2 (no violation).
| Dimension | Sub-dimensions |
|---|---|
structure_preservation | subject_consistency, text_consistency, structure_reasonability |
visual_quality | sharpness, style_consistency, interframe_consistency, aesthetics |
motion_performance | motion_amplitude, motion_physical, motion_liveliness |
instruction_following | subject_action, camera_motion, degree_adverb, environment_scene, temporal_order |
| Dimension | Sub-dimensions |
|---|---|
audio_quality | clarity, naturalness, speech_intelligibility, sound_realism |
av_alignment | lip_sync_accuracy, action_sound_sync, rhythm_alignment, emotion_alignment |
gemini-3.1-p (AIDP), the full video file is sent directly (base64 via AIDP file_url, native bytes via Vertex AI)--max-frames frames). AIDP also falls back to frame extraction if direct video upload fails.# Vertex AI backend
google-genai
Pillow
opencv-python
numpy
requests
python-dotenv
# AIDP backend (additional)
openai
Set GOOGLE_CLOUD_PROJECT and GOOGLE_CLOUD_LOCATION in .env.
Set AIDP_API_KEY in .env.
Ensure OpenCV is installed (pip install opencv-python) and the video file is valid.
Ensure ffprobe (from ffmpeg) is on your PATH. Install: brew install ffmpeg or apt install ffmpeg.