Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(21)  |  Call(21)  |  Derive(0)  |  Import(0)

src/x/b/xbob.thesis.elshafey2014-0.0.1a0/xbob/thesis/elshafey2014/utils/miris.py   xbob.thesis.elshafey2014(Download)
  gmm = bob.machine.GMMMachine(2,2)
 
  isvbase = bob.machine.ISVBase(ubm, 1)
  isvtrainer = bob.trainer.ISVTrainer(100, 1.) 
 

src/x/b/xbob.thesis.elshafey2014-0.0.1a0/xbob/thesis/elshafey2014/scripts/para_isv.py   xbob.thesis.elshafey2014(Download)
      isv_trainer = bob.trainer.ISVTrainer(self.m_tool.m_isv_training_iterations,  self.m_tool.m_relevance_factor)
      isv_trainer.rng = bob.core.random.mt19937(self.m_tool.m_init_seed)
      isv_base = bob.machine.ISVBase(ubm, self.m_tool.m_subspace_dimension_of_u)
      # Creates the ISVTrainer and call the initialization procedure
      isv_trainer.initialize(isv_base, data)
      # Temporary machine used for initialization
      ubm = bob.machine.GMMMachine(bob.io.HDF5File(self.m_tool.m_gmm_filename))
      m = bob.machine.ISVBase(ubm, self.m_tool.m_subspace_dimension_of_u)
      # Load machine
      machine_file = self.m_configuration.isv_intermediate_file % self.m_args.iteration
      isv_base = bob.machine.ISVBase(bob.io.HDF5File(machine_file))
      # Temporary machine used for initialization
      ubm = bob.machine.GMMMachine(bob.io.HDF5File(self.m_tool.m_gmm_filename))
      m = bob.machine.ISVBase(ubm, self.m_tool.m_subspace_dimension_of_u)
      # Load machine
      isv_base = bob.machine.ISVBase(bob.io.HDF5File(old_machine_file))

src/f/a/facereclib-1.2.1/facereclib/tools/ISV.py   facereclib(Download)
  def _train_isv(self, data):
    """Train the ISV model given a dataset"""
    utils.info("  -> Training ISV enroller")
    self.m_isvbase = bob.machine.ISVBase(self.m_ubm, self.m_subspace_dimension_of_u)
    # train ISV model
  def _load_projector_isv_resolved(self, isv_filename):
    self.m_isvbase = bob.machine.ISVBase(bob.io.HDF5File(isv_filename))
    # add UBM model from base class
    self.m_isvbase.ubm = self.m_ubm
 
    # Load Enroller
    hdf5file.cd('/Enroller')
    self.m_isvbase = bob.machine.ISVBase(hdf5file)
    # add UBM model from base class
    self.m_isvbase.ubm = self.m_ubm
  def train_enroller(self, train_features, enroller_file):
    utils.debug(" .... ISVVideo.train_enroller")
    ########## (same as ISV.train_enroller)
    # create a ISVBase with the UBM from the base class
    self.m_isvbase = bob.machine.ISVBase(self.m_ubm, self.m_subspace_dimension_of_u)

src/f/a/facereclib-HEAD/facereclib/tools/ISV.py   facereclib(Download)
  def _train_isv(self, data):
    """Train the ISV model given a dataset"""
    utils.info("  -> Training ISV enroller")
    self.m_isvbase = bob.machine.ISVBase(self.m_ubm, self.m_subspace_dimension_of_u)
    # train ISV model
  def _load_projector_isv_resolved(self, isv_filename):
    self.m_isvbase = bob.machine.ISVBase(bob.io.HDF5File(isv_filename))
    # add UBM model from base class
    self.m_isvbase.ubm = self.m_ubm
 
    # Load Enroller
    hdf5file.cd('/Enroller')
    self.m_isvbase = bob.machine.ISVBase(hdf5file)
    # add UBM model from base class
    self.m_isvbase.ubm = self.m_ubm
  def train_enroller(self, train_features, enroller_file):
    utils.debug(" .... ISVVideo.train_enroller")
    ########## (same as ISV.train_enroller)
    # create a ISVBase with the UBM from the base class
    self.m_isvbase = bob.machine.ISVBase(self.m_ubm, self.m_subspace_dimension_of_u)

src/x/b/xbob.spkrec-1.0.3/xbob/spkrec/tools/ISV.py   xbob.spkrec(Download)
  def train_enroler(self, train_files, enroler_file):
    # create a ISVBase with the UBM from the base class
    self.m_isvbase = bob.machine.ISVBase(self.m_ubm, self.m_config.ru)
    self.m_isvbase.ubm = self.m_ubm
 
  def load_enroler(self, enroler_file):
    """Reads the UBM model from file"""
    # now, load the ISV base, if it is included in the file
    self.m_isvbase = bob.machine.ISVBase(bob.io.HDF5File(enroler_file))
    # add UBM model from base class

src/b/o/bob.spear-1.1.2/spear/tools/ISV.py   bob.spear(Download)
  def train_enroler(self, train_files, enroler_file):
    # create a ISVBase with the UBM from the base class
    self.m_isvbase = bob.machine.ISVBase(self.m_ubm, self.m_config.ru)
    self.m_isvbase.ubm = self.m_ubm
 
  def load_enroler(self, enroler_file):
    """Reads the UBM model from file"""
    # now, load the ISV base, if it is included in the file
    self.m_isvbase = bob.machine.ISVBase(bob.io.HDF5File(enroler_file))
    # add UBM model from base class

src/m/a/maskattack.study-1.0.0/maskattack/study/analyze/isv.py   maskattack.study(Download)
 
      print 'Training ISV..'
      isvbase = bob.machine.ISVBase(ubm,160)
      isv_trainer = bob.trainer.ISVTrainer(10,4)
      isv_trainer.train(isvbase,train_dct_ubm)

src/f/a/facereclib-1.2.1/facereclib/tests/test_tools.py   facereclib(Download)
    hdf5file.cd('/')
    hdf5file.cd('Enroller')
    enroller_reference = bob.machine.ISVBase(hdf5file)
    enroller_reference.ubm = projector_reference
    self.assertTrue(tool.m_isvbase.is_similar_to(enroller_reference))

src/f/a/facereclib-HEAD/facereclib/tests/test_tools.py   facereclib(Download)
    hdf5file.cd('/')
    hdf5file.cd('Enroller')
    enroller_reference = bob.machine.ISVBase(hdf5file)
    enroller_reference.ubm = projector_reference
    self.assertTrue(tool.m_isvbase.is_similar_to(enroller_reference))