File size: 1,186 Bytes
41ce64b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d3f730e
41ce64b
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# PMC Helper Model Checkpoints

These checkpoints contain helper models used in creating the PMC-2M dataset.

## Download Weights

Make sure to run this script before using the pipeline.

```python
from huggingface_hub import snapshot_download

weights_dir = snapshot_download(
    repo_id="vector-institute/pmc-helper-models",
    local_dir="openpmcvl/granular/checkpoints",
    allow_patterns=["*.pt", "*.pth"]
)
```

The weights will be downloaded to the specified `local_dir`. Your existing code can then load them from this location.
Change the `local_dir` to the path of the directory leading to `openpmcvl/granular/checkpoints` in your project.

## Citation
TBD

The original weights come from PMC-CLIP paper. Please cite them if using the weights.
```
@misc{lin2023pmcclipcontrastivelanguageimagepretraining,
      title={PMC-CLIP: Contrastive Language-Image Pre-training using Biomedical Documents}, 
      author={Weixiong Lin and Ziheng Zhao and Xiaoman Zhang and Chaoyi Wu and Ya Zhang and Yanfeng Wang and Weidi Xie},
      year={2023},
      eprint={2303.07240},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2303.07240}, 
}
```