Skip to content

need to cast classId to str when saving PlotPrecisionRecallCurve #157

@SarBH

Description

@SarBH
            if savePath is not None:
                plt.savefig(os.path.join(savePath, classId + '.png'))

throws:

File "/tmp/sources/rafaelpadilla-Object-Detection-Metrics/lib/Evaluator.py", line 287, in PlotPrecisionRecallCurve
    plt.savefig(os.path.join(savePath, classId + '.png'))
TypeError: unsupported operand type(s) for +: 'int' and 'str'

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions