Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CandleLabAI/PCBSegClassNet
/ functions
Functions
52 in github.com/CandleLabAI/PCBSegClassNet
⨍
Functions
52
◇
Types & classes
5
↓ 8 callers
Function
conv_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 callers
Method
init
(self, images, labels)
src/data/dataloader.py:157
↓ 3 callers
Function
bottleneck_block
bottleneck block for residual convolution Args: inputs: input to the bottleneck residual block filters: number of filters
src/models/blocks.py:119
↓ 2 callers
Function
dict2str
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 callers
Function
get_data
(opt)
src/data/dataloader.py:176
↓ 2 callers
Function
get_encoder
Helper functionn to create encoder of the model
src/models/blocks.py:327
↓ 2 callers
Function
get_model
helper function to create model from given configurations
src/models/network.py:60
↓ 2 callers
Function
get_msg
()
src/utils/options.py:66
↓ 2 callers
Function
get_paths
(opt)
src/data/dataloader.py:70
↓ 2 callers
Function
parse
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 callers
Function
residual_bottleneck
residual convolution bottleneck block Args: inputs: input to the bottleneck residual block filters: number of filters
src/models/blocks.py:80
↓ 1 callers
Method
build
build encoder, decoder and final model
src/models/network.py:28
↓ 1 callers
Method
build
build encoder and final model
src/models/network.py:51
↓ 1 callers
Function
create_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 callers
Function
dice_coef
(y_true, y_pred)
src/models/loss.py:9
↓ 1 callers
Function
dice_loss
(y_true, y_pred)
src/models/loss.py:19
↓ 1 callers
Function
feature_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 callers
Function
fusion_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 callers
Function
get_classification
(encoder, num_classes)
src/models/blocks.py:393
↓ 1 callers
Function
get_decoder
(encoder, learning_layer1, learning_layer2, num_classes)
src/models/blocks.py:348
↓ 1 callers
Function
get_edsr_model
Get the final model from the given arguments
src/models/edsr.py:79
↓ 1 callers
Function
init_log
Helper function for logging
src/train_segmentation.py:43
↓ 1 callers
Function
init_log
(opt)
src/train_classification.py:26
↓ 1 callers
Function
jacard_coef
(y_true, y_pred)
src/models/loss.py:23
↓ 1 callers
Function
jacard_coef_loss
(y_true, y_pred)
src/models/loss.py:33
↓ 1 callers
Function
learning_module
Learning module Args: input_layer: input to the leaning module Returns: learning_layer3: output of learning module
src/models/blocks.py:228
↓ 1 callers
Function
main
main function for segmentation training
src/train_segmentation.py:60
↓ 1 callers
Function
main
()
src/train_classification.py:42
↓ 1 callers
Function
main
Main function for creating patches and splitting data
src/data/create_patches.py:129
↓ 1 callers
Function
main
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 callers
Function
ordered_yaml
Support OrderedDict for yaml. Returns: yaml Loader and Dumper.
src/utils/options.py:9
↓ 1 callers
Function
parse_config
Helper function to parse config
src/train_segmentation.py:22
↓ 1 callers
Function
parse_config
()
src/train_classification.py:13
↓ 1 callers
Method
predict_step
prediction function
src/models/edsr.py:40
↓ 1 callers
Function
prepare_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 callers
Function
pyramid_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 callers
Function
resblock
residual convolution block
src/models/edsr.py:59
↓ 1 callers
Function
split_data
Helper function to move patches and crop data into train and val
src/data/create_patches.py:63
↓ 1 callers
Function
ssim_loss
(y_true, y_pred)
src/models/loss.py:37
↓ 1 callers
Function
tem_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 callers
Function
upsampling
upsampling convolution block
src/models/edsr.py:69
Function
DISLoss
(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
Function
dict_constructor
(loader, node)
src/utils/options.py:25
Function
dict_representer
(dumper, data)
src/utils/options.py:22
Method
init
(self, images, masks)
src/data/dataloader.py:121
Method
parse_data
(self, image, mask)
src/data/dataloader.py:99
Method
parse_data
(self, image, label)
src/data/dataloader.py:144
Method
train_step
forward pass function
src/models/edsr.py:16