You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: cnn_epoch_evaluate.m
    path of file: ./repos/refinenet/main
    
    the code of the file until where you have to start completion: 

function cnn_epoch_evaluate(work_info, opts, imdb, net_config, work_info_epoch)


if ~work_info.ref.run_eva
    return;
end

if opts.use_dummy_gt
    return;
end


eva_param=opts.eva_param;
class_info=eva_param.class_info;

eva_result_epoch=work_in
    
function pixel_result=gen_predict_result(pixel_results, class_info)
        
    exclude_class_idxes=class_info.void_class_idxes;
    class_num=class_info.class_num;
    img_num=length(pixel_results);

    pixel_con_mat=zeros(class_num, class_num);

    for img_idx_idx=1:img_num
        one_pixel_result=pixel_results{img_idx_idx};
        pixel_con_mat=pixel_con_mat+one_pixel_result.confusion_mat;        
    end