MCPcopy Create free account

hub / github.com/CandleLabAI/PCBSegClassNet / functions

Functions52 in github.com/CandleLabAI/PCBSegClassNet

↓ 8 callersFunctionconv_block
basic convolution block Args: inputs: input to the conv layer conv_type: type of convolution. "conv" for Conv2D and "ds" for
src/models/blocks.py:12
↓ 4 callersMethodinit
(self, images, labels)
src/data/dataloader.py:157
↓ 3 callersFunctionbottleneck_block
bottleneck block for residual convolution Args: inputs: input to the bottleneck residual block filters: number of filters
src/models/blocks.py:119
↓ 2 callersFunctiondict2str
dict to string for printing options. Args: opt (dict): Option dict. indent_level (int): Indent level. Default: 1. Return:
src/utils/options.py:47
↓ 2 callersFunctionget_data
(opt)
src/data/dataloader.py:176
↓ 2 callersFunctionget_encoder
Helper functionn to create encoder of the model
src/models/blocks.py:327
↓ 2 callersFunctionget_model
helper function to create model from given configurations
src/models/network.py:60
↓ 2 callersFunctionget_msg
()
src/utils/options.py:66
↓ 2 callersFunctionget_paths
(opt)
src/data/dataloader.py:70
↓ 2 callersFunctionparse
Parse option file. Args: opt_path (str): Option file path. is_train (str): Indicate whether in training or not. Default: True.
src/utils/options.py:33
↓ 2 callersFunctionresidual_bottleneck
residual convolution bottleneck block Args: inputs: input to the bottleneck residual block filters: number of filters
src/models/blocks.py:80
↓ 1 callersMethodbuild
build encoder, decoder and final model
src/models/network.py:28
↓ 1 callersMethodbuild
build encoder and final model
src/models/network.py:51
↓ 1 callersFunctioncreate_patches
Helper function to create patches Args: images_list: list of image paths masks_list: list of mask paths patch_size: i
src/data/create_patches.py:21
↓ 1 callersFunctiondice_coef
(y_true, y_pred)
src/models/loss.py:9
↓ 1 callersFunctiondice_loss
(y_true, y_pred)
src/models/loss.py:19
↓ 1 callersFunctionfeature_extractor
Feature Extractor module Args: input_layer: input to the Feature Extractor module Returns: fe_layer4: output of Feature E
src/models/blocks.py:260
↓ 1 callersFunctionfusion_module
Feaure fusion module between learning module and feature extractor module outputs: Args: learning_layer: output of learning module
src/models/blocks.py:291
↓ 1 callersFunctionget_classification
(encoder, num_classes)
src/models/blocks.py:393
↓ 1 callersFunctionget_decoder
(encoder, learning_layer1, learning_layer2, num_classes)
src/models/blocks.py:348
↓ 1 callersFunctionget_edsr_model
Get the final model from the given arguments
src/models/edsr.py:79
↓ 1 callersFunctioninit_log
Helper function for logging
src/train_segmentation.py:43
↓ 1 callersFunctioninit_log
(opt)
src/train_classification.py:26
↓ 1 callersFunctionjacard_coef
(y_true, y_pred)
src/models/loss.py:23
↓ 1 callersFunctionjacard_coef_loss
(y_true, y_pred)
src/models/loss.py:33
↓ 1 callersFunctionlearning_module
Learning module Args: input_layer: input to the leaning module Returns: learning_layer3: output of learning module
src/models/blocks.py:228
↓ 1 callersFunctionmain
main function for segmentation training
src/train_segmentation.py:60
↓ 1 callersFunctionmain
()
src/train_classification.py:42
↓ 1 callersFunctionmain
Main function for creating patches and splitting data
src/data/create_patches.py:129
↓ 1 callersFunctionmain
main function which creates mask Args: source_image_dir: image directory containing input images source_annotation_dir: annot
src/data/create_mask.py:131
↓ 1 callersFunctionordered_yaml
Support OrderedDict for yaml. Returns: yaml Loader and Dumper.
src/utils/options.py:9
↓ 1 callersFunctionparse_config
Helper function to parse config
src/train_segmentation.py:22
↓ 1 callersFunctionparse_config
()
src/train_classification.py:13
↓ 1 callersMethodpredict_step
prediction function
src/models/edsr.py:40
↓ 1 callersFunctionprepare_data
Helper function which creates masks and croops Args: source_image_dir: image directory containing input images source_annotat
src/data/create_mask.py:55
↓ 1 callersFunctionpyramid_pooling_block
pyramid pooling block from PSPNet Args: input_tensor: input to the pyramid pooling block bin_sizes: bin used to create pyrami
src/models/blocks.py:149
↓ 1 callersFunctionresblock
residual convolution block
src/models/edsr.py:59
↓ 1 callersFunctionsplit_data
Helper function to move patches and crop data into train and val
src/data/create_patches.py:63
↓ 1 callersFunctionssim_loss
(y_true, y_pred)
src/models/loss.py:37
↓ 1 callersFunctiontem_block
Texture Enhancement Module Args: inputs: input to the tem module Returns: permute_2: output from the tem module
src/models/blocks.py:171
↓ 1 callersFunctionupsampling
upsampling convolution block
src/models/edsr.py:69
FunctionDISLoss
(y_true, y_pred)
src/models/loss.py:41
Method__init__
(self, opt)
src/data/dataloader.py:96
Method__init__
(self, opt, num_classes)
src/data/dataloader.py:140
Method__init__
Args: opt: training options
src/models/network.py:18
Method__init__
Args: opt: training options
src/models/network.py:41
Functiondict_constructor
(loader, node)
src/utils/options.py:25
Functiondict_representer
(dumper, data)
src/utils/options.py:22
Methodinit
(self, images, masks)
src/data/dataloader.py:121
Methodparse_data
(self, image, mask)
src/data/dataloader.py:99
Methodparse_data
(self, image, label)
src/data/dataloader.py:144
Methodtrain_step
forward pass function
src/models/edsr.py:16