testConfig.cfg.template 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # -*- coding: utf-8 -*-
  2. # Default values are set internally, if the corresponding parameter is not found in the configuration file.
  3. # [Optional but highly suggested] The name will be used for naming folders to save the results in.
  4. # Default: "testSession"
  5. sessionName = "currentSession"
  6. # [Required] The main folder that the output will be placed.
  7. folderForOutput = "__workDir__/output"
  8. # [Optional] Path to a saved model, to load parameters from in the beginning of the session. If one is also specified using the command line, the latter will be used.
  9. #cnnModelFilePath = "/home/nixUser/software/src/irAEMMSegmentationModels/deepmedic/__model__"
  10. cnnModelFilePath = "__cnnModelPath__/deepmedic/__model__"
  11. # +++++++++++ Input +++++++++++
  12. # [Required] A list that should contain as many entries as the channels of the input image (eg multi-modal MRI). The entries should be paths to files. Those files should be listing the paths to the corresponding channels for each test-case. (see example files).
  13. #channels = ["./testChannels_CT.cfg"]
  14. channels = ["__workDir__/testChannels_CT.cfg"]
  15. # [Required] The path to a file, which should list names to give to the results for each testing case. (see example file).
  16. namesForPredictionsPerCase = "__workDir__/testNamesOfPredictions.cfg"
  17. # [Optional] The path to a file, which should list paths to the Region-Of-Interest masks for each testing case.
  18. # If ROI masks are provided, inference will only be performed in within it (faster). If not specified, inference will be performed in whole volume.
  19. roiMasks = "__workDir__/testRoiMasks.cfg"
  20. # [Optional] The path to a file which should list paths to the Ground Truth labels of each testing case. If provided, DSC metrics will be reported. Otherwise comment out this entry.
  21. # gtLabels = "./testGtLabels_retmel.cfg"
  22. # [Optional] Batch size. Default: 10
  23. batchsize = 1
  24. # +++++++++++Predictions+++++++++++
  25. # [Optional] Specify whether to save segmentation map. Default: True
  26. saveSegmentation = True
  27. # [Optional] Specify a list with as many entries as the task's classes. True/False to save/not the probability map for the corresponding class. Default: [True,True...for all classes]
  28. saveProbMapsForEachClass = [False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
  29. # overlap=1 is lots of overlap (no step, gets stuck), overlap=0 is no overlap
  30. overlap = 0.0
  31. # +++++++++++Feature Maps+++++++++++
  32. # [Optionals] Specify whether to save the feature maps in separate files and/or all together in a 4D image. Default: False for both cases.
  33. #saveIndividualFms = True
  34. #saveAllFmsIn4DimImage = False
  35. # [Optionals] A model may have too many feature maps, and some may not be needed. For this, we allow specifying which FMs to save.
  36. # Specify for each type of pathway (normal/subsampled/FC), a list with as many sublists as the layers of the pathway.
  37. # Each sublist (one for each layer), should have 2 numbers. These are the minimum (inclusive) and maximum (exclusive) indices of the Feature Maps that we wish to save from the layer.
  38. # The preset example saves the Feature Maps from index 0 (first FM) to 150 of the last hidden FC layer, before the classification layer.
  39. # Default: [] for all.
  40. #minMaxIndicesOfFmsToSaveFromEachLayerOfNormalPathway = []
  41. #minMaxIndicesOfFmsToSaveFromEachLayerOfSubsampledPathway = [[],[],[],[],[],[],[],[]]
  42. #minMaxIndicesOfFmsToSaveFromEachLayerOfFullyConnectedPathway = [[],[0,150],[]]
  43. # ==========Generic=============
  44. # [Optional] Pad images to fully convolve. Default: True
  45. padInputImagesBool = True