RCaz's picture
Update backend tracing of crewai with litellm (#2)
7808f25
|
Raw
History Blame Contribute Delete
1.83 kB

A newer version of the Gradio SDK is available: 6.20.0

Upgrade
metadata
name: gemma4-image-prompting
description: >-
  Guidelines for translating user concepts into highly detailed, structured text
  prompts optimized for Gemma 4 25B's multimodal understanding.
metadata: null
author: your-team
version: '1.0'

Gemma 4 25B Image Prompting Guidelines

When engineering an image prompt for Gemma 4 25B, structure the output using the following checklist to maximize visual fidelity and adherence:

Core Subject & Action: Clearly define the main subject, their posture, expression, and what they are actively doing. Use concrete nouns instead of vague metaphors.

Environment & Lighting: Specify the setting (e.g., cyberpunk alley, serene alpine lake) and the lighting conditions (e.g., volumetric golden hour light, harsh neon rim lighting, diffused overcast daylight).

Style & Medium: Explicitly state the artistic medium (e.g., photorealistic 35mm photograph, cinematic film still, oil painting, 3D claymation) to guide the model's rendering style.

Composition & Camera: Define the framing and camera technicals (e.g., close-up macro shot, wide-angle bird's-eye view, shallow depth of field with a blurred background).

Negative Weights (Optional): List elements to avoid (e.g., text, motion blur, extra limbs) if the user specifies constraints.

Optimization Matrix

Photorealism: Include camera body/lens models (e.g., "shot on Sony A7R V, 85mm lens"), aperture ($f/1.4$), and specific texture details (e.g., "skin pores, fabric weave").

Stylized Art: Reference specific art movements, color palettes (e.g., "muted earth tones", "vibrant synthwave pastel"), or historical eras rather than generic words like "beautiful" or "stunning".

Gemma 4 Constraints: Keep the final prompt under 250 words. Avoid buzzwords like "photorealistic 8k HDR"—instead, describe the details that imply high quality.