Skip to content

Commit

Permalink
fix progress and template
Browse files Browse the repository at this point in the history
  • Loading branch information
almazgimaev committed Dec 13, 2024
1 parent 102ba38 commit 3782da6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion train/src/ui/monitoring.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
</div>
<el-progress :percentage="data.progressPercentUploadDir"></el-progress>
</div>
<div v-if="state.benchmarkInProgress && data.progressBenchmark" class="mt10"></div>
<div v-if="state.benchmarkInProgress && data.progressBenchmark" class="mt10">
<div style="color: #20a0ff">
{{data.progressBenchmark}}: {{data.progressCurrentBenchmark}} /
{{data.progressTotalBenchmark}}
Expand Down
5 changes: 3 additions & 2 deletions train/src/ui/monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,14 +478,15 @@ def get_image_infos_by_split(split: list):
train_images_ids = [img_info.id for img_info in train_image_infos]

state["benchmarkInProgress"] = True
pbar = TqdmBenchmark
bm = sly.nn.benchmark.SemanticSegmentationBenchmark(
api,
g.project_info.id,
output_dir=g.data_dir + "/benchmark",
gt_dataset_ids=benchmark_dataset_ids,
gt_images_ids=benchmark_images_ids,
progress=TqdmBenchmark,
progress_secondary=TqdmBenchmark,
progress=pbar,
progress_secondary=pbar,
classes_whitelist=classes,
)

Expand Down

0 comments on commit 3782da6

Please sign in to comment.