Spaces:
Runtime error
Runtime error
Commit
·
99c88d2
0
Parent(s):
Duplicate from treadon/prompt-fungineer-355M
Browse filesCo-authored-by: Ritesh Khanna <[email protected]>
This view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +36 -0
- .gitignore +1 -0
- README.md +13 -0
- app.py +154 -0
- examples.json +170 -0
- images_original/basketball_355M.png +3 -0
- images_original/basketball_7B.png +3 -0
- images_original/basketball_base.png +3 -0
- images_original/electric_guitar_355M.png +3 -0
- images_original/electric_guitar_7B.png +3 -0
- images_original/electric_guitar_base.png +3 -0
- images_original/exotic_bird_355M.png +3 -0
- images_original/exotic_bird_7B.png +3 -0
- images_original/exotic_bird_base.png +3 -0
- images_original/halloween_355M.png +3 -0
- images_original/halloween_7B.png +3 -0
- images_original/halloween_base.png +3 -0
- images_original/lemonade_355M.jpg +3 -0
- images_original/lemonade_7B.jpg +3 -0
- images_original/lemonade_base.jpg +3 -0
- images_original/man_eating_cereal_355M.jpg +3 -0
- images_original/man_eating_cereal_7B.jpg +3 -0
- images_original/man_eating_cereal_base.jpg +3 -0
- images_original/marble_statue_355M.png +3 -0
- images_original/marble_statue_7B.png +3 -0
- images_original/marble_statue_base.png +3 -0
- images_original/mayan_temple_355M.jpg +3 -0
- images_original/mayan_temple_7B.jpg +3 -0
- images_original/mayan_temple_base.jpg +3 -0
- images_original/roast_chicken_355M.png +3 -0
- images_original/roast_chicken_7B.png +3 -0
- images_original/roast_chicken_base.png +3 -0
- images_original/soda_can_355M.png +3 -0
- images_original/soda_can_7B.png +3 -0
- images_original/soda_can_base.png +3 -0
- images_original/the_letter_k_355M.png +3 -0
- images_original/the_letter_k_7B.png +3 -0
- images_original/the_letter_k_base.png +3 -0
- images_original/woman_snowboarding_355M.png +3 -0
- images_original/woman_snowboarding_7B.png +3 -0
- images_original/woman_snowboarding_base.png +3 -0
- requirements.txt +6 -0
- static/basketball_355M.png +3 -0
- static/basketball_7B.png +3 -0
- static/basketball_base.png +3 -0
- static/electric_guitar_355M.png +3 -0
- static/electric_guitar_7B.png +3 -0
- static/electric_guitar_base.png +3 -0
- static/exotic_bird_355M.png +3 -0
- static/exotic_bird_7B.png +3 -0
.gitattributes
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
28 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
29 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
30 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
31 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
32 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
36 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
venv
|
README.md
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
title: Image Prompt Generator
|
3 |
+
emoji: 🧙🏼♂️
|
4 |
+
colorFrom: red
|
5 |
+
colorTo: yellow
|
6 |
+
sdk: gradio
|
7 |
+
sdk_version: 3.24.1
|
8 |
+
app_file: app.py
|
9 |
+
pinned: false
|
10 |
+
duplicated_from: treadon/prompt-fungineer-355M
|
11 |
+
---
|
12 |
+
|
13 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
ADDED
@@ -0,0 +1,154 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
import gradio as gr
|
3 |
+
import transformers
|
4 |
+
import os
|
5 |
+
import re
|
6 |
+
import json
|
7 |
+
import random
|
8 |
+
|
9 |
+
device = "cpu"
|
10 |
+
|
11 |
+
model = None
|
12 |
+
tokenizer = None
|
13 |
+
|
14 |
+
def init_model():
|
15 |
+
global model, tokenizer
|
16 |
+
|
17 |
+
model_id = os.environ.get("MODEL_ID") or "treadon/prompt-fungineer-355M"
|
18 |
+
auth_token = os.environ.get("HUB_TOKEN") or True
|
19 |
+
|
20 |
+
print(f"Using model {model_id}.")
|
21 |
+
|
22 |
+
if auth_token != True:
|
23 |
+
print("Using auth token.")
|
24 |
+
|
25 |
+
model = transformers.AutoModelForCausalLM.from_pretrained(model_id, low_cpu_mem_usage=True,use_auth_token=auth_token)
|
26 |
+
tokenizer = transformers.AutoTokenizer.from_pretrained("gpt2")
|
27 |
+
|
28 |
+
|
29 |
+
def format_prompt(prompt, enhancers=True, inspiration=False, negative_prompt=False):
|
30 |
+
try:
|
31 |
+
pattern = r"(BRF:|POS:|ENH:|INS:|NEG:) (.*?)(?= (BRF:|POS:|ENH:|INS:|NEG:)|$)"
|
32 |
+
matches = re.findall(pattern, prompt)
|
33 |
+
vals = {key: value.strip() for key, value,ex in matches}
|
34 |
+
result = vals["POS:"]
|
35 |
+
if enhancers:
|
36 |
+
result += " " + vals["ENH:"]
|
37 |
+
if inspiration:
|
38 |
+
result += " " + vals["INS:"]
|
39 |
+
if negative_prompt:
|
40 |
+
result += "\n\n--no " + vals["NEG:"]
|
41 |
+
|
42 |
+
return result
|
43 |
+
except Exception as e:
|
44 |
+
return "Failed to generate prompt."
|
45 |
+
|
46 |
+
|
47 |
+
def generate_text(prompt, extra=False, top_k=100, top_p=0.95, temperature=0.85, enhancers = True, inpspiration = False , negative_prompt = False):
|
48 |
+
global model, tokenizer
|
49 |
+
|
50 |
+
try:
|
51 |
+
if model is None:
|
52 |
+
init_model()
|
53 |
+
except Exception as e:
|
54 |
+
print(e)
|
55 |
+
return ["Try Again"] * 4
|
56 |
+
|
57 |
+
if model is None:
|
58 |
+
return ["Try Again"] * 4
|
59 |
+
|
60 |
+
prompt = prompt.strip()
|
61 |
+
|
62 |
+
if not prompt.startswith("BRF:"):
|
63 |
+
prompt = "BRF: " + prompt
|
64 |
+
|
65 |
+
if not extra:
|
66 |
+
prompt = prompt + " POS:"
|
67 |
+
|
68 |
+
model.eval()
|
69 |
+
# SOFT SAMPLE
|
70 |
+
inputs = tokenizer(prompt, return_tensors="pt").to(device)
|
71 |
+
samples = []
|
72 |
+
try:
|
73 |
+
for i in range(1):
|
74 |
+
print(f"Generating sample for prompt: {prompt}")
|
75 |
+
outputs = model.generate(**inputs, max_length=256, do_sample=True, top_k=top_k, top_p=top_p, temperature=temperature, num_return_sequences=4, pad_token_id=tokenizer.eos_token_id)
|
76 |
+
print(f"Generated {len(outputs)} samples.")
|
77 |
+
for output in outputs:
|
78 |
+
sample = tokenizer.decode(output, skip_special_tokens=True)
|
79 |
+
sample = format_prompt(sample, enhancers, inpspiration, negative_prompt)
|
80 |
+
print(f"Sample: {sample}")
|
81 |
+
samples.append(sample)
|
82 |
+
except Exception as e:
|
83 |
+
print(e)
|
84 |
+
|
85 |
+
return samples
|
86 |
+
|
87 |
+
if __name__ == "__main__":
|
88 |
+
with gr.Blocks() as fungineer:
|
89 |
+
with gr.Row():
|
90 |
+
gr.Markdown("""# Midjourney / Dalle 2 / Stable Diffusion Prompt Generator
|
91 |
+
This is the 355M parameter model. There is also a 7B parameter model that is much better but far slower (access coming soon).
|
92 |
+
Just enter a basic prompt and the fungineering model will use its wildest imagination to expand the prompt in detail. You can then use this prompt to generate images with Midjourney, Dalle 2, Stable Diffusion, Bing Image Creator, or any other image generation model. Read more about this project [on my blog post](https://riteshkhanna.com/2023/04/12/image-prompt-generator/).
|
93 |
+
## TIP: Keep the base prompt short and simple. The model will do the rest.
|
94 |
+
""")
|
95 |
+
with gr.Row():
|
96 |
+
with gr.Column():
|
97 |
+
|
98 |
+
base_prompt = gr.Textbox(lines=1, label="Base Prompt (Shorter is Better)", placeholder="An astronaut in space.", info="Enter a very simple prompt that will be fungineered into something exciting!")
|
99 |
+
submit = gr.Button(label="Fungineer",variant="primary")
|
100 |
+
|
101 |
+
extra = gr.Checkbox(value=False, label="Wild Imagination", info="If checked, the model will be allowed to go wild with its imagination.")
|
102 |
+
|
103 |
+
with gr.Accordion("Advanced Generation Settings", open=False):
|
104 |
+
top_k = gr.Slider( minimum=10, maximum=1000, value=100, label="Top K", info="Top K sampling")
|
105 |
+
top_p = gr.Slider( minimum=0.1, maximum=1, value=0.95, step=0.01, label="Top P", info="Top P sampling")
|
106 |
+
temperature = gr.Slider( minimum=0.1, maximum=1.2, value=0.85, step=0.01, label="Temperature", info="Temperature sampling. Higher values will make the model more creative")
|
107 |
+
|
108 |
+
with gr.Accordion("Advanced Output Settings", open=False):
|
109 |
+
enh = gr.Checkbox(value=True, label="Enhancers", info="Add image meta information such as lens type, shuffter speed, camera model, etc.")
|
110 |
+
insp = gr.Checkbox(value=False, label="Inpsiration", info="Include inspirational photographers that are known for this type of photography. Sometimes random people will appear here, needs more training.")
|
111 |
+
neg = gr.Checkbox(value=False, label="Negative Prompt", info="Include a negative prompt, more often used in Stable Diffusion. If you're a Stable Diffusion user, chances are you already have a better negative prompt you like to use.")
|
112 |
+
|
113 |
+
with gr.Column():
|
114 |
+
outputs = [
|
115 |
+
gr.Textbox(lines=2, label="Fungineered Text 1"),
|
116 |
+
gr.Textbox(lines=2, label="Fungineered Text 2"),
|
117 |
+
gr.Textbox(lines=2, label="Fungineered Text 3"),
|
118 |
+
gr.Textbox(lines=2, label="Fungineered Text 4"),
|
119 |
+
]
|
120 |
+
|
121 |
+
gr.Markdown("### Got something good? [Share it](https://huggingface.co/spaces/treadon/prompt-fungineer-355M/discussions/1) with the community in the showcase!")
|
122 |
+
|
123 |
+
for textbox in outputs:
|
124 |
+
textbox.style(show_copy_button=True)
|
125 |
+
|
126 |
+
inputs = [base_prompt, extra, top_k, top_p, temperature, enh, insp, neg]
|
127 |
+
|
128 |
+
submit.click(generate_text, inputs=inputs, outputs=outputs)
|
129 |
+
|
130 |
+
examples = []
|
131 |
+
with open("examples.json") as f:
|
132 |
+
examples = json.load(f)
|
133 |
+
|
134 |
+
for i, example in enumerate(examples):
|
135 |
+
with gr.Tab(f"Example {i+1}", id=i):
|
136 |
+
with gr.Row():
|
137 |
+
with gr.Column():
|
138 |
+
gr.Markdown(f"### Base Prompt")
|
139 |
+
gr.HTML(f"<img src='https://huggingface.co/spaces/treadon/prompt-fungineer-355M/resolve/main/{example['base']['src']}' style='width: 100%; border-radius: 15px; border: 1px solid #444' />")
|
140 |
+
gr.Markdown(f"{example['base']['prompt']}")
|
141 |
+
with gr.Column():
|
142 |
+
gr.Markdown(f"### 355M Prompt Fungineered")
|
143 |
+
gr.HTML(f"<img src='https://huggingface.co/spaces/treadon/prompt-fungineer-355M/resolve/main/{example['355M']['src']}' style='width: 100%; border-radius: 15px; border: 1px solid #444' />")
|
144 |
+
gr.Markdown(f"{example['355M']['prompt']}")
|
145 |
+
with gr.Column():
|
146 |
+
gr.Markdown(f"### 7B Prompt Fungineered")
|
147 |
+
gr.HTML(f"<img src='https://huggingface.co/spaces/treadon/prompt-fungineer-355M/resolve/main/{example['7B']['src']}' style='width: 100%; border-radius: 15px; border: 1px solid #444' />")
|
148 |
+
gr.Markdown(f"{example['7B']['prompt']}")
|
149 |
+
|
150 |
+
|
151 |
+
|
152 |
+
init_model()
|
153 |
+
fungineer.launch(enable_queue=True, show_api=False, debug=True)
|
154 |
+
|
examples.json
ADDED
@@ -0,0 +1,170 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[
|
2 |
+
{
|
3 |
+
"base": {
|
4 |
+
"prompt": "basketball",
|
5 |
+
"src": "static/basketball_base.png"
|
6 |
+
},
|
7 |
+
"355M": {
|
8 |
+
"prompt": "An imaginative image of a basketball player leaping into the air as they strike the ball. The player, dressed in an off-the-shoulder outfit, is adorned with a dazzling array of colorful and metallic studs, displaying their incredible speed and power. Their body is draped in a dazzling array of high-tech equipment, including a power rack, a motion-sensitive visor, and a ball gown. The background features a breathtaking cityscape filled with people in colorful attire, such as colorful sneakers, and a dramatic cityscape filled with skyscrapers. wide-angle lens, wide-angle lens, high contras",
|
9 |
+
"src": "static/basketball_355M.png"
|
10 |
+
},
|
11 |
+
"7B": {
|
12 |
+
"prompt": "A captivating image of professional basketball players leaping high to dunk a giant basketball, sending the ball spinning and crashing to the ground with force. The players' expressions are one of awe and delight, as they showcase their athletic prowess. The background features a large, colorful basketball court, with spectators in the background cheering and taking photos. telephoto lens, fast shutter speed, high contrast",
|
13 |
+
"src": "static/basketball_7B.png"
|
14 |
+
}
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"base": {
|
18 |
+
"prompt": "soda can",
|
19 |
+
"src": "static/soda_can_base.png"
|
20 |
+
},
|
21 |
+
"355M": {
|
22 |
+
"prompt": "An imaginative image of a sleek, high-tech soda can that appears to be made entirely of plastic. A sleek, cutting-edge LED light illuminates the can, allowing the artist to create a mesmerizing blend of colors and textures. The can's streamlined design is complemented by a sleek, metallic finish. The sunlight casts warm, diffused light over the scene, adding depth and texture to the abstract scene. wide aperture, long exposure",
|
23 |
+
"src": "static/soda_can_355M.png"
|
24 |
+
},
|
25 |
+
"7B": {
|
26 |
+
"prompt": "An intriguing image of a soda can floating in the sky, suspended by a thin string. The can's reflective surface creates a mesmerizing pattern against the backdrop of a starry night sky. The image is captured using a wide aperture, creating a dreamy, ethereal atmosphere. wide aperture, long exposure, wide-angle lens",
|
27 |
+
"src": "static/soda_can_7B.png"
|
28 |
+
}
|
29 |
+
},
|
30 |
+
{
|
31 |
+
"base": {
|
32 |
+
"prompt": "mayan temple",
|
33 |
+
"src": "static/mayan_temple_base.jpg"
|
34 |
+
},
|
35 |
+
"355M": {
|
36 |
+
"prompt": "A beautifully carved, intricate Mayan temple nestled among the ruins of a historic Mayan city. The ancient stone structure is connected by a winding stone stairway that leads to a crystal-clear pool surrounded by a vibrant jungle. A breathtaking array of colorful flowers and foliage surrounds the temple, with a grand stairway leading up to the celestial celestial deity. wide-angle lens, warm lighting, small aperture",
|
37 |
+
"src": "static/mayan_temple_355M.jpg"
|
38 |
+
},
|
39 |
+
"7B": {
|
40 |
+
"prompt": "a captivating image of a mayan temple at night, its ancient stone architecture illuminated by warm, golden light. The temple is surrounded by a lush, green jungle, creating a tranquil atmosphere. The image captures the timeless beauty of the mayan culture, with its intricate stone carvings and mesmerizing architecture. wide aperture, low light photography, long exposure",
|
41 |
+
"src": "static/mayan_temple_7B.jpg"
|
42 |
+
}
|
43 |
+
},
|
44 |
+
{
|
45 |
+
"base": {
|
46 |
+
"prompt": "exotic bird",
|
47 |
+
"src": "static/exotic_bird_base.png"
|
48 |
+
},
|
49 |
+
"355M": {
|
50 |
+
"prompt": "A breathtaking image of an exotic bird soaring through the sky, its feathers flapping like a vibrant symphony. The bird's beak points skyward, revealing a magnificent array of colors and patterns, creating a captivating visual. The sky is a vast expanse of colorful, intricate clouds, with light filtering through the surrounding foliage, casting intricate patterns and creating a dreamy atmosphere. The sun sets behind a clear blue sky, casting a warm, golden glow on the setting sun's reflection. telephoto lens, golden hour, polarizing filter",
|
51 |
+
"src": "static/exotic_bird_355M.png"
|
52 |
+
},
|
53 |
+
"7B": {
|
54 |
+
"prompt": "A captivating image of an exotic bird perched on an ancient sculpture, creating a rich, colorful contrast against the delicate, ancient beauty. The bird's feathers are adorned with intricate patterns, adding to the enchantment of the image. The sculpture, carved from marble, has weathered over time, creating a gentle, serene atmosphere. wide aperture, standard lens, natural light",
|
55 |
+
"src": "static/exotic_bird_7B.png"
|
56 |
+
}
|
57 |
+
},
|
58 |
+
{
|
59 |
+
"base": {
|
60 |
+
"prompt": "eletric guitar",
|
61 |
+
"src": "static/electric_guitar_base.png"
|
62 |
+
},
|
63 |
+
"355M": {
|
64 |
+
"prompt": "A captivating image of electric guitarists playing a futuristic city, with intricate patterns and intricate geometry. The music is a symphony of electric guitar tones, with shimmering, warm tones playing against a vibrant, colorful backdrop. The ambient lighting creates a sense of depth and depth of field, while a high-angle lens captures the dynamic nature of the scene. wide aperture, telephoto lens, high shutter speed",
|
65 |
+
"src": "static/electric_guitar_355M.png"
|
66 |
+
},
|
67 |
+
"7B": {
|
68 |
+
"prompt": "A captivating image of an eletric guitar being played underwater, with the musician's hands performing intricate movements on the strings. The guitar, surrounded by a vibrant underwater environment of colorful coral and glowing fish, appears to glow with an entrancing, neon-like glow. The musician's expression of concentration and skillful playing emphasizes the artist's talent and determination. fast shutter speed, wide aperture, shallow depth of field",
|
69 |
+
"src": "static/electric_guitar_7B.png"
|
70 |
+
}
|
71 |
+
},
|
72 |
+
{
|
73 |
+
"base": {
|
74 |
+
"prompt": "the letter k",
|
75 |
+
"src": "static/the_letter_k_base.png"
|
76 |
+
},
|
77 |
+
"355M": {
|
78 |
+
"prompt": "A powerful image of a letter K, a symbol that stands for love, joy, intelligence, and hope. In a vibrant, modern cityscape, the letter is surrounded by vibrant, urban landmarks: parks, historic buildings, and innovative retail spaces. The golden hour sunlight bathes the image in a soft, golden hues that contrast with the other buildings and the cityscape below. telephoto lens, soft light, high contrast",
|
79 |
+
"src": "static/the_letter_k_355M.png"
|
80 |
+
},
|
81 |
+
"7B": {
|
82 |
+
"prompt": "an imaginative image of a letter k crafted using geometric shapes, creating an abstract, modern-day rendition of the ancient symbol. The geometric shapes are placed along the k, creating a vibrant, glowing effect that contrasts against the dark background. The letter k is slightly tilted, creating a sense of movement and intrigue. wide aperture, wide-angle lens, warm colors",
|
83 |
+
"src": "static/the_letter_k_7B.png"
|
84 |
+
}
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"base": {
|
88 |
+
"prompt": "man eating cereal",
|
89 |
+
"src": "static/man_eating_cereal_base.jpg"
|
90 |
+
},
|
91 |
+
"355M": {
|
92 |
+
"prompt": "A creative image of a man in an industrial kitchen, preparing to indulge in a delicious bowl of cereal. His eyes are filled with wonder as he carefully slices and grubs the cereal into bite-sized pieces. The industrial kitchen decor is a vibrant mix of stainless steel and glass, creating a visually stunning, high-energy setting. Soft lighting highlights the man, while a clear, ambient light casts a warm, inviting glow on the kitchen. wide-angle lens, fast shutter speed, high contrast",
|
93 |
+
"src": "static/man_eating_cereal_355M.jpg"
|
94 |
+
},
|
95 |
+
"7B": {
|
96 |
+
"prompt": "a whimsical image depicting a man seated in a luxurious, floating dining room, eating his breakfast of oatmeal out of a vibrant, colorful bowl suspended from a crystal-covered table. The setting, adorned with warm, vintage furniture, is filled with bustling, cozy surroundings, making the scene inviting and relaxing. The man, dressed in a casually chic outfit, appears to be in a state of bliss as he crushes the oatmeal into a gooey, oaty treat. standard lens, warm light, soft lighting",
|
97 |
+
"src": "static/man_eating_cereal_7B.jpg"
|
98 |
+
}
|
99 |
+
},
|
100 |
+
{
|
101 |
+
"base": {
|
102 |
+
"prompt": "woman snowboarding",
|
103 |
+
"src": "static/woman_snowboarding_base.png"
|
104 |
+
},
|
105 |
+
"355M": {
|
106 |
+
"prompt": "A stunning image capturing a woman riding a snowboard in the midst of a storm, showcasing her agility and power. The woman's white clothing and snowboard accessories are completely covered in snow, creating a contrast to the stormy conditions. The snowstorm's intensity adds to the drama and beauty of the image, emphasizing the woman's natural beauty. telephoto lens, polarizing filter, fast shutter speed",
|
107 |
+
"src": "static/woman_snowboarding_355M.png"
|
108 |
+
},
|
109 |
+
"7B": {
|
110 |
+
"prompt": " stunning image of a snowboarding woman riding down a mountain, their helmet adorned with a vibrant colored ski mask. The snow-covered mountain is reflected in the woman's eyes, creating a mesmerizing swirl of color. The drone hovers above, capturing the moment from a unique perspective. The image is sharp and vibrant, with the snow and mountain details beautifully contrasted. fast shutter speed, wide aperture, telephoto lens",
|
111 |
+
"src": "static/woman_snowboarding_7B.png"
|
112 |
+
}
|
113 |
+
},
|
114 |
+
{
|
115 |
+
"base": {
|
116 |
+
"prompt": "marble statue",
|
117 |
+
"src": "static/marble_statue_base.png"
|
118 |
+
},
|
119 |
+
"355M": {
|
120 |
+
"prompt": "A mesmerizing image depicting a majestic marble statue suspended in the air, surrounded by a dazzling display of swirling, sunlit gasps of air. The statue, suspended in mid-air, is adorned with intricate, intricate designs, from leaves to veins, glowing with vibrant colors and contrasting patterns. The surrounding area is bathed in an ethereal, ethereal light, casting dappled shadows and highlighting the intricate details of the sculpture. wide aperture, standard lens, medium depth of field",
|
121 |
+
"src": "static/marble_statue_355M.png"
|
122 |
+
},
|
123 |
+
"7B": {
|
124 |
+
"prompt": "A breathtaking image of a marble statue of a graceful swan, standing gracefully in a lush, green meadow surrounded by a collection of ancient, crumbling stone monuments. The statue is perfectly preserved, its feathers looking as they did centuries ago. The soft, golden light of the setting sun casts warm hues on the statues, adding depth and dimension to the scene. wide aperture, golden hour, wide-angle lens",
|
125 |
+
"src": "static/marble_statue_7B.png"
|
126 |
+
}
|
127 |
+
},
|
128 |
+
{
|
129 |
+
"base": {
|
130 |
+
"prompt": "halloween",
|
131 |
+
"src": "static/halloween_base.png"
|
132 |
+
},
|
133 |
+
"355M": {
|
134 |
+
"prompt": "A haunting image of a candy-laden Halloween street, where shoppers and trick-or-treaters share in a festive atmosphere. The streetlights are out, casting a dim, eerie glow on the scene. A neon sign with a twisted heart symbolizes the candy's sweetness, while a giant pumpkin with a heart shaped face and a scarlet mohawk stands guard at the entrance. A narrow alley leads down to a dilapidated candy stand, where shoppers and trick-or-treaters alike laugh and smile as the scene fades into the night. fast shutter speed, soft lighting, f/1.4 aperture",
|
135 |
+
"src": "static/halloween_355M.png"
|
136 |
+
},
|
137 |
+
"7B": {
|
138 |
+
"prompt": "a captivating image of a diverse array of creatures roaming a spooky, haunted house, their expressions evoking fear and curiosity. Their shadowy forms loom against a shadowy, atmospheric background, creating a sense of mystery and intrigue. The dark, dreary lighting complements the creatures' eerily glowing eyes, creating a chilling ambiance. standard lens, low light, f/5.6 aperture",
|
139 |
+
"src": "static/halloween_7B.png"
|
140 |
+
}
|
141 |
+
},
|
142 |
+
{
|
143 |
+
"base": {
|
144 |
+
"prompt": "roast chicken",
|
145 |
+
"src": "static/roast_chicken_base.png"
|
146 |
+
},
|
147 |
+
"355M": {
|
148 |
+
"prompt": "A classic image of a roasting chicken displayed on a griddle, surrounded by its juicy, tender meat. The chicken's skin is peeling off with every stroke of the pan, revealing the perfect balance of tenderness and crispness. The golden brown crust around the chicken's bones adds a pop of color to the image. The griddle's soft, flickering flame adds a touch of magic and smoke to the scene. standard lens, soft lighting, tripod",
|
149 |
+
"src": "static/roast_chicken_355M.png"
|
150 |
+
},
|
151 |
+
"7B": {
|
152 |
+
"prompt": "An enticing image of a warm, roasted chicken resting in a cozy oven, bathed in a warm, natural light from a window. The chicken's skin is golden brown and crisp, with a juicy, tender interior. The bird's juices run and drip, creating a comforting, aromatic atmosphere. standard lens, warm colors, natural light",
|
153 |
+
"src": "static/roast_chicken_7B.png"
|
154 |
+
}
|
155 |
+
},
|
156 |
+
{
|
157 |
+
"base": {
|
158 |
+
"prompt": "lemonade",
|
159 |
+
"src": "static/lemonade_base.jpg"
|
160 |
+
},
|
161 |
+
"355M": {
|
162 |
+
"prompt": "A playful image of a bright and bubbly lemonade in a vibrant glass, with a fluffy, fragrant mist rising from its base. The soft, diffused light from the soft drink highlights the sweet and fresh scent, while the background features a lively dance floor filled with patrons, dancing, laughing, and sharing stories. The vibrant hues of the neon lights cast a warm, inviting atmosphere. wide aperture, f/1.4, polarizing filter",
|
163 |
+
"src": "static/lemonade_355M.jpg"
|
164 |
+
},
|
165 |
+
"7B": {
|
166 |
+
"prompt": "A cozy scene featuring a vintage-inspired lemonade stand in a quaint, rural location. The stand has a sunny, wooden structure adorned with vintage-looking signage and colorful, handmade lemons from the surrounding garden. In the background, a wooden fence surrounds a beautiful, rolling lawn, where children play with sprinklers and pets bark in greeting. standard lens, soft lighting, balanced exposure",
|
167 |
+
"src": "static/lemonade_7B.jpg"
|
168 |
+
}
|
169 |
+
}
|
170 |
+
]
|
images_original/basketball_355M.png
ADDED
![]() |
Git LFS Details
|
images_original/basketball_7B.png
ADDED
![]() |
Git LFS Details
|
images_original/basketball_base.png
ADDED
![]() |
Git LFS Details
|
images_original/electric_guitar_355M.png
ADDED
![]() |
Git LFS Details
|
images_original/electric_guitar_7B.png
ADDED
![]() |
Git LFS Details
|
images_original/electric_guitar_base.png
ADDED
![]() |
Git LFS Details
|
images_original/exotic_bird_355M.png
ADDED
![]() |
Git LFS Details
|
images_original/exotic_bird_7B.png
ADDED
![]() |
Git LFS Details
|
images_original/exotic_bird_base.png
ADDED
![]() |
Git LFS Details
|
images_original/halloween_355M.png
ADDED
![]() |
Git LFS Details
|
images_original/halloween_7B.png
ADDED
![]() |
Git LFS Details
|
images_original/halloween_base.png
ADDED
![]() |
Git LFS Details
|
images_original/lemonade_355M.jpg
ADDED
![]() |
Git LFS Details
|
images_original/lemonade_7B.jpg
ADDED
![]() |
Git LFS Details
|
images_original/lemonade_base.jpg
ADDED
![]() |
Git LFS Details
|
images_original/man_eating_cereal_355M.jpg
ADDED
![]() |
Git LFS Details
|
images_original/man_eating_cereal_7B.jpg
ADDED
![]() |
Git LFS Details
|
images_original/man_eating_cereal_base.jpg
ADDED
![]() |
Git LFS Details
|
images_original/marble_statue_355M.png
ADDED
![]() |
Git LFS Details
|
images_original/marble_statue_7B.png
ADDED
![]() |
Git LFS Details
|
images_original/marble_statue_base.png
ADDED
![]() |
Git LFS Details
|
images_original/mayan_temple_355M.jpg
ADDED
![]() |
Git LFS Details
|
images_original/mayan_temple_7B.jpg
ADDED
![]() |
Git LFS Details
|
images_original/mayan_temple_base.jpg
ADDED
![]() |
Git LFS Details
|
images_original/roast_chicken_355M.png
ADDED
![]() |
Git LFS Details
|
images_original/roast_chicken_7B.png
ADDED
![]() |
Git LFS Details
|
images_original/roast_chicken_base.png
ADDED
![]() |
Git LFS Details
|
images_original/soda_can_355M.png
ADDED
![]() |
Git LFS Details
|
images_original/soda_can_7B.png
ADDED
![]() |
Git LFS Details
|
images_original/soda_can_base.png
ADDED
![]() |
Git LFS Details
|
images_original/the_letter_k_355M.png
ADDED
![]() |
Git LFS Details
|
images_original/the_letter_k_7B.png
ADDED
![]() |
Git LFS Details
|
images_original/the_letter_k_base.png
ADDED
![]() |
Git LFS Details
|
images_original/woman_snowboarding_355M.png
ADDED
![]() |
Git LFS Details
|
images_original/woman_snowboarding_7B.png
ADDED
![]() |
Git LFS Details
|
images_original/woman_snowboarding_base.png
ADDED
![]() |
Git LFS Details
|
requirements.txt
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--extra-index-url https://download.pytorch.org/whl/cu118
|
2 |
+
torch
|
3 |
+
torchvision
|
4 |
+
torchaudio
|
5 |
+
transformers
|
6 |
+
accelerate
|
static/basketball_355M.png
ADDED
![]() |
Git LFS Details
|
static/basketball_7B.png
ADDED
![]() |
Git LFS Details
|
static/basketball_base.png
ADDED
![]() |
Git LFS Details
|
static/electric_guitar_355M.png
ADDED
![]() |
Git LFS Details
|
static/electric_guitar_7B.png
ADDED
![]() |
Git LFS Details
|
static/electric_guitar_base.png
ADDED
![]() |
Git LFS Details
|
static/exotic_bird_355M.png
ADDED
![]() |
Git LFS Details
|
static/exotic_bird_7B.png
ADDED
![]() |
Git LFS Details
|