Kgshop commited on
Commit
9549cb0
·
verified ·
1 Parent(s): f4340b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -1034,7 +1034,7 @@ select option {
1034
  <option value="cinematic lighting">Кинематографичный</option>
1035
  </select>
1036
  </div>
1037
- <div class="form-group full-width">
1038
  <label>Локация</label>
1039
  <div id="childLocationSelector" class="style-grid">
1040
  <button type="button" class="style-btn active" data-value="in a clean white seamless studio background">Студия (белый фон)</button>
@@ -1139,7 +1139,6 @@ const bodyTypes = {
1139
  Woman: {
1140
  'Fit and slim': 'Стройное/Подтянутое',
1141
  'Curvy': 'Пышное (Curvy)',
1142
- 'slim body with large breasts and a curvy, toned butt': 'Стройная с формами',
1143
  'Athletic': 'Спортивное',
1144
  'Skinny model look': 'Модельная худоба',
1145
  'Hourglass figure': 'Песочные часы',
@@ -1267,17 +1266,18 @@ async function processAndOpen() {
1267
  if (generateDetailsCollage) {
1268
  fullPrompt = `${envKeyword}, style:: A professional fashion lookbook page, ${style}, hyper-realistic photography, clean and minimalist layout with a lot of negative space.
1269
  composition:: The final image is a collage. The main image occupies the top 70% of the canvas, it must be a ${shotType}. Below the main image are three smaller, perfectly square detail shots arranged in a neat horizontal row. A clean white background separates all images.
1270
- main_image_description:: A ${shotType} of a striking ${age} ${nationality} ${gender} high fashion model. Model characteristics: physique ${bodyType}, ${hairColor} ${hairstyle}, expression ${emotion}, pose ${pose}. The model is wearing ${details}. The environment is ${location}. The lighting is ${light}.
1271
- detail_shot_1_description:: A hyper-detailed macro photograph focusing on the raw texture of the fabric from the clothing.
1272
- detail_shot_2_description:: An extreme close-up of a key hardware detail, such as an intricate button, a metallic zipper, or a unique buckle.
1273
- detail_shot_3_description:: A close-up shot showcasing the quality of the craftsmanship, focusing on the stitching and seams of the garment.
 
1274
  technical:: Each individual image in this collage is an 8k UHD masterpiece, shot on ${camera}, with perfect ${light}, and razor-sharp focus. The entire composition must look like a real, high-end page from a luxury brand's official website or catalog.`;
1275
 
1276
  } else if (isMyModel) {
1277
  const myModelDetails = document.getElementById('model_details').value || "the clothing from the reference image";
1278
  fullPrompt = `${envKeyword}, VIRTUAL TRY-ON.
1279
  INSTRUCTIONS: This is a virtual try-on task. Use the model's photo for identity, face, and pose. Use the garment photo for the clothing.
1280
- Task: Accurately transfer the clothing onto the model. The final image must preserve the model's exact facial identity, body shape of "${bodyType}", and pose. The final shot must be a ${shotType}.
1281
  Style: ${style}, hyper-detailed, luxury brand campaign, Vogue aesthetic, ultra-photorealistic.
1282
  Composition: ${shotType}, ensure the entire body from head to toe is visible if the plan is full body.
1283
  Final Scene: Place the model in the following environment: ${location}.
@@ -1288,8 +1288,8 @@ Technical: Masterpiece professional photograph, shot on ${camera}, 8k UHD, razor
1288
  composition:: ${shotType}. If the shot type is 'Full body shot', the image must clearly show the model from head to toe without any part of the body being cropped.
1289
  subject:: An ultra-high-resolution, flawless photograph of a striking ${age} ${nationality} ${gender} high fashion model.
1290
  model_characteristics:: physique ${bodyType}, ${hairColor} ${hairstyle} with individual strands visible and natural flyaways, expression ${emotion} (powerful yet serene), pose ${pose}.
1291
- clothing_focus:: The model is wearing ${details}, emphasizing haute couture craftsmanship.
1292
- texture_&_material_fidelity:: Extreme macro precision on textiles. Render the fabric weave, individual threads, visible stitching, material weight, realistic creases and folds, tactile surface imperfections like denim twill or wool fibers, and how light interacts with the fabric.
1293
  human_realism_details:: Capture hyper-realistic skin texture, showing pores, vellus hair, and subtle imperfections. Avoid any plastic or airbrushed look. Expertly sculpted light highlights the bone structure. Eyes must have realistic reflections and depth.
1294
  scene_environment:: ${location}, creating a sophisticated and aspirational atmosphere.
1295
  technical:: Masterpiece professional photograph, ${light} meticulously crafted to sculpt the subject with soft shadows and catchlights in eyes, shot on ${camera}, 8k UHD, razor-sharp focus, breathtaking detail, uncompressed, color graded to perfection.`;
@@ -1326,9 +1326,9 @@ technical:: Masterpiece professional photograph, ${light} meticulously crafted t
1326
  fullPrompt = `${envKeyword}, style:: ${style}, luxury children's fashion campaign, cinematic storytelling, enchanting, ultra-photorealistic.
1327
  composition:: ${shotType}. If 'Full body shot' is selected, the final image must show the child from head to toe, without cropping feet or head.
1328
  subject:: ${subject} The photograph must look like a cover shot for a high-end children's fashion magazine.
1329
- clothing_focus:: The child is wearing ${clothing_details}, presented as a luxury garment.
1330
- texture_&_material_fidelity:: Macro-level detail on clothing textures. Focus on the weave of cotton, the softness of wool fibers, the texture of denim. Show realistic wrinkles, creases from movement, and even subtle fabric pilling. Absolute texture fidelity is crucial.
1331
- human_realism_details:: Capture the pure, innocent beauty of the child. Hyper-realistic, dewy skin with a natural glow and visible texture, not airbrushed. The light should have a painterly, almost magical quality, highlighting their features beautifully. Eyes must be expressive, with realistic reflections and depth. Individual hair strands should be visible.
1332
  scene_activity:: ${pose_info} The location is ${location}, creating a whimsical and high-end narrative.
1333
  technical:: Masterpiece photograph, ${light} creating a magical and soft atmosphere, shot on Fujifilm XT4, 56mm F1.2 lens, 8k, tack sharp focus, impeccable detail, perfect color grading, looks like a real captured moment of wonder from a luxury campaign.`;
1334
 
@@ -1350,7 +1350,7 @@ technical:: Masterpiece photograph, ${light} creating a magical and soft atmosph
1350
  fullPrompt = `${envKeyword}, style:: Luxury product advertising, ${objectStyle}, sophisticated, sleek, ultra-photorealistic.
1351
  subject:: A breathtaking, hyper-realistic photograph of the luxury product: ${objectName}. The image must evoke desire and exclusivity, looking like a real, professionally shot advertisement.
1352
  material_focus:: Achieve 1000% physical accuracy with an emphasis on perfection. Render pristine, flawless surfaces with micro-scratches and realistic imperfections. Showcase the intricate details of the material grain, polished metal sheen with fingerprints, or crystal-clear refractions. Even microscopic dust particles should look clean and perfect.
1353
- scene_context:: Placed ${background}. Additional details: ${objectDetails}, arranged with artistic precision.
1354
  composition:: ${objectComposition}, creating a powerful and elegant visual statement.
1355
  technical:: Advertisement-grade photograph, ${objectLighting} designed to accentuate the product's luxury form and textures, 8k UHD resolution, flawless focus, extreme macro detail, advanced ray-traced reflections and caustics, impeccably clean, exudes quality and high-end appeal, masterpiece.`;
1356
  }
 
1034
  <option value="cinematic lighting">Кинематографичный</option>
1035
  </select>
1036
  </div>
1037
+ <div class="form-group full-width">
1038
  <label>Локация</label>
1039
  <div id="childLocationSelector" class="style-grid">
1040
  <button type="button" class="style-btn active" data-value="in a clean white seamless studio background">Студия (белый фон)</button>
 
1139
  Woman: {
1140
  'Fit and slim': 'Стройное/Подтянутое',
1141
  'Curvy': 'Пышное (Curvy)',
 
1142
  'Athletic': 'Спортивное',
1143
  'Skinny model look': 'Модельная худоба',
1144
  'Hourglass figure': 'Песочные часы',
 
1266
  if (generateDetailsCollage) {
1267
  fullPrompt = `${envKeyword}, style:: A professional fashion lookbook page, ${style}, hyper-realistic photography, clean and minimalist layout with a lot of negative space.
1268
  composition:: The final image is a collage. The main image occupies the top 70% of the canvas, it must be a ${shotType}. Below the main image are three smaller, perfectly square detail shots arranged in a neat horizontal row. A clean white background separates all images.
1269
+ main_image_description:: A ${shotType} of a striking ${age} ${nationality} ${gender} high fashion model. Model characteristics: physique ${bodyType}, ${hairColor} ${hairstyle}, expression ${emotion}, pose ${pose}. The model is wearing EXACTLY the following: ${details}. This description must be followed with 1000% fidelity.
1270
+ detail_shot_1_description:: A hyper-detailed macro photograph focusing on the raw texture of the fabric from the clothing described above.
1271
+ detail_shot_2_description:: An extreme close-up of a key hardware detail from the clothing, such as an intricate button, a metallic zipper, or a unique buckle.
1272
+ detail_shot_3_description:: A close-up shot showcasing the quality of the craftsmanship, focusing on the stitching and seams of the garment described above.
1273
+ environment_and_lighting:: The main image environment is ${location}. The lighting is ${light}.
1274
  technical:: Each individual image in this collage is an 8k UHD masterpiece, shot on ${camera}, with perfect ${light}, and razor-sharp focus. The entire composition must look like a real, high-end page from a luxury brand's official website or catalog.`;
1275
 
1276
  } else if (isMyModel) {
1277
  const myModelDetails = document.getElementById('model_details').value || "the clothing from the reference image";
1278
  fullPrompt = `${envKeyword}, VIRTUAL TRY-ON.
1279
  INSTRUCTIONS: This is a virtual try-on task. Use the model's photo for identity, face, and pose. Use the garment photo for the clothing.
1280
+ Task: Accurately transfer the clothing onto the model. The final image must preserve the model's exact facial identity, body shape of "${bodyType}", and pose. The clothing details must be rendered with 1000% fidelity based on this description: ${myModelDetails}.
1281
  Style: ${style}, hyper-detailed, luxury brand campaign, Vogue aesthetic, ultra-photorealistic.
1282
  Composition: ${shotType}, ensure the entire body from head to toe is visible if the plan is full body.
1283
  Final Scene: Place the model in the following environment: ${location}.
 
1288
  composition:: ${shotType}. If the shot type is 'Full body shot', the image must clearly show the model from head to toe without any part of the body being cropped.
1289
  subject:: An ultra-high-resolution, flawless photograph of a striking ${age} ${nationality} ${gender} high fashion model.
1290
  model_characteristics:: physique ${bodyType}, ${hairColor} ${hairstyle} with individual strands visible and natural flyaways, expression ${emotion} (powerful yet serene), pose ${pose}.
1291
+ clothing_focus:: HIGHEST PRIORITY - The model is wearing EXACTLY: ${details}. This description is absolute and must be followed with 1000% accuracy, overriding any other assumptions. Physical accuracy of the described items is critical.
1292
+ texture_&_material_fidelity:: Extreme macro precision on textiles. Render the fabric weave, individual threads, visible stitching, material weight, realistic creases and folds, tactile surface imperfections like denim twill or wool fibers, and how light interacts with the fabric as described in the clothing focus.
1293
  human_realism_details:: Capture hyper-realistic skin texture, showing pores, vellus hair, and subtle imperfections. Avoid any plastic or airbrushed look. Expertly sculpted light highlights the bone structure. Eyes must have realistic reflections and depth.
1294
  scene_environment:: ${location}, creating a sophisticated and aspirational atmosphere.
1295
  technical:: Masterpiece professional photograph, ${light} meticulously crafted to sculpt the subject with soft shadows and catchlights in eyes, shot on ${camera}, 8k UHD, razor-sharp focus, breathtaking detail, uncompressed, color graded to perfection.`;
 
1326
  fullPrompt = `${envKeyword}, style:: ${style}, luxury children's fashion campaign, cinematic storytelling, enchanting, ultra-photorealistic.
1327
  composition:: ${shotType}. If 'Full body shot' is selected, the final image must show the child from head to toe, without cropping feet or head.
1328
  subject:: ${subject} The photograph must look like a cover shot for a high-end children's fashion magazine.
1329
+ clothing_focus:: CRITICAL INSTRUCTION - The child is wearing EXACTLY: ${clothing_details}. This description must be rendered with 1000% fidelity. For example, if 'anti-scratch mittens' are mentioned, the hands MUST be covered. If 'open-toed sandals' are mentioned, the toes MUST be visible. This is the most important instruction.
1330
+ texture_&_material_fidelity:: Macro-level detail on clothing textures as described above. Focus on the weave of cotton, the softness of wool fibers, the texture of denim. Show realistic wrinkles and creases from movement. Absolute texture fidelity to the description is crucial.
1331
+ human_realism_details:: Capture the pure, innocent beauty of the child. Hyper-realistic, dewy skin with a natural glow and visible texture, not airbrushed. The light should have a painterly, almost magical quality. Eyes must be expressive, with realistic reflections and depth. Individual hair strands should be visible.
1332
  scene_activity:: ${pose_info} The location is ${location}, creating a whimsical and high-end narrative.
1333
  technical:: Masterpiece photograph, ${light} creating a magical and soft atmosphere, shot on Fujifilm XT4, 56mm F1.2 lens, 8k, tack sharp focus, impeccable detail, perfect color grading, looks like a real captured moment of wonder from a luxury campaign.`;
1334
 
 
1350
  fullPrompt = `${envKeyword}, style:: Luxury product advertising, ${objectStyle}, sophisticated, sleek, ultra-photorealistic.
1351
  subject:: A breathtaking, hyper-realistic photograph of the luxury product: ${objectName}. The image must evoke desire and exclusivity, looking like a real, professionally shot advertisement.
1352
  material_focus:: Achieve 1000% physical accuracy with an emphasis on perfection. Render pristine, flawless surfaces with micro-scratches and realistic imperfections. Showcase the intricate details of the material grain, polished metal sheen with fingerprints, or crystal-clear refractions. Even microscopic dust particles should look clean and perfect.
1353
+ scene_context:: Placed ${background}. Additional details: It is MANDATORY to include the following details with perfect realism: ${objectDetails}. This description has the highest priority.
1354
  composition:: ${objectComposition}, creating a powerful and elegant visual statement.
1355
  technical:: Advertisement-grade photograph, ${objectLighting} designed to accentuate the product's luxury form and textures, 8k UHD resolution, flawless focus, extreme macro detail, advanced ray-traced reflections and caustics, impeccably clean, exudes quality and high-end appeal, masterpiece.`;
1356
  }