onnx / onnx/models

Train or re-train ONNX Model Zoo Models and modifying their weights

Open
#603 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Jupyter Notebook
Stars
9.8k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

Ask a Question

Can an ONNX model from this Github repo (ONNX model ZOO) be trained and modify its weights during the process? In addition, is it possible to re-train an existing onnx model?

Question

I would like to know if ONNX models (from ONNX model Zoo) can be trained or re-trained from an onnx file. I only saw notebooks in some specific models like Mobilenet, Resnet or Vgg in Onnx Model Zoo Repo.

These notebooks, however, only show a Python code to train those models (https://github.com/onnx/models/blob/main/vision/classification/vgg/train_vgg.ipynb) but they don't show how to export them to onnx files or if it is possible to import an model from an existing onnx file. They just show it is due to an internal converter which is to be released.

I would like to re-train some models, to change some of their weights and, later, see the results in terms of accuracy. I wonder if it is possible to use Onnx Runtime or any of those notebooks from the Git Repo.

I also wonder if those frameworks are valid for those models which don't have one of their own, for example, Densenet, Shufflenet or Alexnet. How can I train those models? Is there any other way? I need help finding a further guide to do it.

Finally, I would like to export my train models to onnx, and, therefore, to know the tool or interval converter or any other method to do it if it is possible or if anyone knows how.

Thanks.

Izan.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue points to vision/classification/vgg/train_vgg.ipynb and mentions ONNX Runtime. First compare that notebook with the repository’s other model notebooks and the requested retraining and export workflows. Done would require a project-supported, reproducible guide addressing the cited questions, but no concrete file change is specified.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
machine-learning
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.