Skip to content

feat(dashboard): add training analysis page and improve communication…#31

Open
zzhfz wants to merge 1 commit intomasterfrom
feat/dashboard-streamlit
Open

feat(dashboard): add training analysis page and improve communication…#31
zzhfz wants to merge 1 commit intomasterfrom
feat/dashboard-streamlit

Conversation

@zzhfz
Copy link
Contributor

@zzhfz zzhfz commented Mar 11, 2026

描述:

  • 新增训练性能分析 pages/training.py
  • 更新推理和通信页面

结果展示:

1.在本地启动 Streamlit 服务:

(InfiniMetrics) sunjinge@server:~/InfiniMetrics$ python -m streamlit run dashboard/app.py

Collecting usage statistics. To deactivate, set browser.gatherUsageStats to false.

  You can now view your Streamlit app in your browser.

  Local URL: http://localhost:8502
  Network URL: http://192.168.163.40:8502
  External URL: http://123.127.159.3:8502

2.打开浏览器访问 http://localhost:8502 ,点击“训练性能测试分析” 看到新增 training 界面:
dashboard_training


# Initialize session state
if "data_loader" not in st.session_state:
if "ni" not in st.session_state:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个是啥啊?

if len(selected_runs) == 1:
st.markdown("#### 📌 核心指标(最新)")
run = selected_runs[0]
core = extract_core_metrics(run)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extract_core_metrics 这个函数是不用了么?为啥不用了呢,可以考虑保留这个封装;如果确定不要了,记得把这个函数从utils里面删掉

Comment on lines +339 to +340
except:
pass
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个地方至少得有个error log, 不要直接吞掉exception

fig = create_gauge_chart(
duration,
duration * 2, # Scale to show progress
duration * 2,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这种注释其实可以保留

init_page("训练测试分析 | InfiniMetrics", "🏋️")


def main():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个文件的代码有点长,看能不能拆一下

@baominghelly
Copy link
Collaborator

把测试结果数据记得上传test_data分支一份,后续测试dashboard可能用得着,谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants