Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The parallel pool is shut down suddenly #28

Open
immune1993 opened this issue May 10, 2017 · 0 comments
Open

The parallel pool is shut down suddenly #28

immune1993 opened this issue May 10, 2017 · 0 comments

Comments

@immune1993
Copy link

Hi,Dollar
I have modified the chnsCompute1 function in acftrain.m into
function chns = chnsCompute1( Is, opts ) if(isempty(Is)), chns=[]; return; end fprintf('Extracting features... '); start=clock; fs=opts.filters; pChns=opts.pPyramid.pChns; smooth=opts.pPyramid.smooth; dsTar=opts.modelDsPad/pChns.shrink; ds=size(Is); ds(1:end-1)=1; Is=squeeze(mat2cell2(Is,ds)); n=length(Is); chns=cell(1,n); parfor i=1:n C=chnsCompute(Is{i},pChns); C=convTri(cat(3,C.data{:}),smooth); if(~isempty(fs)), C=repmat(C,[1 1 39]); for j=1:size(C,3),C(:,:,j)=conv2(C(:,:,j),fs{floor((j+9)/10)},'same'); end; end shr=1; ds=size(C); cr=ds(1:2)-dsTar/shr; s=floor(cr/2)+1; e=ceil(cr/2); C=C(s(1):end-e(1),s(2):end-e(2),:); chns{i}=C; end; chns=cat(4,chns{:}); fprintf('done (time=%.0fs).\n',etime(clock,start)); end
The "fs"is a cell including 39 filter matrixs,then I run the acfdemocal.m,the parallel pool is shut down suddenly,and the matlab show:
error : acfTrain_CB>sampleWins (line 267)
parfor j=1:batch, ij=i+j;
The client lost connection to worker 3. This might be due to network problems, or the interactive communicating job might have errored.
Do you know how I can solve the problem?
look forward to your reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant