|
--- |
|
license: mit |
|
language: |
|
- en |
|
tags: |
|
- medical |
|
- vision |
|
widget: |
|
- src: "https://d168r5mdg5gtkq.cloudfront.net/medpix/img/full/synpic9078.jpg" |
|
candidate_labels: "Chest X-Ray, Brain MRI, Abdomen CT Scan" |
|
example_title: "Abdomen CT Scan" |
|
--- |
|
# Model Card for PubMedCLIP |
|
|
|
PubMedCLIP is a fine-tuned version of [CLIP](https://huggingface.co/docs/transformers/model_doc/clip) for the medical domain trained on a large number of medical |
|
image–text pairs obtained from [PubMed](https://pubmed.ncbi.nlm.nih.gov/) articles. |
|
|
|
## Model Details |
|
|
|
### Model Description |
|
PubMedCLIP was trained on the [Radiology Objects in COntext (ROCO)](https://github.com/razorx89/roco-dataset) dataset, a large-scale multimodal medical imaging dataset. |
|
The ROCO dataset includes diverse imaging modalities (such as ultrasound, X-Ray, MRI, etc.) from various human body regions (such as head, neck, spine, etc.) |
|
captured from open-access PubMed articles. The texts used for training PubMedCLIP were taken from the short captions associated with the images in the dataset. |
|
|
|
The authors of PubMedCLIP have released three different pre-trained models at this [link](https://1drv.ms/u/s!ApXgPqe9kykTgwD4Np3-f7ODAot8?e=zLVlJ2) using |
|
ResNet-50, ResNet-50x4 and ViT32 as image encoders. This repository includes only the ViT32 variant. |
|
|
|
### Model Sources |
|
|
|
- **Repository:** [Official GitHub Repository](https://github.com/sarahESL/PubMedCLIP) |
|
- **Paper [optional]:** {{ paper | default("[More Information Needed]", true)}} |
|
- **Demo [optional]:** {{ demo | default("[More Information Needed]", true)}} |
|
|
|
## Uses |
|
|
|
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. --> |
|
|
|
### Direct Use |
|
|
|
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. --> |
|
|
|
{{ direct_use | default("[More Information Needed]", true)}} |
|
|
|
### Downstream Use [optional] |
|
|
|
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app --> |
|
|
|
{{ downstream_use | default("[More Information Needed]", true)}} |
|
|
|
### Out-of-Scope Use |
|
|
|
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. --> |
|
|
|
{{ out_of_scope_use | default("[More Information Needed]", true)}} |
|
|
|
## Bias, Risks, and Limitations |
|
|
|
<!-- This section is meant to convey both technical and sociotechnical limitations. --> |
|
|
|
{{ bias_risks_limitations | default("[More Information Needed]", true)}} |
|
|
|
### Recommendations |
|
|
|
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. --> |
|
|
|
{{ bias_recommendations | default("Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.", true)}} |
|
|
|
## How to Get Started with the Model |
|
|
|
Use the code below to get started with the model. |
|
|
|
{{ get_started_code | default("[More Information Needed]", true)}} |
|
|
|
## Training Details |
|
|
|
### Training Data |
|
|
|
<!-- This should link to a Data Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. --> |
|
|
|
{{ training_data | default("[More Information Needed]", true)}} |
|
|
|
### Training Procedure |
|
|
|
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. --> |
|
|
|
#### Preprocessing [optional] |
|
|
|
{{ preprocessing | default("[More Information Needed]", true)}} |
|
|
|
|
|
#### Training Hyperparameters |
|
|
|
- **Training regime:** {{ training_regime | default("[More Information Needed]", true)}} <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision --> |
|
|
|
#### Speeds, Sizes, Times [optional] |
|
|
|
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. --> |
|
|
|
{{ speeds_sizes_times | default("[More Information Needed]", true)}} |
|
|
|
## Evaluation |
|
|
|
<!-- This section describes the evaluation protocols and provides the results. --> |
|
|
|
### Testing Data, Factors & Metrics |
|
|
|
#### Testing Data |
|
|
|
<!-- This should link to a Data Card if possible. --> |
|
|
|
{{ testing_data | default("[More Information Needed]", true)}} |
|
|
|
#### Factors |
|
|
|
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. --> |
|
|
|
{{ testing_factors | default("[More Information Needed]", true)}} |
|
|
|
#### Metrics |
|
|
|
<!-- These are the evaluation metrics being used, ideally with a description of why. --> |
|
|
|
{{ testing_metrics | default("[More Information Needed]", true)}} |
|
|
|
### Results |
|
|
|
{{ results | default("[More Information Needed]", true)}} |
|
|
|
#### Summary |
|
|
|
{{ results_summary | default("", true) }} |
|
|
|
## Model Examination [optional] |
|
|
|
<!-- Relevant interpretability work for the model goes here --> |
|
|
|
{{ model_examination | default("[More Information Needed]", true)}} |
|
|
|
## Environmental Impact |
|
|
|
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly --> |
|
|
|
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700). |
|
|
|
- **Hardware Type:** {{ hardware | default("[More Information Needed]", true)}} |
|
- **Hours used:** {{ hours_used | default("[More Information Needed]", true)}} |
|
- **Cloud Provider:** {{ cloud_provider | default("[More Information Needed]", true)}} |
|
- **Compute Region:** {{ cloud_region | default("[More Information Needed]", true)}} |
|
- **Carbon Emitted:** {{ co2_emitted | default("[More Information Needed]", true)}} |
|
|
|
## Technical Specifications [optional] |
|
|
|
### Model Architecture and Objective |
|
|
|
{{ model_specs | default("[More Information Needed]", true)}} |
|
|
|
### Compute Infrastructure |
|
|
|
{{ compute_infrastructure | default("[More Information Needed]", true)}} |
|
|
|
#### Hardware |
|
|
|
{{ hardware | default("[More Information Needed]", true)}} |
|
|
|
#### Software |
|
|
|
{{ software | default("[More Information Needed]", true)}} |
|
|
|
## Citation [optional] |
|
|
|
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. --> |
|
|
|
**BibTeX:** |
|
|
|
{{ citation_bibtex | default("[More Information Needed]", true)}} |
|
|
|
**APA:** |
|
|
|
{{ citation_apa | default("[More Information Needed]", true)}} |
|
|
|
## Glossary [optional] |
|
|
|
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. --> |
|
|
|
{{ glossary | default("[More Information Needed]", true)}} |
|
|
|
## More Information [optional] |
|
|
|
{{ more_information | default("[More Information Needed]", true)}} |
|
|
|
## Model Card Authors [optional] |
|
|
|
{{ model_card_authors | default("[More Information Needed]", true)}} |
|
|
|
## Model Card Contact |
|
|
|
{{ model_card_contact | default("[More Information Needed]", true)}} |
|
|
|
|
|
|