Example #1
0
    def get_h5files(self, data_size, pyr_shapes):
        """
            Save to the specified path with the given shapes.
        """
        h5files = []
        gcolumns = []

        assert self.paths is not None
        i = 0
        for path in self.paths:
            x_shape = (data_size, pyr_shapes[i][0] * pyr_shapes[i][1])
            y_shape = (data_size,)
            h5file, gcols = FaceBBoxDDMPytables.init_hdf5(path, (x_shape, y_shape))
            h5files.append(h5file)
            gcolumns.append(gcols)
            i += 1
        return h5files, gcolumns
Example #2
0
    def get_h5files(self, data_size, pyr_shapes):
        """
            Save to the specified path with the given shapes.
        """
        h5files = []
        gcolumns = []

        assert self.paths is not None
        i = 0
        for path in self.paths:
            x_shape = (data_size, pyr_shapes[i][0] * pyr_shapes[i][1])
            y_shape = (data_size, )
            h5file, gcols = FaceBBoxDDMPytables.init_hdf5(
                path, (x_shape, y_shape))
            h5files.append(h5file)
            gcolumns.append(gcols)
            i += 1
        return h5files, gcolumns
Example #3
0
 def get_h5file(self, path, x_shape, y_shape):
     """
         Save to the specified path with the given shapes.
     """
     h5file, gcols = FaceBBoxDDMPytables.init_hdf5(path, (x_shape, y_shape))
     return h5file, gcols
Example #4
0
 def get_h5file(self, path, x_shape, y_shape):
     """
         Save to the specified path with the given shapes.
     """
     h5file, gcols = FaceBBoxDDMPytables.init_hdf5(path, (x_shape, y_shape))
     return h5file, gcols