Skip to content

ONNX --> plain txt file (lrp toolbox formatting) #33

Description

@elboyran

Figure out how to convert ONNX to numpy or txt file.

  • Try simply pretty print the proto object as suggested here: Human-Readable (JSON) Output.

  • If the above is not enough, explore ONNXMLtools, e.g. check if such commands work on loaded model by onnx, e.g.if onnx_model is a result of onnx.load():
    onnxmltools.utils.save_text(onnx_model, 'example.json')?

  • Make a notebook illustrating saving an onnx model as JSON using onnxmltools for a simple untrained and more complex trained model. Use the same as from the print_model notebook (from /XAI/Software/onnx/onnx/examples).

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions