SuperAPIAI Directory

prompt-extend

github.com · AI images

extending stable diffusion prompts with suitable style cues using text generation

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

prompt-extend is an open-source text generation project centered on Stable Diffusion prompt extension, with the goal of automatically supplementing the main prompt with suitable style cues. Its core idea is to use a text generation model to generate style prompts based on the main creative idea.

Main capabilities include: generating suitable style cues based on the main prompt, used to extend Stable Diffusion prompts. The project provides notebooks related to the dataset, tokenizer, model training, inference, and use of the Gradio app, including dataset.ipynb (creating a dataset containing only a subset of unique prompts from diffusiondb), tokenizer.ipynb (training a new tokenizer on the Stable Diffusion prompt dataset), model.ipynb (training a GPT-2 model on the dataset using the trained tokenizer), inference.ipynb (using the trained model to generate prompts and experiment with them in Stable Diffusion), and app.ipynb (a Gradio app for the model). The model and tokenizer are released on the HuggingFace Hub and can be tried online in the HuggingFace Space.

How to use: you can try it online through the HuggingFace Space; you can also obtain the model and tokenizer on the HuggingFace Hub and combine them with the notebooks in the repository for training, inference, or building a Gradio app. To contribute code, you can create a pull request; if you have ideas, you can create an issue.

Applicable scenarios: text generation tasks that require automatically adding style prompts to Stable Diffusion prompts, as well as model training, tokenizer training, inference, and app building around this project.

Limitations: apart from the above, specific installation commands, dependency versions, platform support, fees and pricing, generation results, and other information are not yet provided.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools