Spaces:
Running
on
Zero
Running
on
Zero
envs
Browse files
app.py
CHANGED
@@ -110,52 +110,6 @@ os.system(f'mv models/personalized/TUSUN.safetensors?download=true models/person
|
|
110 |
|
111 |
# - - - - - examples - - - - - #
|
112 |
|
113 |
-
image_examples = [
|
114 |
-
["__asset__/images/object/turtle-1.jpg",
|
115 |
-
"a sea turtle gracefully swimming over a coral reef in the clear blue ocean.",
|
116 |
-
"object",
|
117 |
-
11318446767408804497,
|
118 |
-
"",
|
119 |
-
],
|
120 |
-
|
121 |
-
["__asset__/images/object/rose-1.jpg",
|
122 |
-
"a red rose engulfed in flames.",
|
123 |
-
"object",
|
124 |
-
6854275249656120509,
|
125 |
-
"",
|
126 |
-
],
|
127 |
-
|
128 |
-
["__asset__/images/object/jellyfish-1.jpg",
|
129 |
-
"intricate detailing,photorealism,hyperrealistic, glowing jellyfish mushroom, flying, starry sky, bokeh, golden ratio composition.",
|
130 |
-
"object",
|
131 |
-
17966188172968903484,
|
132 |
-
"HelloObject",
|
133 |
-
],
|
134 |
-
|
135 |
-
|
136 |
-
["__asset__/images/camera/lush-1.jpg",
|
137 |
-
"detailed craftsmanship, photorealism, hyperrealistic, roaring waterfall, misty spray, lush greenery, vibrant rainbow, golden ratio composition.",
|
138 |
-
"camera",
|
139 |
-
7970487946960948963,
|
140 |
-
"HelloObject",
|
141 |
-
],
|
142 |
-
|
143 |
-
["__asset__/images/camera/tusun-1.jpg",
|
144 |
-
"tusuncub with its mouth open, blurry, open mouth, fangs, photo background, looking at viewer, tongue, full body, solo, cute and lovely, Beautiful and realistic eye details, perfect anatomy, Nonsense, pure background, Centered-Shot, realistic photo, photograph, 4k, hyper detailed, DSLR, 24 Megapixels, 8mm Lens, Full Frame, film grain, Global Illumination, studio Lighting, Award Winning Photography, diffuse reflection, ray tracing.",
|
145 |
-
"camera",
|
146 |
-
996953226890228361,
|
147 |
-
"TUSUN",
|
148 |
-
],
|
149 |
-
|
150 |
-
["__asset__/images/camera/painting-1.jpg",
|
151 |
-
"A oil painting.",
|
152 |
-
"camera",
|
153 |
-
16867854766769816385,
|
154 |
-
"",
|
155 |
-
],
|
156 |
-
|
157 |
-
]
|
158 |
-
|
159 |
# image_examples = [
|
160 |
# ["__asset__/images/object/turtle-1.jpg",
|
161 |
# "a sea turtle gracefully swimming over a coral reef in the clear blue ocean.",
|
@@ -214,6 +168,58 @@ image_examples = [
|
|
214 |
|
215 |
# ]
|
216 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
|
218 |
DREAM_BOOTH = {
|
219 |
'HelloObject': 'models/personalized/helloobjects_V12c.safetensors',
|
@@ -618,7 +624,7 @@ with block as demo:
|
|
618 |
# def process_example(input_image, prompt, drag_mode, seed, personalized, tracking_points, first_frame_path):
|
619 |
|
620 |
# return input_image, prompt, drag_mode, seed, personalized, tracking_points, first_frame_path
|
621 |
-
def process_example(input_image, prompt, drag_mode, seed, personalized):
|
622 |
return input_image, prompt, drag_mode, seed, personalized
|
623 |
|
624 |
# example = gr.Examples(
|
@@ -635,7 +641,7 @@ with block as demo:
|
|
635 |
example = gr.Examples(
|
636 |
label="Input Example",
|
637 |
examples=image_examples,
|
638 |
-
inputs=[input_image, prompt, drag_mode, seed, personalized],
|
639 |
outputs=[input_image, prompt, drag_mode, seed, personalized],
|
640 |
fn=process_example,
|
641 |
run_on_click=True,
|
|
|
110 |
|
111 |
# - - - - - examples - - - - - #
|
112 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
# image_examples = [
|
114 |
# ["__asset__/images/object/turtle-1.jpg",
|
115 |
# "a sea turtle gracefully swimming over a coral reef in the clear blue ocean.",
|
|
|
168 |
|
169 |
# ]
|
170 |
|
171 |
+
image_examples = [
|
172 |
+
["__asset__/images/object/turtle-1.jpg",
|
173 |
+
"a sea turtle gracefully swimming over a coral reef in the clear blue ocean.",
|
174 |
+
"object",
|
175 |
+
11318446767408804497,
|
176 |
+
"",
|
177 |
+
json.load(open("__asset__/trajs/object/turtle-1.json")),
|
178 |
+
],
|
179 |
+
|
180 |
+
["__asset__/images/object/rose-1.jpg",
|
181 |
+
"a red rose engulfed in flames.",
|
182 |
+
"object",
|
183 |
+
6854275249656120509,
|
184 |
+
"",
|
185 |
+
json.load(open("__asset__/trajs/object/rose-1.json")),
|
186 |
+
],
|
187 |
+
|
188 |
+
["__asset__/images/object/jellyfish-1.jpg",
|
189 |
+
"intricate detailing,photorealism,hyperrealistic, glowing jellyfish mushroom, flying, starry sky, bokeh, golden ratio composition.",
|
190 |
+
"object",
|
191 |
+
17966188172968903484,
|
192 |
+
"HelloObject",
|
193 |
+
json.load(open("__asset__/trajs/object/jellyfish-1.json")),
|
194 |
+
],
|
195 |
+
|
196 |
+
|
197 |
+
["__asset__/images/camera/lush-1.jpg",
|
198 |
+
"detailed craftsmanship, photorealism, hyperrealistic, roaring waterfall, misty spray, lush greenery, vibrant rainbow, golden ratio composition.",
|
199 |
+
"camera",
|
200 |
+
7970487946960948963,
|
201 |
+
"HelloObject",
|
202 |
+
json.load(open("__asset__/trajs/camera/lush-1.json")),
|
203 |
+
],
|
204 |
+
|
205 |
+
["__asset__/images/camera/tusun-1.jpg",
|
206 |
+
"tusuncub with its mouth open, blurry, open mouth, fangs, photo background, looking at viewer, tongue, full body, solo, cute and lovely, Beautiful and realistic eye details, perfect anatomy, Nonsense, pure background, Centered-Shot, realistic photo, photograph, 4k, hyper detailed, DSLR, 24 Megapixels, 8mm Lens, Full Frame, film grain, Global Illumination, studio Lighting, Award Winning Photography, diffuse reflection, ray tracing.",
|
207 |
+
"camera",
|
208 |
+
996953226890228361,
|
209 |
+
"TUSUN",
|
210 |
+
json.load(open("__asset__/trajs/camera/tusun-1.json")),
|
211 |
+
],
|
212 |
+
|
213 |
+
["__asset__/images/camera/painting-1.jpg",
|
214 |
+
"A oil painting.",
|
215 |
+
"camera",
|
216 |
+
16867854766769816385,
|
217 |
+
"",
|
218 |
+
json.load(open("__asset__/trajs/camera/painting-1.json")),
|
219 |
+
],
|
220 |
+
|
221 |
+
]
|
222 |
+
|
223 |
|
224 |
DREAM_BOOTH = {
|
225 |
'HelloObject': 'models/personalized/helloobjects_V12c.safetensors',
|
|
|
624 |
# def process_example(input_image, prompt, drag_mode, seed, personalized, tracking_points, first_frame_path):
|
625 |
|
626 |
# return input_image, prompt, drag_mode, seed, personalized, tracking_points, first_frame_path
|
627 |
+
def process_example(input_image, prompt, drag_mode, seed, personalized, tracking_points):
|
628 |
return input_image, prompt, drag_mode, seed, personalized
|
629 |
|
630 |
# example = gr.Examples(
|
|
|
641 |
example = gr.Examples(
|
642 |
label="Input Example",
|
643 |
examples=image_examples,
|
644 |
+
inputs=[input_image, prompt, drag_mode, seed, personalized, tracking_points],
|
645 |
outputs=[input_image, prompt, drag_mode, seed, personalized],
|
646 |
fn=process_example,
|
647 |
run_on_click=True,
|