EchoPrime: A Multi-Video View-Informed Vision-Language Model for Comprehensive Echocardiography Interpretation
This repository contains the official inference code for the following paper:
EchoPrime: A Multi-Video View-Informed Vision-Language Model for Comprehensive Echocardiography Interpretation
Milos Vukadinovic, Xiu Tang, Neal Yuan, Paul Cheng, Debiao Li, Susan Cheng, Bryan He*, David Ouyang*
Read the paper on arXiv,
See the demo
-
Clone the repository and navigate to the EchoPrime directory
-
Install Poetry (if not already installed)
curl -sSL https://install.python-poetry.org | python3 - -
Use the provided Makefile for a one-command setup and run:
make setup-and-run
This will:
- Install all dependencies using Poetry
- Download model data and embeddings
- Start Jupyter notebook
Then open EchoPrimeDemo.ipynb
Note: You can also run individual commands:
make setup- Install dependencies with Poetrymake download-data- Download model data and embeddingsmake jupyter- Start Jupyter notebookmake help- Show all available commands
-
Clone the repository and navigate to the EchoPrime directory
-
Install Poetry (if not already installed)
curl -sSL https://install.python-poetry.org | python3 - -
Install dependencies with Poetry
poetry install
Note: This project is compatible with Python 3.8 to 3.12. Some dependencies may have issues with Python 3.13+.
If you encounter an error about "No file/folder found for package echoprime", the project is configured with
package-mode = falsein pyproject.toml to address this. -
Download model data
wget https://github.com/echonet/EchoPrime/releases/download/v1.0.0/model_data.zipwget https://github.com/echonet/EchoPrime/releases/download/v1.0.0/candidate_embeddings_p1.ptwget https://github.com/echonet/EchoPrime/releases/download/v1.0.0/candidate_embeddings_p2.ptunzip model_data.zipmv candidate_embeddings_p1.pt model_data/candidates_data/mv candidate_embeddings_p2.pt model_data/candidates_data/
-
Run the Jupyter notebook
poetry run jupyter notebook
Then open EchoPrimeDemo.ipynb
- Clone the repository and navigate to the EchoPrime directory
- Download model data
wget https://github.com/echonet/EchoPrime/releases/download/v1.0.0/model_data.zipwget https://github.com/echonet/EchoPrime/releases/download/v1.0.0/candidate_embeddings_p1.ptwget https://github.com/echonet/EchoPrime/releases/download/v1.0.0/candidate_embeddings_p2.ptunzip model_data.zipmv candidate_embeddings_p1.pt model_data/candidates_data/mv candidate_embeddings_p2.pt model_data/candidates_data/
- Install dependencies from requirements.txt
pip install -r requirements.txt
- Follow EchoPrimeDemo.ipynb notebook
This project is licensed under the terms of the MIT license.
Make sure that you have the correct libraries installed. Use Poetry or requirements.txt to install the dependencies.
docker build -t echo-prime .
docker run -d --name echoprime-container --gpus all echo-prime tail -f /dev/null
Then you can attach to this container and run the notebook located at
/workspace/EchoPrime/EchoPrimeDemo.ipynb.
