dival.reconstructors.networks.iradonmap module

dival.reconstructors.networks.iradonmap.get_iradonmap_model(ray_trafo, fully_learned, scales=5, skip=4, channels=(32, 32, 64, 64, 128, 128), use_sigmoid=True, use_norm=True, coord_mat=None)[source]
class dival.reconstructors.networks.iradonmap.IRadonMap(ray_trafo, post_process, fully_learned, coord_mat=None)[source]

Bases: Module

__init__(ray_trafo, post_process, fully_learned, coord_mat=None)[source]

Initialize internal Module state, shared by both nn.Module and ScriptModule.

forward(x)[source]

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

class dival.reconstructors.networks.iradonmap.LearnedBackprojection(ray_trafo, use_weights, coord_mat=None)[source]

Bases: Module

__init__(ray_trafo, use_weights, coord_mat=None)[source]

Initialize internal Module state, shared by both nn.Module and ScriptModule.

forward(sinogram)[source]

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

calc_coord_mat()[source]