Skip to content

Update README.md #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Mar 27, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@

A toolkit to download, augment, and benchmark OpenPMC-VL; a large dataset of image-text pairs extracted from open-access scientific articles on PubMedCentral.

## Table of Contents

1. [Hugging Face Dataset and Checkpoint](#hugging-face-dataset-and-checkpoint)
2. [Installing Dependencies](#installing-dependencies)
3. [Download and Parse Image-Caption Pairs](#download-and-parse-image-caption-pairs-from-pubmed-articles)
4. [Run Benchmarking Experiments](#run-benchmarking-experiments)
5. [References](#references)

## Hugging Face Dataset and Checkpoint

- **Dataset:** [Open_PMC Dataset on Hugging Face](https://huggingface.co/datasets/vector-institute/open_pmc)
- **Checkpoint:** [Open_PMC_CLIP Model Checkpoint on Hugging Face](https://huggingface.co/vector-institute/open_pmc_clip)

## Installing dependencies

We use
Expand Down Expand Up @@ -75,7 +88,6 @@ python

**Note:** Since these submodules (`mmlearn` and `open_clip`) are only part of the main branch in a single repository, if you change your branch to a branch where these submodules don't exist, your python interpretor won't be able to find these packages and you will face errors.


## Download and parse image-caption pairs from Pubmed Articles
The codebase used to download Pubmed articles and parse image-text pairs from them is stored in `openpmcvl/foundation`.
This codebase heavily relies on [Build PMC-OA](https://github.com/WeixiongLin/Build-PMC-OA) codebase[[1]](#1).
Expand All @@ -97,7 +109,6 @@ To download and parse open-access articles which other licenses than what is men
python -u src/fetch_oa.py --num-retries 5 --extraction-dir path/to/download/directory/other --license-type other --volumes 0 1 2 3 4 5 6 7 8 9 10 11
```


## Run Benchmarking Experiments
We use `mmlearn` to run benchmarking experiments.
Many experiments can be run with our dataset and `mmlearn`.
Expand Down Expand Up @@ -136,8 +147,6 @@ mmlearn_run \
For more comprehensive examples of shell scripts that run various experiments with OpenPMC-VL, refer to `openpmcvl/experiment/scripts`.
For more information about `mmlearn`, please refer to the package's [official codebase](https://github.com/VectorInstitute/mmlearn).



## References
<a id="1">[1]</a> PMC-OA paper:
```latex
Expand Down