Views
No views yet
git clone https://github.com/dek924/EHRXDiff.git
pip install "pip<24.1"
pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 torchaudio==0.11.0 --extra-index-url https://download.pytorch.org/whl/cu113
pip install -r requirements.txt1from cheff.ldm.models.diffusion.ddpm_tab import EHRXDiff
2
3model = EHRXDiff.from_pretrained("dek924/ehrxdiff_wnull")
4model.eval()1from huggingface_hub import hf_hub_download
2
3wt_path = hf_hub_download("dek924/ehrxdiff_wnull", "pytorch_model.bin")scripts/eval.py):python scripts/eval.py \
--sdm_path=${CHECKPOINT_PATH}/pytorch_model.bin \
--save_dir=${CHECKPOINT_PATH}/images/seed${RAND_SEED} \
--img_meta_dir=${IMG_META_DIR} \ # Directory containing metadata for MIMIC-CXR-JPG
--img_root_dir=${IMG_ROOT_DIR} \ # Directory containing preprocessed images
--tab_root_dir=${TAB_ROOT_DIR} \ # Directory containing tabular data
--seed=${RAND_SEED} \
--batch_size=${BATCHSIZE}