niftynet.contrib.csv_reader.csv_reader module

class CSVReader(names=None)[source]

Bases: niftynet.layer.base_layer.Layer

initialise(path_to_csv)[source]
to_ohe(labels)[source]
layer_op(idx=None, shuffle=True)[source]
shapes

return – dict of label shape and label location shape

tf_dtypes

Infer input data dtypes in TF

tf_shapes

return – a dictionary of sampler output tensor shapes