Yw22 commited on
Commit
4a6d7a7
·
1 Parent(s): 47fa912
Files changed (1) hide show
  1. app.py +50 -44
app.py CHANGED
@@ -110,6 +110,52 @@ 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.",
@@ -168,46 +214,6 @@ 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
-
178
- ["__asset__/images/object/rose-1.jpg",
179
- "a red rose engulfed in flames.",
180
- "object",
181
- 6854275249656120509,
182
- ],
183
-
184
- ["__asset__/images/object/jellyfish-1.jpg",
185
- "intricate detailing,photorealism,hyperrealistic, glowing jellyfish mushroom, flying, starry sky, bokeh, golden ratio composition.",
186
- "object",
187
- 17966188172968903484,
188
- ],
189
-
190
-
191
- ["__asset__/images/camera/lush-1.jpg",
192
- "detailed craftsmanship, photorealism, hyperrealistic, roaring waterfall, misty spray, lush greenery, vibrant rainbow, golden ratio composition.",
193
- "camera",
194
- 7970487946960948963,
195
- ],
196
-
197
- ["__asset__/images/camera/tusun-1.jpg",
198
- "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.",
199
- "camera",
200
- 996953226890228361,
201
- ],
202
-
203
- ["__asset__/images/camera/painting-1.jpg",
204
- "A oil painting.",
205
- "camera",
206
- 16867854766769816385,
207
- ],
208
-
209
- ]
210
-
211
 
212
  DREAM_BOOTH = {
213
  'HelloObject': 'models/personalized/helloobjects_V12c.safetensors',
@@ -612,8 +618,8 @@ with block as demo:
612
  # def process_example(input_image, prompt, drag_mode, seed, personalized, tracking_points, first_frame_path):
613
 
614
  # return input_image, prompt, drag_mode, seed, personalized, tracking_points, first_frame_path
615
- def process_example(input_image, prompt, drag_mode, seed):
616
- return input_image, prompt, drag_mode, seed
617
 
618
  # example = gr.Examples(
619
  # label="Input Example",
@@ -629,8 +635,8 @@ with block as demo:
629
  example = gr.Examples(
630
  label="Input Example",
631
  examples=image_examples,
632
- inputs=[input_image, prompt, drag_mode, seed],
633
- outputs=[input_image, prompt, drag_mode, seed],
634
  fn=process_example,
635
  run_on_click=True,
636
  examples_per_page=20,
 
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
 
215
  # ]
216
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
217
 
218
  DREAM_BOOTH = {
219
  'HelloObject': 'models/personalized/helloobjects_V12c.safetensors',
 
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(
625
  # label="Input Example",
 
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,
642
  examples_per_page=20,