Skip to main content

Baseline inference algorithm for the UNICORN Challenge

Project description

UNICORN Basline 🦄

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.

PyPI version

This baseline uses the following publicly available foundation models:

🚀 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.json describing 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unicorn_baseline-1.4.1.tar.gz (72.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unicorn_baseline-1.4.1-py3-none-any.whl (90.6 kB view details)

Uploaded Python 3

File details

Details for the file unicorn_baseline-1.4.1.tar.gz.

File metadata

  • Download URL: unicorn_baseline-1.4.1.tar.gz
  • Upload date:
  • Size: 72.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for unicorn_baseline-1.4.1.tar.gz
Algorithm Hash digest
SHA256 f0d2eb89a4d4d8309af503b5676cd2363cba4f97e934a19d41554fbd40eaea86
MD5 f7b3a2a9f4587dd768d359253f676ac4
BLAKE2b-256 7f7fee3149b851db2687732ce5d522457dbdc50e111d2de66011e552edbf79f7

See more details on using hashes here.

File details

Details for the file unicorn_baseline-1.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for unicorn_baseline-1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7bfe31d489eb6a7fcac03a23cd8e60e35d63bb67011b877e88d72e371496e908
MD5 81d193e6ec6662273424c437e4f31453
BLAKE2b-256 3df8373cd74d5bd4bd909515673170c3128ce1a342597d6754013a63c6844c0a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page