function inputs = getBatchHdd(imdb, batch)args_data = [{imdb.images.data(batch)} imdb.args];noise = imdb.images.noise(:,:,:, batch);label0 = imdb.images.label0(:,:,:, batch);label1 = imdb.images.label1(:,:,:, batch);data = vl_imreadjpeg(args_data{:});data = data{1}/255*2-1; % set in the range of [-1:1]
if (imdb.gpus == true) noise = gpuArray(noise); data = gpuArray(data); label0 = gpuArray(label0); label1 = gpuArray(label1); endinputs = ({'noise', noise, 'data', data, 'label0',label0 'label1',label1} );return;
MATLAB: What this function do
matconvnet dcgan
Best Answer