Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 2.11 KB

File metadata and controls

38 lines (32 loc) · 2.11 KB

This an example for building a container image of your algorithm for the Preliminary Test Phase of SELMA3D challenge

Step 1: Implement your solution

  • In requirements.txt, list the packages required for your solution.

  • In inference.py, load_image_file_as_array function will automatically load the testing image once you submit your algorithm container. Do not change the image reading and saving parts.

  • Modify the processing part in inference.py file to preprocess the input image:

    # Process the inputs: any way you'd like
      _show_torch_cuda_info()
    
  • Put the resources required for prediction to the resource folder such as model checkpoints, then modify the resource part in inference.py file to load the resources:

    with open(RESOURCE_PATH / "some_resource.txt", "r") as f:
          print(f.read())
    
  • Modify the prediction part in inference.py file, replacing it with your solution to make a prediction for the loaded image array:

    # For now, let us set make bogus predictions
    biological_brain_structure = numpy.eye(4, 2)
    

Step 2: Test locally

  • Call the test_run bash script using the command: ./test_run.sh

    This will start the inference and reads from /test/input and outputs to /test/output.

Step 3: Save the container image for Grand Challenge submission

  • Call the save bash script using the command: ./save.sh

    This will create a container image of the algorithm for SELMA3D challenge.

Step 4 : Use the github repo for Grand Challenge submission (optional)