Spaces:
Running
on
Zero
Running
on
Zero
envs
Browse files
app.py
CHANGED
@@ -168,65 +168,13 @@ os.system(f'mv models/personalized/TUSUN.safetensors?download=true models/person
|
|
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 |
image_examples = [
|
224 |
["__asset__/images/object/turtle-1.jpg",
|
225 |
"a sea turtle gracefully swimming over a coral reef in the clear blue ocean.",
|
226 |
"object",
|
227 |
11318446767408804497,
|
228 |
"",
|
229 |
-
"__asset__/
|
230 |
],
|
231 |
|
232 |
["__asset__/images/object/rose-1.jpg",
|
@@ -235,7 +183,6 @@ image_examples = [
|
|
235 |
6854275249656120509,
|
236 |
"",
|
237 |
json.load(open("__asset__/trajs/object/rose-1.json")),
|
238 |
-
"__asset__/images/object/rose-1.jpg",
|
239 |
],
|
240 |
|
241 |
["__asset__/images/object/jellyfish-1.jpg",
|
@@ -243,7 +190,7 @@ image_examples = [
|
|
243 |
"object",
|
244 |
17966188172968903484,
|
245 |
"HelloObject",
|
246 |
-
"__asset__/
|
247 |
],
|
248 |
|
249 |
|
@@ -252,7 +199,7 @@ image_examples = [
|
|
252 |
"camera",
|
253 |
7970487946960948963,
|
254 |
"HelloObject",
|
255 |
-
"__asset__/
|
256 |
],
|
257 |
|
258 |
["__asset__/images/camera/tusun-1.jpg",
|
@@ -260,7 +207,7 @@ image_examples = [
|
|
260 |
"camera",
|
261 |
996953226890228361,
|
262 |
"TUSUN",
|
263 |
-
"__asset__/
|
264 |
],
|
265 |
|
266 |
["__asset__/images/camera/painting-1.jpg",
|
@@ -268,10 +215,12 @@ image_examples = [
|
|
268 |
"camera",
|
269 |
16867854766769816385,
|
270 |
"",
|
271 |
-
"__asset__/
|
272 |
],
|
273 |
|
274 |
]
|
|
|
|
|
275 |
DREAM_BOOTH = {
|
276 |
'HelloObject': 'models/personalized/helloobjects_V12c.safetensors',
|
277 |
}
|
@@ -600,7 +549,7 @@ with block as demo:
|
|
600 |
model_length=16
|
601 |
)
|
602 |
first_frame_path = gr.State()
|
603 |
-
tracking_points = gr.State([])
|
604 |
|
605 |
|
606 |
with gr.Row():
|
|
|
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",
|
|
|
183 |
6854275249656120509,
|
184 |
"",
|
185 |
json.load(open("__asset__/trajs/object/rose-1.json")),
|
|
|
186 |
],
|
187 |
|
188 |
["__asset__/images/object/jellyfish-1.jpg",
|
|
|
190 |
"object",
|
191 |
17966188172968903484,
|
192 |
"HelloObject",
|
193 |
+
json.load(open("__asset__/trajs/object/jellyfish-1.json")),
|
194 |
],
|
195 |
|
196 |
|
|
|
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",
|
|
|
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",
|
|
|
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',
|
226 |
}
|
|
|
549 |
model_length=16
|
550 |
)
|
551 |
first_frame_path = gr.State()
|
552 |
+
tracking_points = gr.State([], label="points")
|
553 |
|
554 |
|
555 |
with gr.Row():
|