You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was going through your code to adapt it to the Kitti Benchmark, and i found an error in fcnTrain. More particularly in the function fcnInitializeModel.m here :
LINE 49 -LINE 55
% Modify the last fully-connected layer to have 21 output classes
% Initialize the new filters to zero
for i = net.getParamIndex(net.layers(end-1).params) ;
sz = size(net.params(i).value) ;
sz(end) = 21 ;
net.params(i).value = zeros(sz, 'single') ;
end
This is not working as for i=2, BIASES size is [1000,1]. Thus modifying sz(end) is wrong because you want to change 1000 to 21.
This mistake leads to an error when try to train the network, but you can easily correct it by changing
sz(end) = 21 ;
into
sz(sz == 1000) = 21 ;
This is it. By the way I wanted some advice concerning the training of the model on Kitti dataset. As there are only 2 classes : road and background, is it good to keep the same type of loss function as with PASCAL dataset? I keep being stuck at around 54% accuracy which is pretty bad
The text was updated successfully, but these errors were encountered:
I was going through your code to adapt it to the Kitti Benchmark, and i found an error in fcnTrain. More particularly in the function fcnInitializeModel.m here :
LINE 49 -LINE 55
% Modify the last fully-connected layer to have 21 output classes
% Initialize the new filters to zero
for i = net.getParamIndex(net.layers(end-1).params) ;
sz = size(net.params(i).value) ;
sz(end) = 21 ;
net.params(i).value = zeros(sz, 'single') ;
end
This is not working as for i=2, BIASES size is [1000,1]. Thus modifying sz(end) is wrong because you want to change 1000 to 21.
This mistake leads to an error when try to train the network, but you can easily correct it by changing
sz(end) = 21 ;
into
sz(sz == 1000) = 21 ;
This is it. By the way I wanted some advice concerning the training of the model on Kitti dataset. As there are only 2 classes : road and background, is it good to keep the same type of loss function as with PASCAL dataset? I keep being stuck at around 54% accuracy which is pretty bad
The text was updated successfully, but these errors were encountered: