What is the method to use self trained neural network in another code in Matlab17a?

5 ビュー (過去 30 日間)
Devyani  Parate
Devyani Parate 2018 年 1 月 12 日
回答済み: Aditya 2025 年 9 月 3 日 6:45
I have implemented transfer learning using Alexnet. Now I want to use this network in another code. Please suggest some methods. Thanks!

回答 (1 件)

Aditya
Aditya 2025 年 9 月 3 日 6:45
Hi Devyani,
After training your AlexNet-based transfer learning model, you can reuse it in other scripts or projects by saving the model to disk and then loading it wherever you need it. In MATLAB, you typically use the save and load commands for this purpose, while in Python with PyTorch or Keras, you use their respective model saving and loading functions. Alternatively, you can export your model to a standard format like ONNX, which allows you to use the network across different frameworks and languages. By doing this, you avoid retraining and can directly use the trained network for inference, further training, or integration into larger systems.

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by