Skip to content

Commit 4e81ecc

Browse files
committed
now the run mode will not show on compact mode
1 parent cb6fdae commit 4e81ecc

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

src/visualizer/Vstatus.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@ std::string StatusPanel::getText() {
3838
seconds = totalSec % 60;
3939
}
4040

41-
ss << TextLabels::CURRENT_PHASE_TEXT << NNmodeName[(int)vstate->nnMode.load()] << "\n"
42-
<< TextLabels::RUNNING_MODE_TEXT << NNRunningModeName[vstate->settings.pause.load()] << "\n"
43-
<< TextLabels::ALGORITHM_MODE_TEXT << algorithmName[(int)vstate->algorithmMode.load()] << "\n"
41+
ss << TextLabels::CURRENT_PHASE_TEXT << NNmodeName[(int)vstate->nnMode.load()] << "\n";
42+
if (vstate->config.visualConfig.enableNetwrokVisual) {
43+
ss << TextLabels::RUNNING_MODE_TEXT << NNRunningModeName[vstate->settings.pause.load()] << "\n";
44+
}
45+
ss << TextLabels::ALGORITHM_MODE_TEXT << algorithmName[(int)vstate->algorithmMode.load()] << "\n"
4446
<< TextLabels::FPS_TEXT << fps << "/" << FPS_LIMIT << "\n"
4547
<< TextLabels::CURRENT_BATCH_TEXT << currentBatch << "/" << totalBatches << " #" << batchPerSecond << "\n"
4648
<< TextLabels::BATCH_SIZE_TEXT << vstate->config.trainingConfig.getBatchSize() << "\n"

tests/data/config-binary_test.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"visual config": {
33
"enableVisuals": true,
4-
"enableNetwrokVisual": false,
4+
"enableNetwrokVisual": true,
55
"modes": [
66
{ "state": "pause", "mode": false },
77
{ "state": "precise mode", "mode": false },
@@ -10,7 +10,7 @@
1010
},
1111
"training config": {
1212
"batch size": 64,
13-
"batch count": 100000,
13+
"batch count": 1000,
1414
"auto save": {
1515
"saveEvery": 500,
1616
"dataFilenameAutoSave": "test.txt"
@@ -21,7 +21,7 @@
2121
},
2222
"optimizer": {
2323
"type": "const",
24-
"lr": 0
24+
"lr": 0.5
2525
}
2626
},
2727
"network config": [

0 commit comments

Comments
 (0)