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.
Metadata
Release files for unicorn-baseline 1.4.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| unicorn_baseline-1.4.4.tar.gz | 73.0 kB | Without provenance | Details for unicorn_baseline-1.4.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| unicorn_baseline-1.4.4-py3-none-any.whl | Python 3 | none | any | Details for unicorn_baseline-1.4.4-py3-none-any.whl |
Total release size: 164.4 kB
Release files / unicorn_baseline-1.4.4.tar.gz
| Download URL | unicorn_baseline-1.4.4.tar.gz |
|---|---|
| Size | 73.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4055f7eee1bd1fa5c5f81157765eaae6c500b97e1f596f3be0f65039297465e8
|
|
BLAKE2b-256 checksum How to use checksums |
360ef421505e3199c9608132661cef7ae1d9833506349bf383daed9a5c65b196
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|
Release files / unicorn_baseline-1.4.4-py3-none-any.whl
| Download URL | unicorn_baseline-1.4.4-py3-none-any.whl |
|---|---|
| Size | 91.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6f47c77a56a9d921bd57c0213cfc954a4a3bfe8c443e2645ba7093d05f3093c
|
|
BLAKE2b-256 checksum How to use checksums |
722a07f9bd6d469d9978fb2d46c43273ede15c64ef163fd85a6a3c538c4a65d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|
Security for unicorn-baseline 1.4.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.