omerwritescode/cxr-report-gen-explainable ? reverse-engineered prompt
Reverse engineered prompt
Build me a chest X ray report generator that takes a chest X ray image and returns a short radiology style report plus a visual explanation showing where the model is looking.
I want it based on the MIMIC CXR JPG dataset, using PyTorch, with ClinicalBERT for the text part and Grad CAM heatmaps over the image for explainability. If the full report generation part is too hard to get working cleanly right away, it’s fine to fall back to a solid multi label classification version that still shows the Grad CAM overlay and gives the likely findings.
Please set it up so the data can be loaded and split, the training steps are organized in notebooks, and there’s a simple demo where I can upload an X ray and see the prediction and heatmap. If you need current docs or examples for the libraries, look them up online as you go.