utils module
- utils.load_h5_examples(ds_path, class_name, ds_name, process_func=None, show=True)
This is a utility function used to load plume images from hdf5 file based on the the ds_name after preprocess with process_func.
- Parameters
ds_path (str) – path to hdf5 file
class_name (str(, optional)) – class name of hdf5 file
ds_name (str) – dataset name for plume images in hdf5 file
process_func (function(, optional)) – preprocess function
show (bool(, optional)) – show the plumes images if show=True
- utils.show_h5_dataset_name(ds_path, class_name=None)
This is a utility function used to show the dataset names in a hdf5 file.
- Parameters
ds_path (str) – path to hdf5 file
class_name (str(, optional)) – class name of hdf5 file
- utils.show_images(images, labels=None, img_per_row=8, colorbar=False)
This is a utility function used to show a series images.
- Parameters
images (np.array) – input images
labels (str(, optional)) – labels for images
img_per_row (int(, optional)) – how many images to show in one row
colorbar (bool(, optional)) – to determine if colobar is included