fel88 / Dendrite

ONNX viewer/editor/inference
MIT License
11 stars 2 forks source link

Any interest to integrate Onnx2TorchSharp? #11

Open GeorgeS2019 opened 10 months ago

GeorgeS2019 commented 10 months ago

https://github.com/dotnet/TorchSharp/discussions/1111

fel88 commented 10 months ago

Hi, why not. What exactly should be implemented?

GeorgeS2019 commented 10 months ago

Few still recognize what an excellent GUI and Visualization your project has contributed to the .NET ONNX community.

NOW => the next level of contribution

Given an ONNX uploaded to your program. We visualize the ONNX structure.

state of art

The pytorch onnx2torch looks at individual Onnx and reverse engineer back the original pytorch code that has exported the Onnx but then go one more step to create back the checkpoint file with trained weights

However, this is NOT the primary goal

Not only the program need to source generate the corresponding TorchSharp codes., it needs to create a TorchSharp specific trained file with weights that are transferred from the imported ONNX.

The process serves TWO purposes

This will go beyond what Netron provides !

fel88 commented 10 months ago

It sounds like some kind of re-implementation of onnx2torch => onnx2torchSharp. Should I also implement visualization for the TorchScript format?

GeorgeS2019 commented 10 months ago

For Pytorch, there are utilities, integrated into Jupiter notebook, to help understand and visualize how the deep learning progress beyond tensorboard.

The eventual vision is TorchSharp 101..used by University lectures to teach deep learning in computer game development.

You have started deep neural network visualization that has better chance to be ported to 3D game engine than the 3D engine unfriendly electron framework: Netron.

What you do to contribute to visualisation will benefit many disciplines.

Try Skiasharp ..more cross platform than dotnet system.drawing.

GeorgeS2019 commented 10 months ago

If visualization of Torchscript is possible...will be great..not sure the implications yet.

Try ask your question at TorchSharp

I am sure many will feedback you for your contribution

fel88 commented 10 months ago

Ok, thanks for sharing your vision 👍 SkiaSharp and TorchScript support seems doable to me.

GeorgeS2019 commented 10 months ago

Skiasharp means blazor, Linux, .net notebook etc

GeorgeS2019 commented 9 months ago

@fel88

https://github.com/shaltielshmid/TorchSharp.PyBridge/discussions/3