This docker image contains a reference implementation that serve as a template for you to implementat your own algorithm for submission at LDCTIQAC2023. This repository was created by referring to the MIDOG challenge.
1.Prerequisites
2.An overview of the structure of this example
3.Packing algorithm into a docker container image
4.Buliding container
5.Testing container and gernerating the bundle for uploading your algorithm
6.Creating an algorithm on Grand Challenge and submitting the solution to LDCTIQAC2023 Challenge
git clone https://github.com/JoyceWLee/LDCTIQAG_reference_docker.git
pip install evalutils
This is an example of the algorithm container that you can use to submit your solution to the challenge. The primary file in the container is process.py
, which loads the model and generates predictions of image quality scores. The results are saved in the file /output/image-quality-scores.json
as a list of floating-point numbers.
For further clarification, an example of a test batch is provided here. Please note that this example is provided for illustrative purposes only and does not represent the actual content of the test batch. While this example consists of the same 100 stacked images, the actual test batch will contain random images with diverse image quality scores. Using this example, the output file will contain 100 image quality scores, corresponding to a stack of 100 slice images that make up one test batch. For example:
[
0.5592130422592163,
0.5592130422592163,
0.5592130422592163,
0.5592130422592163,
0.5592130422592163,
0.5592130422592163,
0.5592130422592163,
...
]
To use this algorithm as a template for submitting your entry to the challenge, follow these steps. First, open the process.py
file and make the necessary changes marked with TODO
. When testing your code locally, set execute_in_docker=False
, but don't forget to switch it back to execute_in_docker=True
before running the code in the docker container.
If your algorithm requires additional libraries or files, you can modify the requirements.txt
file and the Dockerfile
as needed. This will ensure that the required files and folders are copied appropriately. Check out the graphic description of the MIDOG Challenge below.
build.sh
to build the docker container.
test.sh
. This will run the test image provided in the test folder though your model. It will check them against what you provide in test/expexted_output.json
. Noted: this will initially not be equal to the demo prediction score in this reference.export.sh
to generate the package of your docker with the extension tar.gz, which you can then upload to grand challenge to submit your algorithm.