⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 init_learn_param.m~

📁 Standard model object recognition matlab code
💻 M~
字号:
% init_learn_param.m%% Sets of learning parameters are defined here.%    learn_num_patch     = number of patches per training image%    learn_patch_siz     = size of patches (spatial dimension)%    learn_num_afferents = number of afferents within the patch%    learn_scales        = scale band to learn from%    shift               = shift%  Retired (from Serre's code):%    learn_path          = path containing the learning files%    learn_files         = files to learn from (wild-card)%    learn_height        = resize the images, if necessary%    learn_savefile          = filename to save.global ON_CON  % Synaptic "CON"nections that are "ON".ON_CON = 10;global learn_file;[a,b,c] = init_filter_def(layer);learn_patch_siz     = b(1,:);%learn_num_afferents = b(:,4);shift               = c;learn_num_patch     = 25; learn_num_patch     = 50; % Learn from the first scale, unless defined below.switch layer   case (3) % S2b    learn_num_afferents = 100;    %learn_num_afferents = 10;    learn_scales = 5;   case (5) % S2    learn_num_afferents = 10;    learn_scales = 3;  case (7) % S3    learn_num_afferents = 100;    learn_scales = 1;   otherwise    learn_num_afferents = 100;    learn_scales = 1; endif learn_num_afferents > min(prod(b(1:3,:)))  error(['Too many features to learn for Layer ' num2str(layer)]);end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -