Downloads · 30 days
55
0% of all-time downloads
cactusfriend/nightmare-invokeai-prompts
nightmare-invokeai-prompts is a text generation model from cactusfriend. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as openrail.
A model based upon the prompts of all the images in my InvokeAI's output directory, meant to be used with InvokeAI (a Stable Diffusion implementation/UI) to generate new, probably wild nightmare images.
Downloads · 30 days
55
0% of all-time downloads
All-time downloads
19.4K
Public
Parameters
176M
3.9 GB on disk
Likes
6
Public
Click a slice to open those files.
.bin551 MB · 50%
How the weights are stored.
F32125M · 71%
From the Hugging Face model README
A model based upon the prompts of all the images in my InvokeAI's output directory, meant to be used with InvokeAI (a Stable Diffusion implementation/UI) to generate new, probably wild nightmare images.
This is mostly trained on positive prompts, though you may catch some words in [] brackets, which will be treated as negative. GPT-Neo is usually quite good at pairing parenthesis, quotation marks, etc - however, don't be too surprised if it generates something that's not quite InvokeAI prompt syntax.
To use this model, you can import it as a pipeline like so:
from transformers import pipeline
generator = pipeline(model="cactusfriend/nightmare-invokeai-prompts",
tokenizer="cactusfriend/nightmare-invokeai-prompts",
task="text-generation")
Here's an example function that'll generate by default 20 prompts, at a temperature of 1.8 which seems good for this model.
def makePrompts(prompt: str, *, p: float=0.9,
k: int = 40, num: int = 20,
temp: float = 1.8, mnt: int = 150):
outputs = generator(prompt, max_new_tokens=mnt,
temperature=temp, do_sample=True,
top_p=p, top_k=k, num_return_sequences=num)
items = set([i['generated_text'] for i in outputs])
print("-" * 60)
print("\n ---\n".join(items))
print("-" * 60)
Then, you can call it like so:
makePrompts("a photograph of")
# or, to change some defaults:
makePrompts("spaghetti all over", temp=1.4, p=0.92, k=45)