diff --git "a/app.py" "b/app.py" --- "a/app.py" +++ "b/app.py" @@ -45,6 +45,7 @@ def setup_initial_files(): 2. **HUMAN SYNTHESIS (ULTRA-REALISM):** Generate a hyper-realistic human model matching the exact parameters. Synthesize lifelike skin with visible pores, subtle imperfections, micro-blemishes, fine hairs (peach fuzz), and realistic micro-textures with natural variations in skin tone. ABSOLUTELY NO AI SMOOTHING, NO WAXY OR GLASS-LIKE TEXTURES. Avoid any hint of digital smoothness or "airbrushed" look. Eyes must possess photorealistic caustics in the iris, with depth, detailed structures, specular highlights, and natural, convincing reflections of the environment in the cornea. The facial expression and gaze must be authentic, with convincing micro-expressions. 3. **ZERO DEVIATION PROTOCOL:** Absolutely no artistic interpretation, AI-hallucinated embellishments, or "improvements." Preserve logo placement, garment cut, and material finish with absolute fidelity. Absolutely no waxy skin, plastic-like textures, or overly perfect symmetry. The image must possess the subtle imperfections and asymmetries of reality. 4. **CONTEXTUAL SAFEGUARD:** The model must be fully and appropriately clothed for a professional, high-fashion commercial photoshoot. +5. **ANATOMICAL & AESTHETIC PERFECTION:** Flawless human anatomy, perfect body proportions, physically accurate limbs, flawless hands and feet. Absolutely no extra limbs, no mutations, no twisted bodies, and no deformed features. The image must radiate extreme beauty, breathtaking aesthetics, and high-end commercial appeal. **BODY TYPE DIRECTIVES (Execute with precision):** - 'very_slim': Elite high-fashion runway physique, slender and defined. - 'slim_busty': Slender frame with a pronounced, natural, and well-proportioned bust. @@ -56,17 +57,20 @@ def setup_initial_files(): 2. **GARMENT TRANSPLANTATION (ABSOLUTE FIDELITY):** From the user-provided CLOTHING image, optically extract every thread, fiber, stitch, and texture. Transplant this garment onto the cloned model with perfect realism, as if shot on a Phase One XF medium format camera. **The clothing's fit, cut, and silhouette must be preserved with absolute fidelity, conforming to the model's body with physically accurate drape and fit, exactly as designed.** 3. **ZERO DEVIATION PROTOCOL:** Prohibit all AI hallucinations or artistic modifications. Preserve logos, specific cuts, and material finishes exactly as they appear in the source image. Absolutely no waxy skin, glass-like skin, plastic-like textures, or overly perfect symmetry. 4. **CONTEXTUAL SAFEGUARD:** The final output must be a professional portrait of a fully and appropriately dressed individual, suitable for a high-end commercial photoshoot. +5. **ANATOMICAL & AESTHETIC PERFECTION:** Flawless human anatomy, perfect body proportions, physically accurate limbs, flawless hands and feet. Absolutely no extra limbs, no mutations, no twisted bodies, and no deformed features. The image must radiate extreme beauty and high-end commercial appeal. - **ATMOSPHERE:** Professional, Cinematic, Hyper-Realistic, shot on high-end photographic equipment.""", "object_base": """**MANDATORY: RAW UNEDITED MASTERPIECE 16K HYPER-PHOTOREALISTIC IMAGE. NO TEXT. ABSOLUTELY NO CGI RENDER LOOK, NO PLASTIC AI LOOK.** **CORE DIRECTIVE: YOU ARE AN ELITE COMMERCIAL PRODUCT REPLICATION & VISUALIZATION ENGINE.** 1. **PRODUCT IDENTIFICATION & DIGITAL TWINNING (ABSOLUTE FIDELITY):** From the uploaded product image, first, flawlessly identify the object. Second, execute a perfect digital twin replication, as if shot for a global advertising campaign. Every dimension, proportion, curve, texture (e.g., matte, gloss, brushed metal, woven fabric), and color gamut must be rendered with absolute, indistinguishable accuracy. The final image must be superior to a professional, multi-thousand-dollar studio photograph. 2. **AESTHETIC & LIGHTING MASTERY:** Render the product with sophisticated, multi-point studio lighting designed to be both hyper-realistic and aesthetically stunning. Employ key, fill, and rim lights to create dramatic, shape-defining highlights and soft, realistic shadows that accentuate its material qualities and three-dimensional form, making it look incredibly desirable. -3. **ZERO DEVIATION PROTOCOL:** Do not add, remove, or alter any logos, design elements, proportions, or features from the source object. The replication must be perfect. Avoid any plastic-like textures or digital artifacts. Materials must look 100% tangible, physical, and real.""", +3. **ZERO DEVIATION PROTOCOL:** Do not add, remove, or alter any logos, design elements, proportions, or features from the source object. The replication must be perfect. Avoid any plastic-like textures or digital artifacts. Materials must look 100% tangible, physical, and real. +4. **STRUCTURAL & ANATOMICAL PERFECTION:** The object must be 100% physically accurate and perfectly dimensioned without structural warping. If a human model is present, ensure flawless human anatomy, perfectly proportioned limbs, flawless hands, and absolutely zero mutations or extra limbs.""", "children_base": """**MANDATORY: RAW UNEDITED MASTERPIECE 16K HYPER-PHOTOREALISTIC IMAGE. NO TEXT. ABSOLUTELY NO AI SMOOTHING, NO PLASTIC DOLL LOOK.** **CORE DIRECTIVE: CHILDREN'S HAUTE COUTURE PHOTOGRAPHY ENGINE.** 1. **AUTHENTICITY & SAFETY:** The child model must appear natural, joyful, and engaged in an age-appropriate scenario. The mood is consistently positive, innocent, and filled with genuine wonder. Generate a hyper-realistic child with natural skin textures, including subtle flushes, freckles, and imperfections. Expressions must be genuine (e.g., spontaneous laughter, intense curiosity, soft smiles), avoiding any artificial, overly smoothed, or doll-like appearances. The gaze must be natural and full of life. ABSOLUTELY NO GLASS-LIKE SKIN. 2. **GARMENT REPLICATION (ABSOLUTE FIDELITY):** Clone the uploaded garment with extreme precision, as if shot on a Phase One XF medium format camera. Every stitch, fabric texture (e.g., soft cashmere, chunky knit, smooth pima cotton), pattern detail, and color must be perfectly replicated onto the child model. **The clothing's fit, cut, and silhouette must be preserved with absolute fidelity, moving realistically with the child.** 3. **ZERO DEVIATION PROTOCOL:** Do not add logos, alter colors, or modify the garment's design. No AI-generated embellishments are permitted. Absolutely no waxy skin or overly perfect features. +4. **ANATOMICAL & AESTHETIC PERFECTION:** Flawless human anatomy, perfect body proportions, physically accurate limbs, flawless hands and feet. Absolutely no extra limbs, no mutations, no twisted bodies, and no deformed features. The image must radiate extreme beauty and high-end commercial appeal. **AGE GROUP DIRECTIVES (Apply with nuance and authenticity):** - 'infant (6-12 months)': Emphasize comfort, softness, and security. Poses are natural for this age: sitting, crawling, or gentle, supported positions. - 'toddler (2-4 years)': Capture boundless energy and playful discovery. Poses are dynamic and action-oriented (e.g., running, playing with minimalist wooden toys, exploring a safe environment). @@ -78,12 +82,8 @@ def setup_initial_files(): 1. **PRODUCT IDENTIFICATION & REPLICATION (ABSOLUTE FIDELITY):** Accurately identify the uploaded cosmetic product. Replicate the physical product, its packaging, and precisely its internal contents (color, texture, finish - e.g., glossy, matte, shimmering) with flawless perfection, capturing micro-textures of the product itself. 2. **MODEL SYNTHESIS & PRODUCT APPLICATION:** Generate a hyper-realistic human model. Synthesize lifelike skin with visible pores, subtle imperfections, and realistic micro-textures. Crucially, the cosmetic product MUST be applied flawlessly to the model's face or body (e.g., lipstick on lips, eyeshadow on eyes, foundation on skin), demonstrating the exact shade, texture, and finish of the real product. The model must also elegantly hold the product. ABSOLUTELY NO WAXY, PLASTIC, OR GLASS-LIKE SKIN TEXTURES. 3. **ZERO DEVIATION PROTOCOL:** Absolutely no artistic interpretation of the product's color or texture. The applied makeup must be a 1:1 match to the product inside the packaging. No waxy skin. -4. **STUDIO LIGHTING MASTERY:** High-end beauty lighting. Soft, diffused, yet shape-defining highlights to accentuate the skin texture and the cosmetic product's finish without creating a fake glossy CGI effect.""", - "furniture_base": """**MANDATORY: RAW UNEDITED MASTERPIECE 16K HYPER-PHOTOREALISTIC IMAGE. NO TEXT. ABSOLUTELY NO CGI RENDER LOOK, NO PLASTIC AI LOOK.** -**CORE DIRECTIVE: YOU ARE AN ELITE INTERIOR & FURNITURE VISUALIZATION ENGINE.** -1. **FURNITURE IDENTIFICATION & DIGITAL TWINNING (ABSOLUTE FIDELITY):** From the uploaded furniture/interior image, flawlessly identify the main piece. Execute a perfect digital twin replication, as if shot for a high-end architectural digest or luxury furniture catalog. Every dimension, proportion, material texture (wood grain, leather pores, fabric weave, metal brushed finish), and color gamut must be rendered with absolute, indistinguishable accuracy. -2. **ENVIRONMENT & LIGHTING MASTERY:** Integrate the furniture into the requested style perfectly. Use physically accurate global illumination, ray-traced reflections, and realistic shadows. The lighting should emphasize the texture, volume, and premium quality of the furniture. -3. **ZERO DEVIATION PROTOCOL:** Do not alter the fundamental design, proportions, or distinct materials of the source furniture piece. The replication must be photorealistic and perfectly to scale within its environment.""", +4. **STUDIO LIGHTING MASTERY:** High-end beauty lighting. Soft, diffused, yet shape-defining highlights to accentuate the skin texture and the cosmetic product's finish without creating a fake glossy CGI effect. +5. **ANATOMICAL & AESTHETIC PERFECTION:** Flawless human anatomy, perfect body proportions, physically accurate limbs, flawless hands. Absolutely no extra limbs, no mutations, no twisted bodies, and no deformed features. The image must radiate extreme beauty, breathtaking aesthetics, and high-end commercial appeal.""", "marketplace_mode_base": """\n\n**COMPOSITION DIRECTIVE (MARKETPLACE HERO-SHOT MODE):** YOU ARE A WORLD-CLASS E-COMMERCE ART DIRECTOR. The primary goal is to create a visually arresting "hero image" for a product listing that maximizes click-through rates. The main subject must be perfectly rendered and visually dominant. - **Dynamic Background & Effects:** The background is clean and non-distracting but enhanced with sophisticated, context-aware special effects. **MANDATORY: NO TEXT OR GRAPHICAL ICONS/LOGOS.** - **If the product is clothing/wearable:** Generate elegant swirls of fabric, subtle particle effects, or abstract light patterns that complement the garment's color and material. @@ -156,19 +156,6 @@ def setup_initial_files(): "volcanic_ash_desert": "The product is presented on a piece of dramatic, jet-black volcanic rock on a black sand beach. The background is a soft-focus view of misty, crashing ocean waves. Moody, diffused light creates sophisticated reflections on the product's surface, emphasizing its premium quality and resilience.", "salt_flats_mirage": "The product rests on the stark, white, crystalline surface of a salt flat. A long, sharp shadow is cast by the intense sun. The background is a minimalist, out-of-focus horizon where the white ground meets a deep blue sky, creating a visually clean and high-impact composition.", "highlands_majesty": "The product is placed on an ancient, mossy stone, with the misty, rolling hills of the Scottish Highlands blurred in the background. The lighting is soft and natural, with realistic water droplets clinging to the product's surface, evoking a sense of enduring, natural luxury." - }, - "furniture_styles": { - "scandinavian_minimalism": "Bright, airy Scandinavian minimalism. White walls, natural light wood (oak, ash), clean lines, and a focus on functional beauty. Soft, diffused natural light from large windows.", - "mid_century_modern": "Iconic Mid-Century Modern interior. Warm walnut woods, muted earthy tones (mustard, olive, burnt orange), and organic shapes. Retro-chic lighting and a stylish, lived-in atmosphere.", - "industrial_loft": "Raw, edgy industrial loft setting. Exposed red brick walls, large steel-framed windows, concrete floors, and visible piping. Dramatic, contrasty natural light.", - "bohemian_chic": "Lush, eclectic Bohemian chic room. Rich textures, layered Moroccan rugs, abundant indoor plants, macrame, and warm, earthy colors. Golden hour sunlight streaming in.", - "luxury_art_deco": "Opulent Art Deco interior. Geometric patterns, rich jewel tones (emerald, sapphire), brass and gold accents, luxurious velvet, and polished marble. Sophisticated, moody studio lighting.", - "wabi_sabi": "Tranquil Wabi-Sabi aesthetic. Emphasizing the beauty of imperfection. Textured plaster walls, raw stone, weathered wood, and muted, natural, organic colors. Soft, directional, contemplative light.", - "cyberpunk_neon": "Futuristic Cyberpunk apartment interior. Dark, sleek surfaces illuminated by vibrant neon lights (magenta, cyan, electric blue). High-tech elements integrated into the decor.", - "surreal_dreamscape": "Avant-garde, surreal dreamscape interior. Impossible architecture, floating elements, or a furniture piece placed in an unexpected, dreamlike environment (e.g., a bed in a shallow, perfectly still pool of water reflecting the sky). Ethereal lighting.", - "cozy_cabin": "Warm, rustic winter cabin interior. Log walls, a roaring stone fireplace, thick knit blankets, and animal skin rugs. Warm, cozy firelight and soft ambient light.", - "classic_elegance": "Timeless classic European elegance. High ceilings, intricate crown molding, wainscoting, parquet floors, and antique accents. Bright, classical interior lighting.", - "modern_outdoor": "Luxurious modern outdoor patio or terrace. High-end weatherproof materials, sleek lines, infinity pool in the background, surrounded by manicured landscaping. Bright, sunny, resort-style lighting." } } with open(PROMPTS_FILE, 'w', encoding='utf-8') as f: @@ -849,17 +836,16 @@ p.subtitle { .mode-selector { display: grid; - grid-template-columns: repeat(5, 1fr); + grid-template-columns: repeat(4, 1fr); margin-bottom: 35px; background-color: var(--input-bg); border-radius: 12px; padding: 6px; border: 1px solid var(--border); - gap: 4px; } .mode-btn { - padding: 14px 8px; + padding: 14px 10px; background-color: transparent; border: none; color: var(--text-secondary); @@ -1208,15 +1194,12 @@ textarea { h1 { font-size: 2rem; } .form-grid { grid-template-columns: 1fr; gap: 20px; } .full-width { grid-column: span 1; } - .mode-selector { grid-template-columns: repeat(3, 1fr); gap: 5px; } + .mode-selector { grid-template-columns: repeat(2, 1fr); gap: 5px; } .mode-btn { font-size: 0.75rem; padding: 12px 5px; } .style-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); } .top-toggles { flex-direction: column; gap: 15px; } .celebrity-grid { grid-template-columns: 1fr; grid-column: span 1; gap: 20px; } } -@media (max-width: 450px) { - .mode-selector { grid-template-columns: repeat(2, 1fr); } -} @@ -1237,7 +1220,6 @@ textarea { -
@@ -1396,6 +1378,7 @@ textarea { +
@@ -1600,6 +1583,7 @@ textarea { +
@@ -1615,7 +1599,7 @@ textarea { @@ -1707,6 +1691,10 @@ textarea {
+
+ + +
@@ -2130,226 +2119,6 @@ textarea { -
-
-

1 Параметры мебели

-
-
- - -
-
-
-
- - -
- -
- - - - - вы можете отметить этот параметр и пользоваться новым видом качества , в поле выбора качества в поиске напишите "27" и у вас выйдет wan 2.7 image pro - -
-
-
- -
-
- - -
-
- - -
-
- - -
-
-
-

2 Сцена и Стиль

-
-
-
-
- - -
-
-
-
- -
-
-
-
-
-

3 Композиция и Детали

-
-
- -
- - - - -
-
-
- - -
-
- -
-
- - -
-
- - -
-
- - -
-
-
- - -
- -
-
-
- - -
- -
-
-
-
-
-
-