# hunyuan-promptenhancer/promptenhancer

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/hunyuan-promptenhancer-promptenhancer).**

3,421 stars · 297 forks · Python · other

## Links

- GitHub: https://github.com/Hunyuan-PromptEnhancer/PromptEnhancer
- Homepage: https://hunyuan-promptenhancer.github.io/
- awesome-repositories: https://awesome-repositories.com/repository/hunyuan-promptenhancer-promptenhancer.md

## Topics

`hunyuan` `hunyuan-image` `image-editing` `image-to-image` `prompt` `prompt-engineering` `prompt-enhancer` `text-to-image` `vlm`

## Description

PromptEnhancer is a GGUF prompt rewriting engine that loads quantized models to rewrite plain text prompts into clearer, structured versions while preserving the original subject, style, and layout. It is designed to refine image editing instructions by incorporating visual context from the input image, producing precise editing prompts.

The tool operates through a structured prompt rewriting engine that combines editing instructions with visual context from images, embedding that context into the rewriting process for context-aware refinement. It runs inference with a minimal memory footprint by leveraging quantized weights and optimized tensor operations, making it more resource-efficient than full-precision models.

PromptEnhancer supports two primary capabilities: rewriting plain text prompts for text-to-image generation and refining image editing instructions. Both functions preserve the original subject, style, and layout while producing clearer, more structured outputs. The project provides documentation for loading and running the GGUF model to enhance prompts.

## Tags

### Artificial Intelligence & ML

- [Language Model Prompt Rewriters](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-prompt-configurations/prompt-evaluation-tools/prompt-refinement-utilities/language-model-prompt-rewriters.md) — Loads quantized GGUF models to rewrite plain text prompts into clearer, structured versions.
- [Context-Aware Pipelines](https://awesome-repositories.com/f/artificial-intelligence-ml/instruction-tuning-pipelines/context-aware-pipelines.md) — Combines editing instructions with visual context from images to generate precise editing prompts.
- [Model Loaders](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/infrastructure/model-optimization-and-inference/serving-and-runtime/large-language-model-optimization/model-inference-optimizations/gguf-execution/gguf-loading-guides/model-loaders.md) — Loads quantized GGUF models into memory for efficient prompt rewriting.
- [Quantized Inference Runtimes](https://awesome-repositories.com/f/artificial-intelligence-ml/quantized-inference-runtimes.md) — Runs inference with quantized weights and optimized tensor operations for minimal memory usage.
- [Quantized Rewriters](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-prompt-configurations/prompt-evaluation-tools/prompt-refinement-utilities/language-model-prompt-rewriters/quantized-rewriters.md) — Enhances prompts by loading a memory-efficient GGUF model for faster rewriting with fewer resources. ([source](https://cdn.jsdelivr.net/gh/hunyuan-promptenhancer/promptenhancer@main/README.md))
- [Instruction Refiners](https://awesome-repositories.com/f/artificial-intelligence-ml/image-generation/image-editing/instruction-refiners.md) — Refines image editing instructions by incorporating visual context from the input image. ([source](https://cdn.jsdelivr.net/gh/hunyuan-promptenhancer/promptenhancer@main/README.md))

### Graphics & Multimedia

- [Visual Context Embedders](https://awesome-repositories.com/f/graphics-multimedia/rich-media-integration/prompt-embeddings/visual-context-embedders.md) — Embeds visual context from input images into the prompt rewriting process for context-aware refinement.
