mirror of
https://github.com/linshenkx/prompt-optimizer.git
synced 2026-05-09 15:12:56 +08:00
Replace残留中文词汇 with proper English translations in auxiliary feature docs: replicate, smart-fill, and style-learn pages.
3.5 KiB
3.5 KiB
Text-to-Image Replicate
The Text-to-Image Replicate feature can reverse-engineer prompts and variables from reference images, suitable for generating similar style works from images you like.
When to Use
- See a reference image you like and want to generate similar style images
- Want to learn an image's style, composition, or color scheme
- Need to extract reproducible prompts from reference images
How to Use
Steps
- Enter the Text-to-Image workspace
- Upload a reference image (click the "Reference Image" button)
- Select Replicate mode
- Click start processing
- AI analyzes the reference image and generates a prompt
- Preview the generated results
- Click Apply to Current Prompt
Interface Description
- Reference Image Area: Displays the uploaded reference image thumbnail
- Generated Prompt: The AI reverse-engineered prompt text
- Extracted Variables: Variable parameters identified from the image
- Apply Button: Writes results to the current workspace
How It Works
Analysis Process
AI analyzes the reference image's:
- Subject content and composition
- Color matching and tone
- Lighting effects and atmosphere
- Style characteristics and artistic techniques
Output
After analysis, it generates:
- Prompt: A complete prompt describing the image content and style
- Variables: Variable parameters extracted from the image (e.g., subject, style, tone)
Variable Processing
- Extracted variables automatically fill with default values
- Variable names are semantic (e.g., "subject", "style", "tone")
- You can modify variable values to adjust generation results
Use Cases
Case 1: Replicate Artistic Style
Reference image: A cyberpunk-style city night scene
Generated prompt:
A futuristic city night scene, flickering neon lights, towering buildings,
rain-soaked streets reflecting colorful lights, cyberpunk style,
high contrast, purple and blue as main colors
Extracted variables:
- Subject: Futuristic city
- Style: Cyberpunk
- Tone: Purple and blue
- Atmosphere: Rainy night
Case 2: Learn Composition Methods
Reference image: A portrait using golden ratio composition
Generated prompt:
A portrait of a young woman, using golden ratio composition,
soft natural light, shallow depth of field, warm tones,
photography style
Extracted variables:
- Subject: Young woman
- Composition: Golden ratio
- Lighting: Soft natural light
- Style: Photography
Difference from Style Learning
| Feature | Replicate | Style Learning |
|---|---|---|
| Current prompt | Ignored | Preserves subject |
| Analysis focus | Overall style and content | Only style, composition, color |
| Use case | Starting from scratch | Learning style on existing prompt |
Common Questions
What if the generated prompt is inaccurate?
- Edit the generated results in the preview dialog
- Adjust the extracted variable values
- Regenerate if needed; each run may produce different results
Can I replicate any image?
- Supports PNG/JPEG format
- File size must not exceed 10MB
- Replication effect depends on image clarity and feature distinctiveness
How to further optimize after replication?
- After applying to current prompt, you can continue using the optimization feature
- Adjust variable values for fine-tuning
- Use the testing feature to verify the result