iddn_data.load_data

Load resources in the iDDN package

Include some example data and images. They are used in the tutorial and the testing part.

Attributes

data_dir

Functions

load_example([file_name])

Load example and testing data of iDDN

get_image_path([img_name])

Get the full path of an image in the resource folder of the iDDN package

Module Contents

iddn_data.load_data.data_dir
iddn_data.load_data.load_example(file_name='example.npz')

Load example and testing data of iDDN

Parameters:

file_name (str) – The name of the data file to load. It should be a NumPy npz file.

Return type:

The loaded NumPy object

iddn_data.load_data.get_image_path(img_name='three_layers.png')

Get the full path of an image in the resource folder of the iDDN package

Parameters:

img_name (str) – The name of the image to load

Return type:

The full path of the image