MCPcopy Create free account

hub / github.com/JDSobek/MedYOLO / functions

Functions151 in github.com/JDSobek/MedYOLO

↓ 1 callersFunctionsmooth_BCE
(eps=0.1)
utils/loss.py:10
↓ 1 callersFunctionstrip_optimizer
(f='best.pt', s='')
utils/general.py:155
↓ 1 callersFunctiontensor_cutout
Applies image cutout augmentation https://arxiv.org/abs/1708.04552 Args: im (torch.Tensor): 3-D tensor to be augmented. labels (L
utils3D/augmentations.py:18
↓ 1 callersMethodupdate_attr
(self, model, include=(), exclude=('process_group', 'reducer'))
utils/torch_utils.py:137
↓ 1 callersFunctionweight_reduce_loss
Apply element-wise weight and reduce loss. Args: loss (Tensor): Element-wise loss. weight (Tensor): Element-wise weights.
utils3D/lossandmetrics.py:41
↓ 1 callersFunctionzxydwhn2zxyzxy
Convert nx6 boxes from [z, x, y, d, w, h] normalized to [z1, x1, y1, z2, x2, y2] where zxy1=top-left, zxy2=bottom-right Args: labels (tor
utils3D/general.py:58
↓ 1 callersFunctionzxyzxy2zxydwhn
Convert nx6 boxes from [z1, x1, y1, z2, x2, y2] to [z, x, y, d, w, h] normalized where zxy1=top-left, zxy2=bottom-right Args: labels (tor
utils3D/general.py:101
Method__call__
(self, epoch, fitness)
utils/torch_utils.py:92
Method__call__
Calculate losses Args: p (torch.Tensor): predictions to test targets (torch.Tensor): targets corresponding to predict
utils3D/lossandmetrics.py:228
Method__getitem__
Loads niftis and converts to torch tensor to be fed as input to the model. Args: index (int): dataset index of image to be read.
utils3D/datasets.py:288
Method__init__
(self, loss_fcn, gamma=1.5, alpha=0.25)
utils/loss.py:17
Method__init__
(self, patience=30)
utils/torch_utils.py:86
Method__init__
(self, model, decay=0.9999, updates=0)
utils/torch_utils.py:117
Method__init__
(self, *args, **kwargs)
utils/datasets.py:33
Method__init__
Initialization for YOLO loss. Args: model (torch.Module): YOLO model to calculate loss for. autobalance (bool, option
utils3D/lossandmetrics.py:194
Method__init__
WIP - doesn't fill confusion matrices, could be due to bad predictions Create confusion matrices to save training results Updated
utils3D/lossandmetrics.py:370
Method__init__
Initialization for the inference Dataset Args: path (str): parent directory for the Dataset's files img_size (int, op
utils3D/datasets.py:93
Method__init__
Initialization for the training Dataset Args: path (str): parent directory for the Dataset's files img_size (int, opt
utils3D/datasets.py:144
Method__init__
3D convolution and 3D batchnorm layer for 3D YOLO models Args: c1 (int): channels in c2 (int): channels out
models3D/model.py:131
Method__init__
Bottleneck layers for 3D YOLO models Args: c1 (int): channels in c2 (int): channels out shortcut (bool, o
models3D/model.py:156
Method__init__
Spatial Pyramid Pooling - Fast (SPPF) layer for YOLOv5 by Glenn Jocher Args: c1 (int): channels in c2 (int): channels
models3D/model.py:202
Method__init__
YOLO Detection layer, adjusted for 3D Args: nc (int, optional): Number of classes. Defaults to 80. anchors (Tuple[int
models3D/model.py:228
Method__init__
3D YOLO model base class. Args: cfg (Dict[str] or str, optional): Model configuration dictionary or path to yaml file containing
models3D/model.py:394
Method__init__
(self, dimension=1)
models/common.py:19
Method__init__
(self)
models/experimental.py:12
Method__iter__
(self)
utils/datasets.py:41
Method__iter__
(self)
utils3D/datasets.py:113
Method__len__
(self)
utils/datasets.py:38
Method__len__
(self)
utils3D/datasets.py:136
Method__len__
(self)
utils3D/datasets.py:285
Method__next__
(self)
utils3D/datasets.py:117
Functioncheck_anchor_order
Check anchor order against stride order for YOLO3D Detect() module m, and correct if necessary. Suggested not to run Reverses an
utils3D/anchors.py:161
Functioncheck_dataset
Generates the dataset dictionary used during training. Has removed download functionality found in YOLOv5 version. Args: data (str, p
utils3D/general.py:22
Methodcollate_fn
Used to collate images to create the input batches
utils3D/datasets.py:345
Methodforward
(self, pred, true)
utils/loss.py:25
Methodforward
(self, x)
models3D/model.py:148
Methodforward
(self, x)
models3D/model.py:172
Methodforward
(self, x)
models3D/model.py:197
Methodforward
(self, x)
models3D/model.py:216
Methodforward
(self, x)
models3D/model.py:251
Methodforward
(self, x)
models/common.py:23
Methodforward
(self, x, augment=False, profile=False, visualize=False)
models/experimental.py:15
Methodforward_fuse
(self, x)
models3D/model.py:151
Methodget_registered_actions
Returns all the registered actions by callback hook Args: hook The name of the hook to check, defaults to all
utils/callbacks.py:51
Methodmatrix
(self)
utils3D/lossandmetrics.py:426
Methodprint
(self)
utils3D/lossandmetrics.py:458
Methodregister_action
Register a new action to a callback hook Args: hook The callback hook name to register the action to
utils/callbacks.py:38
Functionrun
(**kwargs)
train.py:511
Functionscale_img
Scales img(bs,1,z,y,x) by ratio optionally constrained to a multiple of gs Args: img (torch.Tensor): image to be resized ratio (f
models3D/model.py:305
Functiontorch_to_nifti
Converts unnormalized torch tensor into a nifti image. Useful for debugging new (e.g. non-NIfTI) dataloader pipelines.
utils3D/nifti_utils.py:15
Functionverify_image_label
Verify one image-label pair. Works for .nii and .nii.gz files. Args: args (Tuple[str]): contains the image path, label path, and error m
utils3D/datasets.py:420
← previous101–151 of 151, ranked by callers