Hello I have recently started working on fine tuning the Alexnet model for my own dataset.
I want to modify the final two layer as I have only two classes:
net.layers = net.layers(1:end-2);
But when I modify the final FC layer like that and it gives me error.
net.layers{end+1} = struct('type', 'conv',...
'weights', {{f*randn(1,1,4196,2, 'single'), zeros(1,2,'single')}},...
'stride', [1 1],...
'pad', [0 0 0 0]) ;
Cell contents assignment to a non-cell array object.
Anyone, please help me resolve the error
Thanks
UPDATE: