MCPcopy Create free account

hub / github.com/csxmli2016/DFDNet / functions

Functions280 in github.com/csxmli2016/DFDNet

↓ 16 callersFunctionAttentionBlock
(in_channel)
models/networks.py:416
↓ 9 callersMethod__init__
(self, channel)
models/networks.py:231
↓ 9 callersFunctionmake_dataset
(dirs)
data/image_folder.py:24
↓ 6 callersFunctionflip
Flip an image or a set of heatmaps left-right Arguments: tensor {numpy.array or torch.tensor} -- [the input image or heatmaps] Keywo
FaceLandmarkDetection/face_alignment/utils.py:198
↓ 5 callersFunction_unsqueeze_ft
add new dimensions at the front and the tail
sync_batchnorm/batchnorm.py:42
↓ 5 callersMethodapply
(module, name)
models/networks.py:254
↓ 5 callersMethodsave
(self)
util/html.py:45
↓ 4 callersFunctionToRGB
(in_channel)
models/networks.py:409
↓ 4 callersMethod__init__
(self, num_modules=1)
FaceLandmarkDetection/face_alignment/models.py:147
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
FaceLandmarkDetection/face_alignment/models.py:229
↓ 4 callersFunctionadaptive_instance_normalization_4D
(content_feat, style_feat)
models/networks.py:128
↓ 4 callersMethodadd_header
(self, str)
util/html.py:25
↓ 4 callersMethodadd_images
(self, ims, txts, links, width=400)
util/html.py:33
↓ 4 callersFunctioncompute_sum
(x, axis=None, keepdim=False)
models/networks.py:403
↓ 4 callersFunctionconvU
(in_channels, out_channels,conv_layer, norm_layer, kernel_size=3, stride=1,dilation=1, bias=True)
models/networks.py:152
↓ 4 callersMethodget
Download a dataset. Args: save_path : str A directory to save the data to. dataset : str, o
util/get_data.py:81
↓ 3 callersFunctioncalc_mean_std_4D
(feat, eps=1e-5)
models/networks.py:118
↓ 3 callersFunctionconv3x3
3x3 convolution with padding
FaceLandmarkDetection/face_alignment/models.py:7
↓ 3 callersMethodeval
(self)
models/base_model.py:47
↓ 3 callersMethodget
(self)
sync_batchnorm/comm.py:32
↓ 3 callersMethodget_landmarks
Deprecated, please use get_landmarks_from_image Arguments: image_or_path {string or numpy.array or torch.tensor} -- The input
FaceLandmarkDetection/face_alignment/api.py:97
↓ 3 callersMethodput
(self, result)
sync_batchnorm/comm.py:26
↓ 3 callersFunctiontransform
Generate and affine transformation matrix. Given a set of points, a center, a scale and a targer resolution, the function generates and affin
FaceLandmarkDetection/face_alignment/utils.py:56
↓ 2 callersMethod__init__
(self,TVLoss_weight=1)
util/Loss.py:7
↓ 2 callersFunction__print_size_warning
(ow, oh, w, h)
data/base_dataset.py:96
↓ 2 callersFunction__scale_width
(img, target_width)
data/base_dataset.py:75
↓ 2 callersMethod_check_input_dim
(self, input)
sync_batchnorm/batchnorm.py:204
↓ 2 callersMethod_print
(self, text)
util/get_data.py:37
↓ 2 callersFunction_sum_ft
sum over the first and last dimention
sync_batchnorm/batchnorm.py:37
↓ 2 callersMethod_tensor_size
(self,t)
util/Loss.py:21
↓ 2 callersFunctionappdata_dir
appdata_dir(appname=None, roaming=False) Get the path to the application directory, where applications are allowed to write user specific fi
FaceLandmarkDetection/face_alignment/utils.py:220
↓ 2 callersFunctioncalc_mean_std
(feat, eps=1e-5)
models/networks.py:95
↓ 2 callersFunctiondetect
(net, img, device)
FaceLandmarkDetection/face_alignment/detection/sfd/detect.py:19
↓ 2 callersMethoddetect_from_image
Detects faces in a given image. This function detects the faces present in a provided BGR(usually) image. The input can be either
FaceLandmarkDetection/face_alignment/detection/core.py:33
↓ 2 callersFunctiondraw_gaussian
(image, point, sigma)
FaceLandmarkDetection/face_alignment/utils.py:37
↓ 2 callersFunctionexecute_replication_callbacks
Execute an replication callback `__data_parallel_replicate__` on each module created by original replication. The callback will be invoked w
sync_batchnorm/replicate.py:27
↓ 2 callersFunctionfind_dataset_using_name
(dataset_name)
data/__init__.py:8
↓ 2 callersFunctionfind_model_using_name
(model_name)
models/__init__.py:5
↓ 2 callersMethodget_landmarks_from_image
Predict the landmarks for each face present in the image. This function predicts a set of 68 2D or 3D images, one for each image present.
FaceLandmarkDetection/face_alignment/api.py:109
↓ 2 callersFunctionget_preds_fromhm
Obtain (x,y) coordinates given a set of N heatmaps. If the center and the scale is provided the function will return the points also in the or
FaceLandmarkDetection/face_alignment/utils.py:132
↓ 2 callersFunctionget_transform
(opt)
data/base_dataset.py:24
↓ 2 callersMethodinitialize
(self, opt)
data/__init__.py:58
↓ 2 callersFunctionmkdir
(path)
util/util.py:78
↓ 2 callersMethodtensor_or_path_to_ndarray
Convert path (represented as a string) or torch.tensor to a numpy.ndarray Arguments: tensor_or_path {numpy.ndarray, torch.tens
FaceLandmarkDetection/face_alignment/detection/core.py:117
↓ 2 callersMethodthrow_visdom_connection_error
(self)
util/visualizer.py:141
↓ 1 callersMethodAddBlur
(self,img)
data/aligned_dataset.py:43
↓ 1 callersMethodAddDownSample
(self,img)
data/aligned_dataset.py:60
↓ 1 callersMethodAddJPEG
(self,img)
data/aligned_dataset.py:67
↓ 1 callersMethodAddNoise
(self,img)
data/aligned_dataset.py:33
↓ 1 callersFunctionAddUpSample
(img)
test_FaceDict.py:85
↓ 1 callersMethodAddUpSample
(self,img)
data/aligned_dataset.py:77
↓ 1 callersFunction__adjust
(img)
data/base_dataset.py:55
↓ 1 callersMethod__data_parallel_replicate__
(self, ctx, copy_id)
sync_batchnorm/batchnorm.py:95
↓ 1 callersMethod__init__
Args: master_callback: a callback to be invoked after having collected messages from slave devices.
sync_batchnorm/comm.py:67
↓ 1 callersMethod__init__
(self)
FaceLandmarkDetection/face_alignment/detection/sfd/net_s3fd.py:23
↓ 1 callersMethod_compute_mean_std
Compute the mean and standard-deviation with sum and square-sum. This method also maintains the moving average on the master device.
sync_batchnorm/batchnorm.py:128
↓ 1 callersMethod_download_data
(self, dataset_url, save_path)
util/get_data.py:58
↓ 1 callersMethod_forward
(self, level, inp)
FaceLandmarkDetection/face_alignment/models.py:119
↓ 1 callersFunction_gaussian
( size=3, sigma=0.25, amplitude=1, normalize=False, width=None, height=None, sigma_horz=None,
FaceLandmarkDetection/face_alignment/utils.py:11
↓ 1 callersMethod_generate_network
(self, level)
FaceLandmarkDetection/face_alignment/models.py:107
↓ 1 callersMethod_get_options
(r)
util/get_data.py:42
↓ 1 callersMethod_present_options
(self)
util/get_data.py:48
↓ 1 callersMethodadd_table
(self, border=1)
util/html.py:29
↓ 1 callersFunctionalign_and_save
(img_path, save_path, save_input_path, save_param_path, upsample_scale=2)
test_FaceDict.py:42
↓ 1 callersMethodbuild_vgg_layers
(self)
models/networks.py:375
↓ 1 callersMethodcompute_weight
(self, module)
models/networks.py:249
↓ 1 callersFunctionconvert_model
Traverse the input module and its child recursively and replace all instance of torch.nn.modules.batchnorm.BatchNorm*N*d to Synchronized
sync_batchnorm/batchnorm.py:353
↓ 1 callersFunctioncreate_dataset
(opt)
data/__init__.py:38
↓ 1 callersFunctioncreate_model
(opt)
models/__init__.py:33
↓ 1 callersFunctioncrop
Center crops an image or set of heatmaps Arguments: image {numpy.array} -- an rgb image center {numpy.array} -- the center of the
FaceLandmarkDetection/face_alignment/utils.py:92
↓ 1 callersFunctiondecode
Decode locations from predictions using priors to undo the encoding we did for offset regression at train time. Args: loc (tensor):
FaceLandmarkDetection/face_alignment/detection/sfd/bbox.py:91
↓ 1 callersMethoddetect_from_directory
Detects faces from all the images present in a given directory. Arguments: path {string} -- a string containing a path that po
FaceLandmarkDetection/face_alignment/detection/core.py:55
↓ 1 callersFunctionequal_lr
(module, name='weight')
models/networks.py:268
↓ 1 callersFunctionfind_version
(*file_paths)
FaceLandmarkDetection/setup.py:22
↓ 1 callersMethodforward
(self)
models/base_model.py:35
↓ 1 callersMethodgather_options
(self)
options/base_options.py:33
↓ 1 callersFunctionget_5_points
(img)
test_FaceDict.py:25
↓ 1 callersMethodget_current_visuals
(self)
models/base_model.py:74
↓ 1 callersMethodget_image_dir
(self)
util/html.py:22
↓ 1 callersFunctionget_part_location
(partpath, imgname)
test_FaceDict.py:87
↓ 1 callersMethodget_part_location
(self, landmarkpath, imgname, downscale=1)
data/aligned_dataset.py:102
↓ 1 callersFunctioninit_net
(net, init_type='normal', init_gain=0.02, gpu_ids=[], init_flag=True)
models/networks.py:80
↓ 1 callersFunctioninit_weights
(net, init_type='normal', gain=0.02)
models/networks.py:56
↓ 1 callersMethodinitialize
(self, parser)
options/base_options.py:13
↓ 1 callersMethodinitialize
(self, opt)
models/test_model.py:24
↓ 1 callersFunctionis_image_file
(filename)
data/image_folder.py:20
↓ 1 callersMethodload_networks
(self, which_epoch)
models/base_model.py:118
↓ 1 callersFunctionmls_affine_deformation_inv
Affine inverse deformation ### Params: * image - ndarray: original image * p - ndarray: an array with size [n, 2], original co
util/ROI_MLS.py:7
↓ 1 callersFunctionmls_affine_deformation_inv_final
Affine inverse deformation ### Params: * image - ndarray: original image * p - ndarray: an array with size [n, 2], original co
util/ROI_MLS.py:90
↓ 1 callersMethodname
(self)
data/__init__.py:55
↓ 1 callersFunctionnms
(dets, thresh)
FaceLandmarkDetection/face_alignment/detection/sfd/bbox.py:44
↓ 1 callersFunctionobtain_inputs
(img_path, Landmark_path, img_name)
test_FaceDict.py:123
↓ 1 callersMethodparse
(self)
options/base_options.py:80
↓ 1 callersMethodpreprocess
(self, x)
models/networks.py:387
↓ 1 callersMethodprint_networks
(self, verbose)
models/base_model.py:153
↓ 1 callersFunctionread
(*names, **kwargs)
FaceLandmarkDetection/setup.py:12
↓ 1 callersMethodregister_slave
Register an slave device. Args: identifier: an identifier, usually is the device id. Returns: a `SlavePipe` obj
sync_batchnorm/comm.py:84
↓ 1 callersMethodreset_parameters
(self)
sync_batchnorm/batchnorm_reimpl.py:43
↓ 1 callersMethodreset_running_stats
(self)
sync_batchnorm/batchnorm_reimpl.py:39
↓ 1 callersFunctionreverse_align
(input_path, face_path, param_path, save_path, upsample_scale=2)
test_FaceDict.py:61
next →1–100 of 280, ranked by callers