Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -234,100 +234,52 @@ def create_demo():
|
|
234 |
with gr.Row(), gr.Column():
|
235 |
gr.Markdown("## Examples")
|
236 |
example_inps = [
|
|
|
237 |
[
|
238 |
-
'example_inputs/
|
239 |
-
|
240 |
-
'ip',
|
241 |
-
'ip',
|
242 |
-
'profile shot dark photo of a 25-year-old female with smoke escaping from her mouth, the backlit smoke gives the image an ephemeral quality, natural face, natural eyebrows, natural skin texture, award winning photo, highly detailed face, atmospheric lighting, film grain, monochrome', # noqa E501
|
243 |
-
9180879731249039735,
|
244 |
-
],
|
245 |
-
[
|
246 |
-
'example_inputs/man1.png',
|
247 |
-
None,
|
248 |
-
'ip',
|
249 |
-
'ip',
|
250 |
-
'a man sitting on the cloud, playing guitar',
|
251 |
-
1206523688721442817,
|
252 |
-
],
|
253 |
-
[
|
254 |
-
'example_inputs/toy1.png',
|
255 |
-
None,
|
256 |
-
'ip',
|
257 |
-
'ip',
|
258 |
-
'a purple toy holding a sign saying "DreamO", on the mountain',
|
259 |
-
10441727852953907380,
|
260 |
-
],
|
261 |
-
[
|
262 |
-
'example_inputs/perfume.png',
|
263 |
-
None,
|
264 |
-
'ip',
|
265 |
-
'ip',
|
266 |
-
'a perfume under spotlight',
|
267 |
-
116150031980664704,
|
268 |
-
],
|
269 |
-
[
|
270 |
-
'example_inputs/hinton.jpeg',
|
271 |
-
None,
|
272 |
-
'id',
|
273 |
-
'ip',
|
274 |
-
'portrait, Chibi',
|
275 |
-
5443415087540486371,
|
276 |
-
],
|
277 |
-
[
|
278 |
-
'example_inputs/mickey.png',
|
279 |
-
None,
|
280 |
-
'style',
|
281 |
-
'ip',
|
282 |
-
'generate a same style image. A rooster wearing overalls.',
|
283 |
-
6245580464677124951,
|
284 |
-
],
|
285 |
-
[
|
286 |
-
'example_inputs/mountain.png',
|
287 |
-
None,
|
288 |
-
'style',
|
289 |
-
'ip',
|
290 |
-
'generate a same style image. A pavilion by the river, and the distant mountains are endless',
|
291 |
-
5248066378927500767,
|
292 |
-
],
|
293 |
-
[
|
294 |
-
'example_inputs/shirt.png',
|
295 |
-
'example_inputs/skirt.jpeg',
|
296 |
-
'ip',
|
297 |
-
'ip',
|
298 |
-
'A girl is wearing a short-sleeved shirt and a short skirt on the beach.',
|
299 |
-
9514069256241143615,
|
300 |
-
],
|
301 |
-
[
|
302 |
-
'example_inputs/woman2.png',
|
303 |
-
'example_inputs/dress.png',
|
304 |
-
'id',
|
305 |
-
'ip',
|
306 |
-
'the woman wearing a dress, In the banquet hall',
|
307 |
-
7698454872441022867,
|
308 |
-
],
|
309 |
-
[
|
310 |
-
'example_inputs/dog1.png',
|
311 |
-
'example_inputs/dog2.png',
|
312 |
-
'ip',
|
313 |
-
'ip',
|
314 |
-
'two dogs in the jungle',
|
315 |
-
6187006025405083344,
|
316 |
-
],
|
317 |
-
[
|
318 |
-
'example_inputs/woman3.png',
|
319 |
-
'example_inputs/cat.png',
|
320 |
-
'ip',
|
321 |
-
'ip',
|
322 |
-
'A girl rides a giant cat, walking in the noisy modern city. High definition, realistic, non-cartoonish. Excellent photography work, 8k high definition.', # noqa E501
|
323 |
-
11980469406460273604,
|
324 |
-
],
|
325 |
-
[
|
326 |
-
'example_inputs/man2.jpeg',
|
327 |
-
'example_inputs/woman4.jpeg',
|
328 |
'ip',
|
329 |
'ip',
|
330 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
331 |
8303780338601106219,
|
332 |
],
|
333 |
]
|
|
|
234 |
with gr.Row(), gr.Column():
|
235 |
gr.Markdown("## Examples")
|
236 |
example_inps = [
|
237 |
+
|
238 |
[
|
239 |
+
'example_inputs/room.jpg',
|
240 |
+
'example_inputs/bed.jpg',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
241 |
'ip',
|
242 |
'ip',
|
243 |
+
'''
|
244 |
+
**Primary Goal:** Integrate the modern brown platform bed from [IMG_BED_REF] into the empty room scene depicted in [IMG_ROOM_REF]. The final composition should be photorealistic, with the bed appearing as a natural and central piece of furniture within the room.
|
245 |
+
|
246 |
+
**Scene Context ([IMG_ROOM_REF] - Image 1):**
|
247 |
+
The room in [IMG_ROOM_REF] is an empty space characterized by:
|
248 |
+
* **Walls:** Light blue painted walls.
|
249 |
+
* **Flooring:** Beige carpet, with visible sunlight patterns indicating strong light from the left.
|
250 |
+
* **Lighting:** Bright natural daylight streaming in from large sliding glass doors on the left, casting defined shadows across the floor.
|
251 |
+
* **Existing Elements:** Baseboard heaters along the walls, a doorway on the right-side wall.
|
252 |
+
* **Overall Ambiance:** Bright, airy, and unfurnished, with a clear light source direction.
|
253 |
+
|
254 |
+
**Subject to Integrate ([IMG_BED_REF] - Image 2):**
|
255 |
+
The bed in [IMG_BED_REF] is a:
|
256 |
+
* **Type:** Modern platform bed.
|
257 |
+
* **Style:** Minimalist with clean lines and a low, wide headboard.
|
258 |
+
* **Material & Color:** Brown frame (appears to be leather or faux leather). Bedding includes white sheets, beige and brown blankets/throws, and a textured grey round accent pillow.
|
259 |
+
* **Key Visual Features:** Low profile, integrated headboard sections.
|
260 |
+
|
261 |
+
**Integration Directives:**
|
262 |
+
1. **Placement:** Position the modern brown platform bed from [IMG_BED_REF] on the beige carpet in [IMG_ROOM_REF]. The headboard should be placed against the far wall (the wall directly opposite the large sliding glass doors). Center the bed along this wall, leaving some space on either side if appropriate for a bedroom layout.
|
263 |
+
2. **Lighting and Shadows:**
|
264 |
+
* The bed, especially the side facing the sliding glass doors (left side of the bed from a viewer's perspective facing the headboard), should be strongly illuminated by the natural daylight, consistent with the existing light patterns in [IMG_ROOM_REF].
|
265 |
+
* Render realistic, defined shadows cast by the bed onto the beige carpet. These shadows should extend towards the right and slightly towards the viewer, aligning with the direction of the existing sunlight and shadows in [IMG_ROOM_REF]. Pay attention to how light interacts with the different textures of the bed frame and bedding.
|
266 |
+
3. **Scale and Perspective:**
|
267 |
+
* Ensure the bed is scaled appropriately for a master or main bedroom, fitting naturally within the visible dimensions of the room in [IMG_ROOM_REF].
|
268 |
+
* The perspective of the inserted bed must align accurately with the camera angle and perspective of the room in [IMG_ROOM_REF].
|
269 |
+
4. **Color and Material Harmony:**
|
270 |
+
* The brown color of the bed frame and the colors of the bedding should appear natural and correctly lit under the bright daylight conditions of [IMG_ROOM_REF]. The highlights and shaded areas on the bed should reflect the strong directional lighting.
|
271 |
+
5. **Occlusion:** The bed should correctly occlude the portion of the far wall and the baseboard heater behind it.
|
272 |
+
6. **Details Preservation and Adaptation:** Preserve the defining characteristics of the bed and its bedding from [IMG_BED_REF], ensuring it convincingly integrates into the new empty room environment.
|
273 |
+
|
274 |
+
**Output Requirements:**
|
275 |
+
* High-fidelity, photorealistic image.
|
276 |
+
* Seamless and natural integration of the bed.
|
277 |
+
* Maintain the overall bright, sunlit style and mood of the room in [IMG_ROOM_REF] after the insertion.
|
278 |
+
|
279 |
+
**Reference Image Mapping (for system processing):**
|
280 |
+
* [IMG_ROOM_REF]: Corresponds to the input image of the empty room (image 1).
|
281 |
+
* [IMG_BED_REF]: Corresponds to the input image of the bed (image 2)
|
282 |
+
''',
|
283 |
8303780338601106219,
|
284 |
],
|
285 |
]
|