{
  "status": "generated",
  "stage": "person_mask",
  "purpose": "Person mask for Qwen Image Edit compositing or inpainting",
  "models": {
    "detector": "IDEA-Research/grounding-dino-tiny",
    "segmenter": "facebook/sam2.1-hiera-small",
    "licenses": {
      "detector": "Apache-2.0",
      "segmenter": "Apache-2.0"
    }
  },
  "input": {
    "path": "/home/cbsim/ws/AiBook/docs/assets/part-07/chapter-05/sec-04/p7-5-4-qwen-2511-lineart-scene-c-extras-audit-20260909-v1-size-1280x1280-seed-5422-steps-20.png",
    "sha256": "6ca3fab7acb3e90a234db769adf513a46b0a71d5d8ec4e34aa8edd610d75bf0e"
  },
  "input_role": "scene; one selected visible character",
  "selection": {
    "target_point_xy": [
      360.0,
      430.0
    ],
    "negative_points_xy": [
      [
        740.0,
        480.0
      ],
      [
        270.0,
        1000.0
      ],
      [
        620.0,
        735.0
      ],
      [
        832.0,
        790.0
      ],
      [
        715.0,
        820.0
      ],
      [
        500.0,
        735.0
      ]
    ],
    "positive_points_xy": [
      [
        300.0,
        650.0
      ],
      [
        600.0,
        950.0
      ],
      [
        800.0,
        1180.0
      ],
      [
        900.0,
        1170.0
      ],
      [
        790.0,
        1090.0
      ],
      [
        390.0,
        510.0
      ],
      [
        200.0,
        925.0
      ],
      [
        560.0,
        800.0
      ]
    ],
    "box_override_xyxy": [
      145.0,
      240.0,
      995.0,
      1260.0
    ],
    "method": "highest score containing target point",
    "candidates": [
      {
        "index": 0,
        "label": "a woman",
        "score": 0.8085466027259827,
        "box_xyxy": [
          151.8638916015625,
          239.33815002441406,
          993.8380126953125,
          1258.4656982421875
        ]
      },
      {
        "index": 1,
        "label": "a woman",
        "score": 0.47793248295783997,
        "box_xyxy": [
          465.58905029296875,
          383.0517578125,
          1086.91455078125,
          1162.01025390625
        ]
      }
    ]
  },
  "grounding_prompt": [
    "a woman"
  ],
  "selected_detection": {
    "label": "a woman",
    "score": 0.8085,
    "box_xyxy": [
      151.86,
      239.34,
      993.84,
      1258.47
    ]
  },
  "segmentation_box_xyxy": [
    145.0,
    240.0,
    995.0,
    1260.0
  ],
  "mask_semantics": "white=person to repaint; black=preserve",
  "postprocess": {
    "excluded_rectangles_xyxy": [],
    "keep_largest_component": false,
    "keep_prompt_components": true,
    "fill_holes_max_area": 2048,
    "excluded_polygons_xy": []
  },
  "output": {
    "path": "/home/cbsim/ws/AiBook/docs/assets/part-07/chapter-05/sec-05/p7-5-5-sam2-person-mask-scene-c-mira-audit-20260909-v6.png",
    "sha256": "4fb7b14ba54b3eb6a197734e661d0412c6d4676047ad5d6ae1c6cd90a380dcc5"
  },
  "overlay": {
    "path": "/home/cbsim/ws/AiBook/docs/assets/part-07/chapter-05/sec-05/p7-5-5-sam2-person-mask-scene-c-mira-audit-20260909-v6-overlay.png",
    "sha256": "b217866110a211d0f4ad55fa7cbb9563e7e277dd0edda864f540d4cacb74fd6d"
  },
  "runtime": {
    "python": "3.12.3",
    "platform": "Linux-7.0.0-31-generic-x86_64-with-glibc2.39",
    "transformers": "4.57.6",
    "torch": "2.11.0+cu128",
    "cuda_device": "NVIDIA GeForce RTX 5070 Laptop GPU"
  },
  "elapsed_seconds": 1.69
}
