Why Image Evaluators Matter
Without systematic visual assessment, you cannot measure improvement or catch regressions in image generation and editing systems:Image Evaluator Types
Netra offers several approaches to image evaluation, each suited to different use cases:Multimodal LLM as Judge
Vision-capable models evaluate subjective criteria like composition, style, and semantic accuracy. Best for nuanced visual quality assessment.
Image Analysis
Rule-based evaluators that assess technical properties—dimensions, file size, format, and aspect ratio—without AI judgment.
Image-Text Coherence
Measures alignment between image content and text descriptions. Verifies generated images match prompts or expected visual output.
Code Evaluator
Custom JavaScript or Python logic for specialized visual checks—pixel analysis, color distribution, or domain-specific validation.
Library Evaluators
Netra’s evaluator library includes pre-built image evaluators organized by category. Navigate to Library → Evaluators and browse the Multimodal category.These evaluators are available in the Library under the Multimodal category. Click Add on any evaluator card to customize it and save to My Evaluators. The
multimodal-rule evaluators perform deterministic checks without AI judgment, while multimodal and multimodal-llm evaluators use vision-capable models for subjective assessment.Creating Custom Image Evaluators
Click Add Custom in the top right corner to open the creation wizard.1
Choose Evaluator Type
Select LLM as Judge for vision-based assessment or Code Evaluator for deterministic checks.
2
Select Turn Scope
Choose Image as the turn scope. This configures the evaluator to accept image inputs alongside text.
3
Configure the Evaluator
For LLM as Judge:
- Write a prompt that includes
{{image}}and{{expected_output}}placeholders - The
{{image}}variable will be populated with the image from your evaluation item - Select a vision-capable model (e.g., GPT-4o, Claude 3.5 Sonnet)
- Write a handler function that receives the image data and expected output
- Return a score or boolean based on your validation logic
4
Set Output and Pass Criteria
5
Test in Playground
- Upload a sample image or provide an image URL
- Run the evaluator in real-time
- Refine your prompt until results are consistent
Code Evaluator Example
For deterministic image validation, use a Code Evaluator: JavaScript example:Variable Mapping for Image Evaluators
When configuring evaluators on evaluations, map variables to connect evaluator inputs to your image data:The
output_image variable is automatically populated from your task function’s return value. All other image-related variables are sourced from the evaluation item’s metadata fields.Best Practices
Writing Effective Image Evaluation Prompts
- Be specific about criteria: Define exactly what constitutes good composition, clarity, or style
- Provide reference descriptions: Include detailed expected output descriptions
- Use structured scales: Rate specific aspects (composition, color, style) rather than overall quality
- Test with diverse images: Validate with various image types, styles, and edge cases
Choosing the Right Evaluator Type
Testing Before Deployment
Always use the Playground before adding evaluators to production evaluations:- Test with representative sample images from your use case
- Include edge cases (low resolution, unusual formats, complex scenes)
- Verify pass/fail thresholds produce expected results
- Test with both successful and failure scenarios
Related
- Evaluators Overview - Understand the full evaluator framework
- Text Evaluators - LLM-as-Judge, code, and rule-based text evaluators
- Voice Evaluators - TTS, STT, and conversational evaluators
- Evaluation Overview - Evaluations, test runs, and the evaluation framework
- Image Evaluations - Create image test cases for your evaluators
- Image Test Runs - View evaluation results for image evaluations
- Quick Start: Evaluation - Get started with evaluations
