Proposed scivision workflow for UI users with minimal coding exp. #325
Replies: 3 comments 3 replies
-
Could we offer a link to spin-up a bespoke binder instance from the UI including the first few lines to load the user's chosen data and model? I would only suggest doing this where dependencies are not a major issue |
Beta Was this translation helpful? Give feedback.
-
(Copying reply on Slack) This is closely related to the ongoing discussions about how to handle the python package management situation (and the lack of a reliable solution for external packages/system dependencies). I really like this suggestion, because it is a concrete plan that takes a clear stance on the issue (in this case, that handling external packages is beyond the scope of Scivision). There are other possibilities too, but the above seems the simplest thing we could do, so perhaps we could start with it? It does put some additional burden on a user (particularly a new user who might not be familiar with the landscape), so we might want to revisit some other ideas if we don’t like that, but it is something self-consistent and workable! @edwardchalstrey1, how much does the above depend on there being a frontend? Could we do the same with the programmatic/python interface as it currently is? |
Beta Was this translation helpful? Give feedback.
-
Extra ideas from co-working 12.10.22The UI could auto-generate a "model card" like in huggingface, but for a model-dataset selection, rather than just for a model. It would include both the model (or data plugin) install instructions (from their READMEs, see above) and also the scivision lines of code needed for loading both the data and model and running a prediction. This "model card" would therefore be split into "Installation" which you run in the terminal and "How to use" where it shows the Python lines. There could also be a download |
Beta Was this translation helpful? Give feedback.
-
After #246 is merged, we will have a scivision UI that new users can look at to find models or datasets from the catalog that can be used together.
If you are a new user of scivision getting started with scivision, the primary way of working could be as follows:
pip install [model package name]
(or similar)data = load_dataset(<dataset url>)
model = load_pretrained_model(<model url>)
model.predict(data)
(perhaps the UI should even spit out these lines of code for you to copy?)
However, some models when selected in the UI should show a warning like "This model has additional dependencies that must be installed". The user would be directed to the model repo README which includes the dependency commands (e.g. activate a certain Conda env) to run before the model can be used (or maybe we scrape the README somehow and spit that out too?).
All models included in the catalog will definitely include a README with clear instructions, because scivision maintainers will not accept any model repos for inclusion in the catalog that do not have this.
I believe this solves the conundrum presented in #159
Beta Was this translation helpful? Give feedback.
All reactions