Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dbolya/yolact
/ types & classes
Types & classes
63 in github.com/dbolya/yolact
⨍
Functions
449
◇
Types & classes
63
↓ 10 callers
Class
Config
Holds the configuration for anything you want it to. To get the currently active config, call get_cfg(). To use, just do cfg.x instead o
data/config.py:61
↓ 8 callers
Class
MovingAverage
Keeps an average window of the specified number of items.
utils/functions.py:9
↓ 4 callers
Class
Compose
Composes several augmentations together. Args: transforms (List[Transform]): list of transforms to compose. Example: >>> augme
utils/augmentations.py:39
↓ 4 callers
Class
DCNv2Pooling
external/DCNv2/dcn_v2.py:187
↓ 3 callers
Class
COCODetection
`MS Coco Detection <http://mscoco.org/dataset/#detections-challenge2016>`_ Dataset. Args: root (string): Root directory where images are d
data/coco.py:52
↓ 3 callers
Class
Yolact
██╗ ██╗ ██████╗ ██╗ █████╗ ██████╗████████╗ ╚██╗ ██╔╝██╔═══██╗██║ ██╔══██╗██╔════╝╚══██╔══╝ ╚████╔╝ ██║ ██║██║ █████
yolact.py:379
↓ 2 callers
Class
APDataObject
Stores all the information necessary to calculate the AP for one IoU and one class. Note: I type annotated this because why not.
eval.py:513
↓ 2 callers
Class
BackboneTransform
Transforms a BRG image made of floats in the range [0, 255] to whatever input the current backbone network needs. transform is a transfo
utils/augmentations.py:566
↓ 2 callers
Class
BaseTransform
Transorm to be used when evaluating.
utils/augmentations.py:601
↓ 2 callers
Class
COCOAnnotationTransform
Transforms a COCO annotation into a Tensor of bbox coords and label index Initilized with a dictionary lookup of classnames to indexes
data/coco.py:19
↓ 2 callers
Class
ConvertColor
utils/augmentations.py:226
↓ 2 callers
Class
ConvertFromInts
utils/augmentations.py:70
↓ 2 callers
Class
DCN
external/DCNv2/dcn_v2.py:97
↓ 2 callers
Class
FastBaseTransform
Transform that does all operations on the GPU for super speed. This doesn't suppport a lot of config settings and should only be used for pro
utils/augmentations.py:616
↓ 2 callers
Class
LogEntry
A class that allows you to navigate a dictonary using x.a.b[2].c, etc.
utils/logger.py:130
↓ 2 callers
Class
ProgressBar
A simple progress bar that just outputs a string.
utils/functions.py:51
↓ 2 callers
Class
RandomContrast
utils/augmentations.py:241
↓ 2 callers
Class
Resize
If preserve_aspect_ratio is true, this resizes to an approximate area of max_size * max_size
utils/augmentations.py:129
↓ 2 callers
Class
SavePath
Why is this a class? Why do I have a class for creating and parsing save paths? What am I doing with my life?
utils/functions.py:98
↓ 1 callers
Class
Bottleneck
Adapted from torchvision.models.resnet
backbone.py:13
↓ 1 callers
Class
Concat
yolact.py:34
↓ 1 callers
Class
CustomDataParallel
A Custom Data Parallel class that properly gathers lists of dictionaries.
eval.py:630
↓ 1 callers
Class
CustomDataParallel
This is a custom version of DataParallel that works better with our training data. It should also be faster than the general case.
train.py:149
↓ 1 callers
Class
DCNPooling
external/DCNv2/dcn_v2.py:223
↓ 1 callers
Class
DCNv2
external/DCNv2/dcn_v2.py:57
↓ 1 callers
Class
DarkNetBackbone
An implementation of YOLOv3's Darnet53 in https://pjreddie.com/media/files/papers/YOLOv3.pdf This is based off of the implementation of
backbone.py:252
↓ 1 callers
Class
Detect
At test time, Detect is the final layer of SSD. Decode location preds, apply non-maximum suppression to location predictions based on conf sc
layers/functions/detection.py:11
↓ 1 callers
Class
Detections
eval.py:300
↓ 1 callers
Class
Expand
utils/augmentations.py:408
↓ 1 callers
Class
FPN
Implements a general version of the FPN introduced in https://arxiv.org/pdf/1612.03144.pdf Parameters (in cfg.fpn): - num_featur
yolact.py:265
↓ 1 callers
Class
FastMaskIoUNet
yolact.py:363
↓ 1 callers
Class
InterpolateModule
This is a module version of F.interpolate (rip nn.Upsampling). Any arguments you give it just get passed along for the ride.
layers/interpolate.py:4
↓ 1 callers
Class
Log
A class to log information during training per information and save it out. It also can include extra debug information like GPU usage / temp
utils/logger.py:21
↓ 1 callers
Class
LogVisualizer
utils/logger.py:153
↓ 1 callers
Class
MultiBoxLoss
SSD Weighted Loss Function Compute Targets: 1) Produce Confidence Target Indices by matching ground truth boxes with (default)
layers/modules/multibox_loss.py:10
↓ 1 callers
Class
NetLoss
A wrapper for running the network and computing the loss This is so we can more efficiently use DataParallel.
train.py:132
↓ 1 callers
Class
Pad
Pads the image to the input width and height, filling the background with mean and putting the image in the top-left. Note: this expects
utils/augmentations.py:98
↓ 1 callers
Class
PhotometricDistort
utils/augmentations.py:504
↓ 1 callers
Class
PredictionModule
The (c) prediction module adapted from DSSD: https://arxiv.org/pdf/1701.06659.pdf Note that this is slightly different to the module in
yolact.py:47
↓ 1 callers
Class
PrepareMasks
Prepares the gt masks for use_gt_bboxes by cropping with the gt box and downsampling the resulting mask to mask_size, mask_size. This fun
utils/augmentations.py:527
↓ 1 callers
Class
RandomBrightness
utils/augmentations.py:256
↓ 1 callers
Class
RandomFlip
utils/augmentations.py:454
↓ 1 callers
Class
RandomHue
utils/augmentations.py:197
↓ 1 callers
Class
RandomLightingNoise
utils/augmentations.py:210
↓ 1 callers
Class
RandomMirror
utils/augmentations.py:443
↓ 1 callers
Class
RandomRot90
utils/augmentations.py:465
↓ 1 callers
Class
RandomSampleCrop
Crop Arguments: img (Image): the image being input during training boxes (Tensor): the original bounding boxes in pt form
utils/augmentations.py:279
↓ 1 callers
Class
RandomSaturation
utils/augmentations.py:183
↓ 1 callers
Class
SSDAugmentation
Transform to be used when training.
utils/augmentations.py:667
↓ 1 callers
Class
ToAbsoluteCoords
utils/augmentations.py:76
↓ 1 callers
Class
ToPercentCoords
utils/augmentations.py:87
Class
DarkNetBlock
Note: channels is the lesser of the two. The output will be expansion * channels.
backbone.py:235
Class
Handler
web/server.py:9
Class
Lambda
Applies a lambda as a transform.
utils/augmentations.py:59
Class
ResNetBackbone
Adapted from torchvision.models.resnet
backbone.py:60
Class
ResNetBackboneGN
backbone.py:163
Class
SwapChannels
Transforms a tensorized image by swapping the channels in the order specified in the swap tuple. Args: swaps (int triple): final orde
utils/augmentations.py:478
Class
ToCV2Image
utils/augmentations.py:269
Class
ToTensor
utils/augmentations.py:274
Class
VGGBackbone
Args: - cfg: A list of layers given as lists. Layers can be either 'M' signifying a max pooling layer, a number signifyin
backbone.py:324
Class
_DCNv2
external/DCNv2/dcn_v2.py:16
Class
_DCNv2Pooling
external/DCNv2/dcn_v2.py:132
Class
env
A class that lets you go: with timer.env(fn_name): # (...) That automatically manages a timer start and stop for you.
utils/timer.py:114