Skip to content

*_metrics.npy的使用

Pang edited this page Mar 22, 2021 · 1 revision

从现有的*_metrics.npy文件中读取方法的结果并打印成markdown表格

# -*- coding: utf-8 -*-
# @Time    : 2021/3/22
# @Author  : Lart Pang
# @GitHub  : https://github.com/lartpang


import numpy as np

from utils.print_formatter import formatter_for_tabulate

metrics: dict = np.load(
    "path/rgbd_sod_metrics.npy", allow_pickle=True
).item()
print(
    formatter_for_tabulate(
        results=metrics, dataset_titlefmt="\n### {}\n"
    )
)

欢迎进一步的补充和修改!

Clone this wiki locally