Generation of challenge packs
Project description
🛠️ grand-challenge-forge
A utility that generates distributable items that help challenge organizers set up their challenge more easily on Grand-Challenge.org.
Install
Install via PyPi:
pip install grand-challenge-forge
grand-challenge-forge --help
📦 Challenge packs
A challenge pack consists of challenge-tailored examples for the following:
- A script to automate uploading data to an archive
- A submission algorithm that can be submitted to a challenge phase
- An evaluation method that evaluates algorithm submissions and generates performance metrics for ranking
Usage
grand-challenge-forge pack-context.json
Will use the context found in pack-context.json
and generate a pack at the current working directory in
a directory dist/
(default).
Example of the content of pack-context.json
{
"challenge": {
"slug": "challenge-slug",
"phases": [
{
"slug": "phase-slug",
"archive": {
"url": "https://grand-challenge.org/archives/archive-slug/"
},
"algorithm_inputs": [
{
"slug": "input-ci-slug",
"kind": "Segmentation",
"super_kind": "Image",
"relative_path": "images/input-value"
},
{
"slug": "another-input-ci-slug",
"kind": "Anything",
"super_kind": "File",
"relative_path": "another-input-value.json"
}
],
"algorithm_outputs": [
{
"slug": "output-ci-slug",
"kind": "Image",
"super_kind": "Image",
"relative_path": "images/output-value"
},
{
"slug": "another-output-ci-slug",
"kind": "Anything",
"super_kind": "File",
"relative_path": "output-value.json"
}
]
},
{
"slug": "another-phase-slug",
"archive": {
"url": "https://grand-challenge.org/archives/another-archive-slug/"
},
"algorithm_inputs": [
{
"slug": "input-ci-slug",
"kind": "Image",
"super_kind": "Image",
"relative_path": "images/input-value"
}
],
"algorithm_outputs": [
{
"slug": "another-output-ci-slug",
"kind": "Anything",
"super_kind": "File",
"relative_path": "output-value.json"
}
]
}
]
}
}
Alternatively, you generate a pack by providing a JSON string directly:
grand-challenge-forge --output-dir /tmp '{ "challenge": { "slug": "a-slug"...'
This will output a pack directory in the /tmp
directory.
[!NOTE] By default, the forge does quality checks on the pack that may require docker. You can disable these via
-n
🏗️ Development
Install locally
Install grand-challenge-forge locally (requires poetry
):
git clone https://github.com/DIAGNijmegen/rse-grand-challenge-forge.git
cd rse-grand-challenge-forge
poetry install
poetry run grand-challenge-forge --help
Pre-commit hooks
Several linters and stylers run to check the formatting during continuous integration. Ensure they are run before committing by installing pre-commit.
Running Tests
use tox
to run all tests across all supported python versions:
pip install tox
tox
Dependencies
Under the hood grand-challenge-forge uses:
- Click
- a composable command line interface toolkit
- Cookiecutter
- a utility that creates projects from project templates
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
Built Distribution
File details
Details for the file grand_challenge_forge-0.5.0.tar.gz
.
File metadata
- Download URL: grand_challenge_forge-0.5.0.tar.gz
- Upload date:
- Size: 28.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.15 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b58e0a8f103c9857e198bbf9eacc09d262b8445ece4496cbdda89b135bf00abe |
|
MD5 | bbd6ec86ef6e8993aa6a0e8c7ccca1a8 |
|
BLAKE2b-256 | 39e4e6053cc25f2894b4c42788d89fabf182793e85100387798afeba9ce966b2 |
File details
Details for the file grand_challenge_forge-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: grand_challenge_forge-0.5.0-py3-none-any.whl
- Upload date:
- Size: 41.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.15 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d428bbe1a1a239a35336378de855f35e9c90933723c6c7317cfa6449d491a2c |
|
MD5 | ee2923657e2b89e82988ccdde287612a |
|
BLAKE2b-256 | 1b56e5ae70832f210e8390071d80fb7d74a1889d141ebde71b208f750040a3a4 |