MDF icon indicating copy to clipboard operation
MDF copied to clipboard

Create a Streamlit based app to run a generic MDF model

Open pgleeson opened this issue 1 year ago • 3 comments

Being worked on by @rimjhimittal as part of Outreachy

@rimjhimittal I've just thought, in addition to tabs below the list of parameters for 1) traces of outputs of the ran model 2) generated graph of the model, it would be good to have another tab 3) actual MDF model code in JSON or YAML

pgleeson avatar Jun 18 '24 10:06 pgleeson

That's a great idea! i'll add it.

rimjhimittal avatar Jun 20 '24 05:06 rimjhimittal

@pgleeson can our project be like this in future that, for example, i upload a tensorflow or pytorch model on our streamlit application, and using pytorch_to_mdf() function, it creates visualisations and input fields and everything even for that and not just 'uploading' a mdf model file?

rimjhimittal avatar Jun 21 '24 19:06 rimjhimittal

Certainly! Not every Pytorch/TF model will be approriate, but this can be checked and the user informed. Ideally it could be a one stop shop for loading (m)any of the formats in the image below, e.g. PyTorch./NeuroML -> mapping to MDF -> listing of parameters, visualisation of structure -> user edits values, changes inputs -> maps back to original or other format for optimal execution -> visualise results.

image

pgleeson avatar Jun 22 '24 09:06 pgleeson

Completed and running here: https://huggingface.co/spaces/ModECI/MDF-UI

pgleeson avatar Mar 04 '25 17:03 pgleeson