mirror of
https://gitcode.com/gh_mirrors/ope/OpenFace.git
synced 2026-05-14 11:17:53 +00:00
More simplification and cleanup of JANUS code
This commit is contained in:
36
matlab_version/models/Load_CECLM_Patch_Experts.m
Normal file
36
matlab_version/models/Load_CECLM_Patch_Experts.m
Normal file
@@ -0,0 +1,36 @@
|
||||
function [patches] = Load_CECLM_Patch_Experts( col_patch_dir, col_patch_file)
|
||||
%LOAD_PATCH_EXPERTS Summary of this function goes here
|
||||
% Detailed explanation goes here
|
||||
|
||||
colourPatchFiles = dir([col_patch_dir col_patch_file]);
|
||||
|
||||
% load all of the pathes
|
||||
for i=1:numel(colourPatchFiles)
|
||||
|
||||
load([col_patch_dir, colourPatchFiles(i).name]);
|
||||
|
||||
patch = struct;
|
||||
patch.centers = centers;
|
||||
patch.trainingScale = trainingScale;
|
||||
patch.visibilities = visiIndex;
|
||||
patch.patch_experts = patch_experts.patch_experts;
|
||||
patch.correlations = patch_experts.correlations;
|
||||
patch.rms_errors = patch_experts.rms_errors;
|
||||
patch.modalities = patch_experts.types;
|
||||
patch.multi_modal_types = patch_experts.types;
|
||||
|
||||
patch.type = 'CEN';
|
||||
|
||||
% Knowing what normalisation was performed during training is
|
||||
% important for fitting
|
||||
patch.normalisationOptionsCol = normalisationOptions;
|
||||
|
||||
if(i==1)
|
||||
patches = patch;
|
||||
else
|
||||
patches = [patches; patch];
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user