MCPcopy Create free account

hub / github.com/MVIG-SJTU/AlphaPose / functions

Functions1,314 in github.com/MVIG-SJTU/AlphaPose

↓ 62 callersMethodget
(self, key)
alphapose/utils/registry.py:23
↓ 52 callersMethodload
(self, verbose=True)
detector/yolox/yolox/layers/jit_ops.py:86
↓ 38 callersMethodget
(self, k, default_value=None)
detector/efficientdet/effdet/config/config.py:65
↓ 20 callersMethodeval
(self, model, evaluator, is_distributed, half=False)
detector/yolox/yolox/exp/yolox_base.py:326
↓ 18 callersMethodread
(self)
scripts/demo_api.py:187
↓ 17 callersMethodsave
(self, boxes, scores, ids, hm_data, cropped_boxes, orig_img, im_name)
scripts/demo_api.py:290
↓ 17 callersMethodwrite
(self, arg)
alphapose/utils/metrics.py:81
↓ 15 callersFunctiongetTime
(time1=0)
alphapose/utils/vis.py:835
↓ 14 callersFunctionget_detector
(opt=None)
detector/apis.py:10
↓ 12 callersMethodstart
(self)
scripts/demo_api.py:215
↓ 12 callersMethodtest_transform
(self, src, bbox)
alphapose/utils/presets/simple_transform.py:84
↓ 12 callersMethodwait_and_put
(self, queue, item)
alphapose/utils/detector.py:137
↓ 11 callersFunctionbbox_clip_xyxy
Clip bounding box with format (xmin, ymin, xmax, ymax) to specified boundary. All bounding boxes will be clipped to the new region `(0, 0, width,
alphapose/utils/bbox.py:108
↓ 11 callersFunctionbbox_xywh_to_xyxy
Convert bounding boxes from format (x, y, w, h) to (xmin, ymin, xmax, ymax) Parameters ---------- xywh : list, tuple or numpy.ndarray
alphapose/utils/bbox.py:40
↓ 10 callersMethod__init__
(self)
alphapose/models/hardnet.py:38
↓ 10 callersFunctionget_3rd_point
Return vector c that perpendicular to (a - b).
trackers/utils/basetransforms.py:330
↓ 10 callersFunctionget_3rd_point
Return vector c that perpendicular to (a - b).
alphapose/utils/transforms.py:311
↓ 10 callersFunctionim_to_torch
Transform ndarray image to torch tensor. Parameters ---------- img: numpy.ndarray An ndarray with shape: `(H, W, 3)`. Returns
alphapose/utils/transforms.py:76
↓ 9 callersMethod__init__
( self, num_classes, blocks, layers, channels, feature_d
trackers/ReidModels/osnet_ain.py:309
↓ 9 callersMethod__init__
(self, config, feature_info, norm_layer=nn.BatchNorm2d, norm_kwargs=None, act_layer=_ACT_LAYER)
detector/efficientdet/effdet/efficientdet.py:288
↓ 9 callersMethod_lazy_load_ann_file
(self)
alphapose/datasets/custom.py:129
↓ 8 callersMethoddetect_one_img
(self, img_name)
detector/apis.py:48
↓ 8 callersFunctionget_affine_transform
(center, scale, rot, output_size,
alphapose/utils/transforms.py:762
↓ 8 callersFunctioninit_pretrained_weights
Initializes model with pretrained weights. Layers that don't match with pretrained layers in name or size are kept unchanged.
trackers/ReidModels/resnet_fc.py:376
↓ 8 callersFunctionto_np
(array, dtype=np.float32)
alphapose/models/layers/smpl/SMPL.py:32
↓ 8 callersFunctionto_tensor
(array, dtype=torch.float32)
alphapose/models/layers/smpl/SMPL.py:21
↓ 7 callersMethod__init__
( self, num_classes, blocks, layers, channels, feature_dim=512
trackers/ReidModels/osnet.py:291
↓ 7 callersFunction_center_scale_to_box
(center, scale)
alphapose/utils/bbox.py:217
↓ 7 callersMethod_make_cbl
(self, _in, _out, ks)
detector/yolox/yolox/models/yolo_fpn.py:38
↓ 7 callersFunctioncreate_yolox_model
creates and loads a YOLOX model Args: name (str): name of model. for example, "yolox-s", "yolox-tiny". pretrained (bool): load pr
detector/yolox/yolox/models/build.py:31
↓ 7 callersMethodcumsum
(sequence)
alphapose/datasets/concat_dataset.py:72
↓ 7 callersMethoddevice
(self)
detector/efficientdet/effdet/object_detection/box_list.py:189
↓ 7 callersFunctionflip
(x)
alphapose/utils/transforms.py:484
↓ 6 callersMethod__init__
(self, cfgfile)
detector/yolo/darknet.py:304
↓ 6 callersMethod__init__
(self, in_channels, out_channels, ksize=1, stride=1, act="silu")
detector/yolox/yolox/models/network_blocks.py:191
↓ 6 callersMethod_make_duc_stage
(self, layer_config, inplanes, outplanes)
alphapose/models/fastpose_duc_dense.py:106
↓ 6 callersFunctionjoint_stracks
(tlista, tlistb)
detector/tracker/tracker/multitracker.py:299
↓ 6 callersFunctionprep_image
Prepare image for inputting to the neural network. Returns a Variable
detector/yolo/preprocess.py:34
↓ 6 callersMethodstop
(self)
alphapose/utils/writer.py:209
↓ 6 callersMethodterminate
(self)
alphapose/utils/writer.py:214
↓ 6 callersFunctionwrite_results
(prediction, confidence, num_classes, nms=True, nms_conf=0.4)
detector/yolo/util.py:122
↓ 5 callersFunction_box_to_center_scale
Convert box coordinates to center and scale. adapted from https://github.com/Microsoft/human-pose-estimation.pytorch
alphapose/utils/bbox.py:197
↓ 5 callersMethod_reshape_and_cast
(self, t)
detector/efficientdet/effdet/object_detection/matcher.py:162
↓ 5 callersFunctionaffine_transform
(pt, t)
alphapose/utils/transforms.py:798
↓ 5 callersMethodgather_based_on_match
Gathers elements from `input_tensor` based on match results. For columns that are matched to a row, gathered_tensor[col] is set to input_tens
detector/efficientdet/effdet/object_detection/matcher.py:165
↓ 5 callersFunctionget_box
(pose, img_height, img_width)
trackers/PoseFlow/poseflow_infer.py:14
↓ 5 callersFunctionim_to_torch
Transform ndarray image to torch tensor. Parameters ---------- img: numpy.ndarray An ndarray with shape: `(H, W, 3)`. Return
trackers/utils/basetransforms.py:77
↓ 5 callersFunctioninit_pretrained_weights
Initializes model with pretrained weights. Layers that don't match with pretrained layers in name or size are kept unchanged.
trackers/ReidModels/osnet.py:440
↓ 5 callersMethodload_weights
(self, weightfile)
detector/yolo/darknet.py:404
↓ 5 callersFunctionmake_cuda_ext
(name, module, sources)
setup.py:104
↓ 5 callersMethodmake_group_layer
starts with conv layer then has `num_blocks` `ResLayer`
detector/yolox/yolox/models/darknet.py:59
↓ 5 callersMethodnum_boxes
Returns number of boxes held in collection. Returns: a tensor representing the number of boxes held in the collection.
detector/efficientdet/effdet/object_detection/box_list.py:57
↓ 5 callersFunctionprep_image
Prepare image for inputting to the neural network. Returns a Variable
detector/efficientdet/utils.py:63
↓ 5 callersMethodupdate
Update a matched track :type new_track: STrack :type frame_id: int :type update_feature: bool :return:
trackers/tracker_api.py:114
↓ 5 callersMethodupdate
(self)
alphapose/utils/writer.py:80
↓ 5 callersFunctionupdate_config
(config_file)
alphapose/utils/config.py:5
↓ 5 callersFunctionvertices2joints
Calculates the 3D joint locations from the vertices Parameters ---------- J_regressor : torch.tensor JxV The regressor array tha
alphapose/models/layers/smpl/lbs.py:402
↓ 4 callersFunction_integral_tensor
(preds, num_joints, output_3d, hm_width, hm_height, hm_depth, integral_operation, norm_type='softmax')
alphapose/utils/transforms.py:650
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1, dilate=False)
trackers/ReidModels/resnet_fc.py:258
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1, with_ibn=False)
trackers/ReidModels/ResNet.py:106
↓ 4 callersMethod_set_values_using_indicator
Set the indicated fields of x to val. Args: x: tensor. indicator: boolean with same shape as x. val: scal
detector/efficientdet/effdet/object_detection/argmax_matcher.py:157
↓ 4 callersFunctioncal_grade
(l, w)
trackers/PoseFlow/utils.py:60
↓ 4 callersMethodclear_queues
(self)
alphapose/utils/writer.py:218
↓ 4 callersMethodcount
(self)
alphapose/utils/writer.py:205
↓ 4 callersFunctionevaluate_mAP
Evaluate mAP result for coco dataset. Parameters ---------- res_file: str Path to result json file. ann_type: str ann
alphapose/utils/metrics.py:65
↓ 4 callersFunctionflip_heatmap
Flip pose heatmap according to joint pairs. Parameters ---------- heatmap : numpy.ndarray Heatmap of joints. joint_pairs : lis
alphapose/utils/transforms.py:491
↓ 4 callersFunctionflip_joints_3d
Flip 3d joints. Parameters ---------- joints_3d : numpy.ndarray Joints in shape (num_joints, 3, 2) width : int Image w
alphapose/utils/transforms.py:526
↓ 4 callersMethodforward
(self, x)
alphapose/models/hardnet.py:40
↓ 4 callersFunctionget_func_heatmap_to_coord
(cfg)
alphapose/utils/transforms.py:955
↓ 4 callersMethodhas_field
(self, field)
detector/efficientdet/effdet/object_detection/box_list.py:84
↓ 4 callersMethodinitialize_biases
(self, prior_prob)
detector/yolox/yolox/models/yolo_head.py:133
↓ 4 callersFunctionjoint_stracks
(tlista, tlistb)
trackers/tracker_api.py:330
↓ 4 callersFunctionletterbox
(img, height=608, width=1088, color=(127.5, 127.5, 127.5))
detector/tracker/utils/datasets.py:235
↓ 4 callersFunctionletterbox_image
resize image with unchanged aspect ratio using padding
detector/yolo/preprocess.py:19
↓ 4 callersFunctionload_classes
(namesfile)
detector/yolo/util.py:89
↓ 4 callersMethodmake_layer
(self, block, planes, blocks, stride=1, dcn=None)
alphapose/models/layers/ShuffleResnet.py:176
↓ 4 callersMethodmake_layer
(self, block, planes, blocks, stride=1, dcn=None)
alphapose/models/layers/SE_Resnet.py:193
↓ 4 callersMethodmake_layer
(self, block, planes, blocks, stride=1, dcn=None)
alphapose/models/layers/Resnet.py:184
↓ 4 callersMethodmark_removed
(self)
detector/tracker/tracker/basetrack.py:51
↓ 4 callersMethodre_activate
(self, new_track, frame_id, new_id=False)
detector/tracker/tracker/multitracker.py:63
↓ 4 callersMethodrunning
(self)
alphapose/utils/writer.py:201
↓ 4 callersMethodstart_worker
(self, target)
alphapose/utils/detector.py:95
↓ 4 callersMethodstep
(self, img, alphapose_results)
trackers/PoseFlow/poseflow_infer.py:102
↓ 4 callersFunctionsub_stracks
(tlista, tlistb)
detector/tracker/tracker/multitracker.py:312
↓ 4 callersMethodtlwh_to_xyah
Convert bounding box to format `(center x, center y, aspect ratio, height)`, where the aspect ratio is `width / height`.
trackers/tracker_api.py:163
↓ 4 callersMethodtlwh_to_xyah
Convert bounding box to format `(center x, center y, aspect ratio, height)`, where the aspect ratio is `width / height`.
detector/tracker/tracker/multitracker.py:119
↓ 4 callersFunctiontorch_to_im
Transform torch tensor to ndarray image. Parameters ---------- img: torch.Tensor A tensor with shape: `(3, H, W)`. Returns
trackers/utils/basetransforms.py:98
↓ 4 callersFunctiontorch_to_im
Transform torch tensor to ndarray image. Parameters ---------- img: torch.Tensor A tensor with shape: `(3, H, W)`. Returns
alphapose/utils/transforms.py:94
↓ 4 callersMethodupdate
(self)
scripts/demo_api.py:219
↓ 4 callersMethodupdate
Update a matched track :type new_track: STrack :type frame_id: int :type update_feature: bool :return:
detector/tracker/tracker/multitracker.py:76
↓ 4 callersMethodwait_and_put
(self, queue, item)
alphapose/utils/webcam_detector.py:106
↓ 4 callersFunctionweights_init
(m)
alphapose/models/hardnet.py:371
↓ 4 callersFunctionwrite_json
all_result: result dict of predictions outputpath: output directory
alphapose/utils/pPose_nms.py:659
↓ 3 callersMethod__init__
(self, cfg_path, img_size=(1088, 608), nID=1591, test_emb=False)
detector/tracker/models.py:202
↓ 3 callersMethod__init__
(self, inplanes, planes, stride=1, downsample=None)
alphapose/models/hrnet.py:28
↓ 3 callersMethod__init__
(self, in_channels, out_channels, kernel_size,
alphapose/models/layers/dcn/deform_conv.py:192
↓ 3 callersMethod_make_duc_stage
(self, layer_config, inplanes, outplanes)
alphapose/models/fastpose_duc.py:71
↓ 3 callersMethod_make_layer
(self, blocks, layer, in_channels, out_channels)
trackers/ReidModels/osnet_ain.py:358
↓ 3 callersMethod_make_layer
( self, block, layer, in_channels, out_channels, reduce_spatia
trackers/ReidModels/osnet.py:344
↓ 3 callersMethod_make_stage
(self, layer_config, num_inchannels, multi_scale_output=True)
alphapose/models/hrnet.py:389
next →1–100 of 1,314, ranked by callers