13 #ifndef mitknnUnetTool_h
14 #define mitknnUnetTool_h
49 std::string foldsConcatenated = std::accumulate(
folds.begin(),
folds.end(), std::string(
""));
51 toHash += this->
model;
53 toHash += foldsConcatenated;
55 size_t hashVal = std::hash<std::string>{}(toHash);
72 itkFactorylessNewMacro(
Self);
75 const char **GetXPM()
const override;
76 const char *GetName()
const override;
79 void Activated()
override;
81 itkSetMacro(nnUNetDirectory, std::string);
82 itkGetConstMacro(nnUNetDirectory, std::string);
84 itkSetMacro(ModelDirectory, std::string);
85 itkGetConstMacro(ModelDirectory, std::string);
87 itkSetMacro(PythonPath, std::string);
88 itkGetConstMacro(PythonPath, std::string);
90 itkSetMacro(MitkTempDir, std::string);
91 itkGetConstMacro(MitkTempDir, std::string);
93 itkSetMacro(PostProcessingJsonDirectory, std::string);
94 itkGetConstMacro(PostProcessingJsonDirectory, std::string);
96 itkSetMacro(MixedPrecision,
bool);
97 itkGetConstMacro(MixedPrecision,
bool);
98 itkBooleanMacro(MixedPrecision);
100 itkSetMacro(Mirror,
bool);
101 itkGetConstMacro(Mirror,
bool);
102 itkBooleanMacro(Mirror);
104 itkSetMacro(MultiModal,
bool);
105 itkGetConstMacro(MultiModal,
bool);
106 itkBooleanMacro(MultiModal);
108 itkSetMacro(NoPip,
bool);
109 itkGetConstMacro(NoPip,
bool);
110 itkBooleanMacro(NoPip);
112 itkSetMacro(Ensemble,
bool);
113 itkGetConstMacro(Ensemble,
bool);
114 itkBooleanMacro(Ensemble);
116 itkSetMacro(Predict,
bool);
117 itkGetConstMacro(Predict,
bool);
118 itkBooleanMacro(Predict);
120 itkSetMacro(GpuId,
unsigned int);
121 itkGetConstMacro(GpuId,
unsigned int);
141 void RenderOutputBuffer();
154 void ClearOutputBuffer();
194 void UpdatePrepare()
override;
197 std::string m_MitkTempDir;
198 std::string m_nnUNetDirectory;
199 std::string m_ModelDirectory;
200 std::string m_PythonPath;
201 std::string m_PostProcessingJsonDirectory;
204 bool m_MixedPrecision;
208 bool m_Ensemble =
false;
211 unsigned int m_GpuId;
212 const std::string m_TEMPLATE_FILENAME =
"XXXXXX_000_0000.nii.gz";