Skip to content

Commit 86160d6

Browse files
committed
Silence job output for initial monai label task.
1 parent d022e9d commit 86160d6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Studio/ShapeWorksMONAI/MonaiLabelJob.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ py::dict MonaiLabelJob::getInfo() {
115115
return response;
116116
}
117117

118+
//---------------------------------------------------------------------------
118119
std::vector<std::string> MonaiLabelJob::getModelNames(const std::string &model_type) {
119120
auto it = models_available_.find(model_type);
120121
if (it != models_available_.end()) {

Studio/ShapeWorksMONAI/MonaiLabelTool.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ void MonaiLabelTool::runSegmentationTool() {
149149
strategy_ = MonaiLabelTool::MONAI_SAMPLE_STRATEGY_RANDOM;
150150
monai_label_job_ =
151151
QSharedPointer<MonaiLabelJob>::create(session_, server_address_, client_id_, strategy_, model_type_);
152+
monai_label_job_->set_quiet_mode(true);
152153
SW_DEBUG("Monai Label Job initialized!");
153154
connect(monai_label_job_.data(), &MonaiLabelJob::progress, this, &MonaiLabelTool::handle_progress);
154155
connect(ui_->uploadSampleButton, &QPushButton::clicked, monai_label_job_.data(),

0 commit comments

Comments
 (0)