alibaba-pai / pai-bloom-1b1-text2prompt-sd

huggingface.co
Total runs: 125
24-hour runs: 1
7-day runs: 6
30-day runs: 54
Model's Last Updated: March 06 2024
text-generation

Introduction of pai-bloom-1b1-text2prompt-sd

Model Details of pai-bloom-1b1-text2prompt-sd

BeautifulPrompt

简介 Brief Introduction

我们开源了一个自动Prompt生成模型,您可以直接输入一个极其简单的Prompt,就可以得到经过语言模型优化过的Prompt,帮助您更简单地生成高颜值图像。

We release an automatic Prompt generation model, you can directly enter an extremely simple Prompt and get a Prompt optimized by the language model to help you generate more beautiful images simply.

使用 Usage
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained('alibaba-pai/pai-bloom-1b1-text2prompt-sd')
model = AutoModelForCausalLM.from_pretrained('alibaba-pai/pai-bloom-1b1-text2prompt-sd').eval().cuda()

raw_prompt = '1 girl'
input = f'Instruction: Give a simple description of the image to generate a drawing prompt.\nInput: {raw_prompt}\nOutput:'
input_ids = tokenizer.encode(input, return_tensors='pt').cuda()

outputs = model.generate(
    input_ids,
    max_length=384,
    do_sample=True,
    temperature=1.0,
    top_k=50,
    top_p=0.95,
    repetition_penalty=1.2,
    num_return_sequences=5)

prompts = tokenizer.batch_decode(outputs[:, input_ids.size(1):], skip_special_tokens=True)
prompts = [p.strip() for p in prompts]
print(prompts)
作品展示 Gallery
Original BeautifulPrompt
prompt: taylor swift, country, golden, fearless,wavehair prompt: portrait of taylor swift as a beautiful woman, long hair, country, golden ratio, intricate, symmetrical, cinematic lighting, highly detailed, digital painting, artstation, concept art, smooth, sharp focus, illustration
Original BeautifulPrompt
prompt: A majestic sailing ship prompt: a massive sailing ship, epic, cinematic, artstation, greg rutkowski, james gurney, sparth
使用须知 Notice for Use

使用上述模型需遵守 AIGC模型开源特别条款 。

If you want to use this model, please read this document carefully and abide by the terms.

Paper Citation

If you find the model useful, please consider cite the paper:

@inproceedings{emnlp2023a,
  author    = {Tingfeng Cao and
            Chengyu Wang and
            Bingyan Liu and
            Ziheng Wu and
            Jinhui Zhu and
            Jun Huang},
  title     = {BeautifulPrompt: Towards Automatic Prompt Engineering for Text-to-Image Synthesis},
  booktitle = {Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing: Industry Track},
  pages     = {1--11},
  year      = {2023}
}

Runs of alibaba-pai pai-bloom-1b1-text2prompt-sd on huggingface.co

125
Total runs
1
24-hour runs
2
3-day runs
6
7-day runs
54
30-day runs

More Information About pai-bloom-1b1-text2prompt-sd huggingface.co Model

More pai-bloom-1b1-text2prompt-sd license Visit here:

https://choosealicense.com/licenses/apache-2.0

pai-bloom-1b1-text2prompt-sd huggingface.co

pai-bloom-1b1-text2prompt-sd huggingface.co is an AI model on huggingface.co that provides pai-bloom-1b1-text2prompt-sd's model effect (), which can be used instantly with this alibaba-pai pai-bloom-1b1-text2prompt-sd model. huggingface.co supports a free trial of the pai-bloom-1b1-text2prompt-sd model, and also provides paid use of the pai-bloom-1b1-text2prompt-sd. Support call pai-bloom-1b1-text2prompt-sd model through api, including Node.js, Python, http.

pai-bloom-1b1-text2prompt-sd huggingface.co Url

https://huggingface.co/alibaba-pai/pai-bloom-1b1-text2prompt-sd

alibaba-pai pai-bloom-1b1-text2prompt-sd online free

pai-bloom-1b1-text2prompt-sd huggingface.co is an online trial and call api platform, which integrates pai-bloom-1b1-text2prompt-sd's modeling effects, including api services, and provides a free online trial of pai-bloom-1b1-text2prompt-sd, you can try pai-bloom-1b1-text2prompt-sd online for free by clicking the link below.

alibaba-pai pai-bloom-1b1-text2prompt-sd online free url in huggingface.co:

https://huggingface.co/alibaba-pai/pai-bloom-1b1-text2prompt-sd

pai-bloom-1b1-text2prompt-sd install

pai-bloom-1b1-text2prompt-sd is an open source model from GitHub that offers a free installation service, and any user can find pai-bloom-1b1-text2prompt-sd on GitHub to install. At the same time, huggingface.co provides the effect of pai-bloom-1b1-text2prompt-sd install, users can directly use pai-bloom-1b1-text2prompt-sd installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

pai-bloom-1b1-text2prompt-sd install url in huggingface.co:

https://huggingface.co/alibaba-pai/pai-bloom-1b1-text2prompt-sd

Url of pai-bloom-1b1-text2prompt-sd

pai-bloom-1b1-text2prompt-sd huggingface.co Url

Provider of pai-bloom-1b1-text2prompt-sd huggingface.co

alibaba-pai
ORGANIZATIONS

Other API from alibaba-pai