Warning: Variable 'rxTrainFrames' was not saved. For variables larger than 2GB use MAT-file version 7.3 or later

조회 수: 7 (최근 30일)
How do i keep the rxTrainFrame into workspace? my code is
dataDirectory = 'E:\SNR-Dataset\Data-18-time'
frameDS = signalDatastore(dataDirectory,'SignalVariableNames',["frame","label"],'IncludeSubfolders',true,'FileExtensions','.mat');
frameDSTrans = transform(frameDS,@helperModClassIQAsPages);
splitPercentages = [percentTrainingSamples,percentValidationSamples,percentTestSamples];
[trainDSTrans,validDSTrans,testDSTrans] = helperModClassSplitData(frameDSTrans,splitPercentages);
% Gather the training and validation frames into the memory
trainFramesTall = tall(transform(trainDSTrans, @helperModClassReadFrame));
rxTrainFrames = gather(trainFramesTall);
rxTrainFrames = cat(4, rxTrainFrames{:});
save('rxTrainFrames.mat', 'rxTrainFrames', '-v7.3')
validFramesTall = tall(transform(validDSTrans, @helperModClassReadFrame));
rxValidFrames = gather(validFramesTall);
rxValidFrames = cat(4, rxValidFrames{:});
% Gather the training and validation labels into the memory
trainLabelsTall = tall(transform(trainDSTrans, @helperModClassReadLabel));
rxTrainLabels = gather(trainLabelsTall);
rxTrainLabels = removecats(rxTrainLabels);
validLabelsTall = tall(transform(validDSTrans, @helperModClassReadLabel));
rxValidLabels = gather(validLabelsTall);
rxValidLabels = removecats(rxValidLabels);
maxEpochs = 100;
miniBatchSize = 128;
options = helperModClassTrainingOptions(maxEpochs,miniBatchSize,...
numel(rxTrainLabels),rxValidFrames,rxValidLabels);
trainedNet5 = trainNetwork(rxTrainFrames,rxTrainLabels,trainedNet4 ,options);
save trainedNet5

답변 (1개)

yanqi liu
yanqi liu 2022년 1월 17일
yes,sir,may be
save trainedNet5.mat trainedNet5 rxTrainFrames
then use
load trainedNet5.mat
to get it
  댓글 수: 2
john karli
john karli 2022년 1월 17일
when i load load trainedNet5.mat then rxTrainFrames is not showingi n workspace and i got the error that rxTrainFrames is not define.
yanqi liu
yanqi liu 2022년 1월 17일
yes,sir,may be use
save trainedNet5.mat trainedNet5 rxTrainFrames
to get file “trainedNet5.mat”
then,use
clear all;
load trainedNet5.mat
rxTrainFrames
check the rxTrainFrames

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by