testConfig.cfg 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 = "../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 = "../saved_models/DM_defaults.DM_train_VISCERAL16_Fold1.final.2019-10-01.07.46.19.932616.model.ckpt"
  10. # +++++++++++ Input +++++++++++
  11. # [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).
  12. channels = ["./testChannels_CT.cfg"]
  13. # [Required] The path to a file, which should list names to give to the results for each testing case. (see example file).
  14. namesForPredictionsPerCase = "./testNamesOfPredictions.cfg"
  15. # [Optional] The path to a file, which should list paths to the Region-Of-Interest masks for each testing case.
  16. # If ROI masks are provided, inference will only be performed in within it (faster). If not specified, inference will be performed in whole volume.
  17. roiMasks = "./testRoiMasks.cfg"
  18. # [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.
  19. # gtLabels = "./testGtLabels_retmel.cfg"
  20. # [Optional] Batch size. Default: 10
  21. batchsize = 1
  22. # +++++++++++Predictions+++++++++++
  23. # [Optional] Specify whether to save segmentation map. Default: True
  24. saveSegmentation = True
  25. # [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]
  26. saveProbMapsForEachClass = [False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
  27. # overlap=1 is lots of overlap (no step, gets stuck), overlap=0 is no overlap
  28. overlap = 0.0
  29. # +++++++++++Feature Maps+++++++++++
  30. # [Optionals] Specify whether to save the feature maps in separate files and/or all together in a 4D image. Default: False for both cases.
  31. #saveIndividualFms = True
  32. #saveAllFmsIn4DimImage = False
  33. # [Optionals] A model may have too many feature maps, and some may not be needed. For this, we allow specifying which FMs to save.
  34. # Specify for each type of pathway (normal/subsampled/FC), a list with as many sublists as the layers of the pathway.
  35. # 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.
  36. # The preset example saves the Feature Maps from index 0 (first FM) to 150 of the last hidden FC layer, before the classification layer.
  37. # Default: [] for all.
  38. #minMaxIndicesOfFmsToSaveFromEachLayerOfNormalPathway = []
  39. #minMaxIndicesOfFmsToSaveFromEachLayerOfSubsampledPathway = [[],[],[],[],[],[],[],[]]
  40. #minMaxIndicesOfFmsToSaveFromEachLayerOfFullyConnectedPathway = [[],[0,150],[]]
  41. # ==========Generic=============
  42. # [Optional] Pad images to fully convolve. Default: True
  43. padInputImagesBool = True