Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GengDavid/pytorch-cpn
/ functions
Functions
95 in github.com/GengDavid/pytorch-cpn
⨍
Functions
95
◇
Types & classes
15
↓ 48 callers
Method
append
(self, numbers)
utils/logger.py:60
↓ 7 callers
Function
im_to_torch
(img)
utils/imutils.py:14
↓ 6 callers
Function
to_numpy
(tensor)
utils/misc.py:9
↓ 5 callers
Function
im_to_numpy
(img)
utils/imutils.py:9
↓ 4 callers
Method
_make_layer
(self, block, planes, blocks, stride=1)
networks/resnet.py:119
↓ 4 callers
Function
gauss
(x, a, b, c, d=0)
utils/imutils.py:49
↓ 4 callers
Function
generate_heatmap
(heatmap, pt, sigma)
utils/imutils.py:37
↓ 4 callers
Function
isdir
(dirname)
utils/osutils.py:14
↓ 4 callers
Function
isfile
(fname)
utils/osutils.py:11
↓ 4 callers
Function
join
(path, *paths)
utils/osutils.py:17
↓ 4 callers
Function
mkdir_p
(dir_path)
utils/osutils.py:4
↓ 3 callers
Method
close
(self)
utils/logger.py:78
↓ 3 callers
Function
get_preds
get predictions from score maps in torch Tensor return type: torch.LongTensor
utils/evaluation.py:11
↓ 3 callers
Method
plot
(self, names=None)
utils/logger.py:69
↓ 3 callers
Function
transform
(pt, center, scale, res, invert=0, rot=0)
utils/transforms.py:107
↓ 2 callers
Method
__init__
(self, block, layers, num_classes=1000)
networks/resnet.py:98
↓ 2 callers
Function
add_pypath
(path)
256.192.model/test_config.py:6
↓ 2 callers
Function
add_pypath
(path)
384.288.model/test_config.py:6
↓ 2 callers
Function
adjust_learning_rate
Sets the learning rate to the initial LR decayed by schedule
utils/misc.py:58
↓ 2 callers
Method
augmentationCropImage
(self, img, bbox, joints=None)
dataloader/mscocoMulti.py:34
↓ 2 callers
Function
color_heatmap
(x)
utils/imutils.py:52
↓ 2 callers
Function
conv3x3
3x3 convolution with padding
networks/resnet.py:19
↓ 2 callers
Function
imshow
(img)
utils/imutils.py:62
↓ 2 callers
Function
save_model
(state, checkpoint='checkpoint', filename='checkpoint.pth.tar')
utils/misc.py:44
↓ 2 callers
Method
set_names
(self, names)
utils/logger.py:46
↓ 2 callers
Function
to_torch
(ndarray)
utils/misc.py:18
↓ 2 callers
Function
trans_anno
(ori_file, target_file, is_val)
label_transform.py:11
↓ 2 callers
Method
update
(self, val, n=1)
utils/evaluation.py:108
↓ 1 callers
Method
__init__
(self, lateral_channel, out_shape, num_class)
networks/refineNet.py:49
↓ 1 callers
Method
_lateral
(self, input_size)
networks/globalNet.py:29
↓ 1 callers
Method
_make_layer
(self, input_channel, num, output_shape)
networks/refineNet.py:58
↓ 1 callers
Method
_predict
(self, output_shape, num_class)
networks/globalNet.py:47
↓ 1 callers
Method
_predict
(self, input_channel, num_class)
networks/refineNet.py:65
↓ 1 callers
Method
_upsample
(self)
networks/globalNet.py:38
↓ 1 callers
Function
add_pypath
(path)
256.192.model/config.py:6
↓ 1 callers
Function
add_pypath
(path)
384.288.model/config.py:6
↓ 1 callers
Function
calc_dists
(preds, target, normalize)
utils/evaluation.py:30
↓ 1 callers
Function
color_normalize
(x, mean)
utils/transforms.py:11
↓ 1 callers
Method
data_augmentation
(self, img, label, operation)
dataloader/mscocoMulti.py:91
↓ 1 callers
Function
dist_acc
Return percentage below threshold while ignoring values with a -1
utils/evaluation.py:42
↓ 1 callers
Function
fliplr
(x)
utils/transforms.py:68
↓ 1 callers
Function
get_transform
General image processing functions
utils/transforms.py:77
↓ 1 callers
Function
main
(args)
256.192.model/train.py:22
↓ 1 callers
Function
main
(args)
256.192.model/test.py:29
↓ 1 callers
Function
main
(args)
384.288.model/train.py:22
↓ 1 callers
Function
main
(args)
384.288.model/test.py:29
↓ 1 callers
Function
ohkm
(loss, top_k)
256.192.model/train.py:86
↓ 1 callers
Function
ohkm
(loss, top_k)
384.288.model/train.py:86
↓ 1 callers
Function
plot_overlap
(logger, names=None)
utils/logger.py:14
↓ 1 callers
Method
reset
(self)
utils/evaluation.py:102
↓ 1 callers
Function
resize
(img, owidth, oheight)
utils/imutils.py:25
↓ 1 callers
Function
resnet101
Constructs a ResNet-101 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
networks/resnet.py:206
↓ 1 callers
Function
resnet50
Constructs a ResNet-50 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
networks/resnet.py:186
↓ 1 callers
Function
sample_with_heatmap
(inp, out, num_rows=2, parts_to_show=None)
utils/imutils.py:91
↓ 1 callers
Function
savefig
(fname, dpi=None)
utils/logger.py:10
↓ 1 callers
Function
train
(train_loader, model, criterions, optimizer)
256.192.model/train.py:84
↓ 1 callers
Function
train
(train_loader, model, criterions, optimizer)
384.288.model/train.py:84
↓ 1 callers
Function
transform_preds
(coords, center, scale, res)
utils/transforms.py:117
Function
CPN101
(out_size,num_class,pretrained=True)
networks/network.py:29
Function
CPN50
(out_size,num_class,pretrained=True)
networks/network.py:24
Method
__getitem__
(self, index)
dataloader/mscocoMulti.py:151
Method
__init__
(self)
utils/evaluation.py:99
Method
__init__
(self, fpath, title=None, resume=False)
utils/logger.py:24
Method
__init__
paths is a distionary with {name:filepath} pair
utils/logger.py:84
Method
__init__
(self, resnet, output_shape, num_class, pretrained=True)
networks/network.py:10
Method
__init__
(self, channel_settings, output_shape, num_class)
networks/globalNet.py:6
Method
__init__
(self, inplanes, planes, stride=1, downsample=None)
networks/resnet.py:28
Method
__init__
(self, inplanes, planes, stride=1, downsample=None)
networks/resnet.py:60
Method
__init__
(self, inplanes, planes, stride=1)
networks/refineNet.py:7
Method
__init__
(self, cfg, train=True)
dataloader/mscocoMulti.py:18
Method
__len__
(self)
dataloader/mscocoMulti.py:205
Function
accuracy
Calculate accuracy according to PCK, but uses ground truth heatmap rather than x,y locations First value to be returned is average accuracy a
utils/evaluation.py:49
Function
add_pypath
(path)
utils/osutils.py:20
Function
batch_with_heatmap
(inputs, outputs, mean=torch.Tensor([0.5, 0.5, 0.5]), num_rows=2, parts_to_show=None)
utils/imutils.py:126
Function
copy_log
(filepath = 'checkpoint')
utils/misc.py:40
Function
crop
(img, center, scale, res, rot=0)
utils/transforms.py:126
Function
final_preds
(output, center, scale, res)
utils/evaluation.py:72
Function
flip_back
flip output map
utils/transforms.py:20
Method
forward
(self, x)
networks/network.py:17
Method
forward
(self, x)
networks/globalNet.py:61
Method
forward
(self, x)
networks/resnet.py:38
Method
forward
(self, x)
networks/resnet.py:73
Method
forward
(self, x)
networks/resnet.py:136
Method
forward
(self, x)
networks/refineNet.py:26
Method
forward
(self, x)
networks/refineNet.py:73
Function
load_image
(img_path)
utils/imutils.py:21
Method
plot
(self, names=None)
utils/logger.py:91
Function
resnet152
Constructs a ResNet-152 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
networks/resnet.py:226
Function
resnet18
Constructs a ResNet-18 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
networks/resnet.py:150
Function
resnet34
Constructs a ResNet-34 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
networks/resnet.py:168
Function
save_checkpoint
(state, preds, is_best, checkpoint='checkpoint', filename='checkpoint.pth.tar', snapshot=None)
utils/misc.py:27
Function
save_pred
(preds, checkpoint='checkpoint', filename='preds_valid.mat')
utils/misc.py:52
Function
show_joints
(img, pts)
utils/imutils.py:67
Function
show_sample
(inputs, target)
utils/imutils.py:75
Function
shufflelr
flip coords
utils/transforms.py:44