How to train a network and reconstructing the dataset on the fly

1 回表示 (過去 30 日間)
matan dud
matan dud 2022 年 10 月 23 日
回答済み: Sanjana 2023 年 6 月 8 日
Hello there!
I want to train a pretrained CNN, using image data that i create myself (based on saved data), because of the amount, i want to create the images on-the-fly, while runing the the training. and i'm not sure how to read and use
i.e, i have a few folders containing >1600 *.mat files of amplitude and phases of my image. but the dataset i want to train on is a calculation based on those *.mat files. using the calculations, the dataset can grow even uo to a million images.
since i can't save million images, how can i create smaller datasets and train/validate the network in one go?
do someone has an example of using mini-batches etc.?
thanks a lot!

回答 (1 件)

Sanjana
Sanjana 2023 年 6 月 8 日
Hi,
I understand that you want to train the network using mini-batches and looking for a way to manipulate dataset on the fly while training.
One possible solution is to use custom training loop.
Please refer to the following link for a reference to write custom training loop in MATLAB,
Please refer to the following example, for understanding manipulating data within a training loop and usage of mini batches for training,
Hope this helps!

カテゴリ

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

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by