算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
chest-xray-analysis【设计与创意】Operate MedRAX chest-X-ray classification, segmentation, report, visual-QA, phrase-grounding, and optional image-generation tools with explicit resource and output checks.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a Researcher needs to operate one of MedRAX's chest-X-ray model tools on an already available JPG or PNG image. Treat all model outputs as assistive observations, not a diagnosis or a measurement suitable for clinical decision-making without qualified review.
image-data-utilities.agent-orchestration; route benchmark claims to benchmark-evaluation.Do not accept DICOM as a direct input to these tools: the tool schemas describe JPG/PNG paths. Use the image-data utility workflow before analysis when a DICOM study must be converted, and preserve the fact that conversion can change metadata and pixel semantics.
| Need | Select | Main cost or caveat |
|---|---|---|
| 18-label abnormality likelihoods | ChestXRayClassifierTool | DenseNet weights; values are probabilities, not calibrated diagnoses |
| Organ boundaries/overlay | ChestXRaySegmentationTool | PSPNet; area is not accurate for non-DICOM input |
| Findings plus impression prose | ChestXRayReportGeneratorTool | Two encoder-decoder models; substantial model storage |
| Ask one or more image questions | XRayVQATool | CheXagent 2-3B, remote code, usually CUDA and bfloat16 |
| Locate a phrase | XRayPhraseGroundingTool | MAIRA-2; CUDA and optional bitsandbytes are practical constraints |
| General medical image QA | LlavaMedTool | Large optional model; implementation uses CUDA tensors directly |
| Create a synthetic CXR | ChestXRayGeneratorTool | RoentGen weights must be supplied manually; no clinical use |
For a low-memory run, start with CPU-side path/schema validation, then choose one CUDA tool: classifier for labels, segmentation for anatomy, grounding with 8-bit loading for localization, or CheXagent only when QA is essential. Keep report generation, LLaVA-Med, and RoentGen disabled until their weights, CUDA memory, and compatible dependencies are proven. This selection verifies resource discipline, not model quality; unrun models remain unverified.
scripts/validate_inputs.py. Confirm regular files, .jpg, .jpeg, or
.png suffixes, required text fields, positive token/image parameters, and
exact segmentation organ names.references/api-reference.md and
references/model-overview.md. Avoid initializing every tool at once.BaseTool
objects; pass the documented field names. They return a value plus metadata
(except an error may be encoded in the value). Check analysis_status and
preserve returned paths before interpreting content.references/troubleshooting.md; do not switch devices, quantization, or
model sources blindly. Re-run only after recording the changed setting.analysis_status.(scores, metadata) where scores map the 18 labels to
numeric values in the source's 0–1 convention.(output, metadata): segmentation_image_path, a
per-organ metrics dictionary, original/model sizes, requested and processed
organs, and the fixed pixel-spacing assumption. An empty organ result is not
proof of absence.CHEST X-RAY REPORT, FINDINGS, and IMPRESSION, plus
metadata listing both generated sections.{"response": text} and metadata containing image paths, prompt,
token limit, and status. It does not expose a calibrated confidence score.visualization_path; completed_no_finding is distinct from failure.image_path and prompt, sampling, device, and
size metadata. Generated images are synthetic artifacts, not evidence.area_cm2 as physically accurate for JPG/PNG.
The implementation uses a fixed 0.2 mm/pixel assumption; request DICOM-aware
processing for measurement work and route conversion/display separately.[x_min, y_min, x_max, y_max] in normalized
model/image conventions as documented in the API reference. Use the returned
image_coordinates for the original image and do not mix the two spaces.