Baseline inference algorithm for the UNICORN Challenge
Project description
UNICORN Baseline 🦄
Welcome to the official baseline repository for the UNICORN challenge!
This repository provides reference implementations and tools for tackling a wide range of vision, language, and vision-language tasks in computational pathology and radiology.
This baseline uses the following publicly available foundation models:
- Virchow (link to publication)
- PRISM (link to publication)
- MRSegmentator (link to publication)
- CT-FM: Whole Body Segmetation (link to publication)
- phi4
- BioGPT (link to publication)
- opus-mt-en-nl
🚀 Quickstart
System requirements: Linux-based OS (e.g., Ubuntu 22.04) with Python 3.10+ and Docker installed.
We provide scripts to automate the local testing process using public few-shot data from Zenodo.
1. Clone the Repository
git clone https://github.com/DIAGNijmegen/unicorn_baseline.git
cd unicorn_baseline
2. Download Model Weights
⚠️ Access Required
Some of the models used in the baseline are gated.
You need to have requested and been granted access to be able to download them from Hugging Face.
./download_weights.sh
3. Build the Docker Container
./do_build.sh
4. Perform test run(s)
Make sure to always take the latest version of the data on Zenodo.
- Single Task: Downloads and prepares data for a single task, then runs the docker on one case.
./run_task.sh "https://zenodo.org/records/15315589/files/Task01_classifying_he_prostate_biopsies_into_isup_scores.zip"
- All Tasks: Runs the docker on all supported UNICORN tasks, sequentially.
./run_all_tasks.sh
- Targeted Test Run: Run the docker on a specific case folder.
./do_test_run.sh path/to/case/folder [docker_image_tag]
5. Save the Container for Submission
./do_save.sh
📝 Input & Output Interfaces
- Input:
Each task provides a
unicorn-task-description.jsondescribing the required inputs and metadata. See example-data/ for sample files and structure. - Output:
The baseline generates standardized output files (e.g.,
image-neural-representation.json,patch-neural-representation.json) as required by the challenge.
📜 License
This project is licensed under the Apache License 2.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file unicorn_baseline-1.4.4.tar.gz.
File metadata
- Download URL: unicorn_baseline-1.4.4.tar.gz
- Upload date:
- Size: 73.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4055f7eee1bd1fa5c5f81157765eaae6c500b97e1f596f3be0f65039297465e8
|
|
| MD5 |
87b40eecff415434ffa6cb9d124c8c3c
|
|
| BLAKE2b-256 |
360ef421505e3199c9608132661cef7ae1d9833506349bf383daed9a5c65b196
|
File details
Details for the file unicorn_baseline-1.4.4-py3-none-any.whl.
File metadata
- Download URL: unicorn_baseline-1.4.4-py3-none-any.whl
- Upload date:
- Size: 91.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6f47c77a56a9d921bd57c0213cfc954a4a3bfe8c443e2645ba7093d05f3093c
|
|
| MD5 |
686722c00a64176205d458e6c1797cbf
|
|
| BLAKE2b-256 |
722a07f9bd6d469d9978fb2d46c43273ede15c64ef163fd85a6a3c538c4a65d5
|