- conda create -n dismel python=3.7 -y
- torch==1.11.0+cu113
- transformers==4.27.1
- torchmetrics==0.11.0
- tokenizers==0.12.1
- pytorch-lightning==1.7.7
- omegaconf==2.2.3
- pillow==9.3.0
- Download the datasets from MIMIC.
- Download the datasets processed with hard-negative clustering and object detection–based region prior information, which is provided in this project at:
./datasExample/. Alternatively, you can download the datasets with WikiData description information from the MMoE and generate the processed datasets by runningpreprocessing/xxx/pre4obj.py,preprocessing/xxx/rank_nn.pyandpreprocessing/xxx/cluster.py. Then move it to the corresponding MIMIC datasets folder. - Create the data root directory, move the datasets into it, and update
data.rootin./config/xxx.yamlaccordingly.
python main.py --config config/xxx.yaml --m record_infoNote: We provide logs of our training in the logs directory.