Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/csxmli2016/DFDNet
/ functions
Functions
280 in github.com/csxmli2016/DFDNet
⨍
Functions
280
◇
Types & classes
58
↓ 16 callers
Function
AttentionBlock
(in_channel)
models/networks.py:416
↓ 9 callers
Method
__init__
(self, channel)
models/networks.py:231
↓ 9 callers
Function
make_dataset
(dirs)
data/image_folder.py:24
↓ 6 callers
Function
flip
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 callers
Function
_unsqueeze_ft
add new dimensions at the front and the tail
sync_batchnorm/batchnorm.py:42
↓ 5 callers
Method
apply
(module, name)
models/networks.py:254
↓ 5 callers
Method
save
(self)
util/html.py:45
↓ 4 callers
Function
ToRGB
(in_channel)
models/networks.py:409
↓ 4 callers
Method
__init__
(self, num_modules=1)
FaceLandmarkDetection/face_alignment/models.py:147
↓ 4 callers
Method
_make_layer
(self, block, planes, blocks, stride=1)
FaceLandmarkDetection/face_alignment/models.py:229
↓ 4 callers
Function
adaptive_instance_normalization_4D
(content_feat, style_feat)
models/networks.py:128
↓ 4 callers
Method
add_header
(self, str)
util/html.py:25
↓ 4 callers
Method
add_images
(self, ims, txts, links, width=400)
util/html.py:33
↓ 4 callers
Function
compute_sum
(x, axis=None, keepdim=False)
models/networks.py:403
↓ 4 callers
Function
convU
(in_channels, out_channels,conv_layer, norm_layer, kernel_size=3, stride=1,dilation=1, bias=True)
models/networks.py:152
↓ 4 callers
Method
get
Download a dataset. Args: save_path : str A directory to save the data to. dataset : str, o
util/get_data.py:81
↓ 3 callers
Function
calc_mean_std_4D
(feat, eps=1e-5)
models/networks.py:118
↓ 3 callers
Function
conv3x3
3x3 convolution with padding
FaceLandmarkDetection/face_alignment/models.py:7
↓ 3 callers
Method
eval
(self)
models/base_model.py:47
↓ 3 callers
Method
get
(self)
sync_batchnorm/comm.py:32
↓ 3 callers
Method
get_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 callers
Method
put
(self, result)
sync_batchnorm/comm.py:26
↓ 3 callers
Function
transform
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 callers
Method
__init__
(self,TVLoss_weight=1)
util/Loss.py:7
↓ 2 callers
Function
__print_size_warning
(ow, oh, w, h)
data/base_dataset.py:96
↓ 2 callers
Function
__scale_width
(img, target_width)
data/base_dataset.py:75
↓ 2 callers
Method
_check_input_dim
(self, input)
sync_batchnorm/batchnorm.py:204
↓ 2 callers
Method
_print
(self, text)
util/get_data.py:37
↓ 2 callers
Function
_sum_ft
sum over the first and last dimention
sync_batchnorm/batchnorm.py:37
↓ 2 callers
Method
_tensor_size
(self,t)
util/Loss.py:21
↓ 2 callers
Function
appdata_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 callers
Function
calc_mean_std
(feat, eps=1e-5)
models/networks.py:95
↓ 2 callers
Function
detect
(net, img, device)
FaceLandmarkDetection/face_alignment/detection/sfd/detect.py:19
↓ 2 callers
Method
detect_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 callers
Function
draw_gaussian
(image, point, sigma)
FaceLandmarkDetection/face_alignment/utils.py:37
↓ 2 callers
Function
execute_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 callers
Function
find_dataset_using_name
(dataset_name)
data/__init__.py:8
↓ 2 callers
Function
find_model_using_name
(model_name)
models/__init__.py:5
↓ 2 callers
Method
get_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 callers
Function
get_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 callers
Function
get_transform
(opt)
data/base_dataset.py:24
↓ 2 callers
Method
initialize
(self, opt)
data/__init__.py:58
↓ 2 callers
Function
mkdir
(path)
util/util.py:78
↓ 2 callers
Method
tensor_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 callers
Method
throw_visdom_connection_error
(self)
util/visualizer.py:141
↓ 1 callers
Method
AddBlur
(self,img)
data/aligned_dataset.py:43
↓ 1 callers
Method
AddDownSample
(self,img)
data/aligned_dataset.py:60
↓ 1 callers
Method
AddJPEG
(self,img)
data/aligned_dataset.py:67
↓ 1 callers
Method
AddNoise
(self,img)
data/aligned_dataset.py:33
↓ 1 callers
Function
AddUpSample
(img)
test_FaceDict.py:85
↓ 1 callers
Method
AddUpSample
(self,img)
data/aligned_dataset.py:77
↓ 1 callers
Function
__adjust
(img)
data/base_dataset.py:55
↓ 1 callers
Method
__data_parallel_replicate__
(self, ctx, copy_id)
sync_batchnorm/batchnorm.py:95
↓ 1 callers
Method
__init__
Args: master_callback: a callback to be invoked after having collected messages from slave devices.
sync_batchnorm/comm.py:67
↓ 1 callers
Method
__init__
(self)
FaceLandmarkDetection/face_alignment/detection/sfd/net_s3fd.py:23
↓ 1 callers
Method
_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 callers
Method
_download_data
(self, dataset_url, save_path)
util/get_data.py:58
↓ 1 callers
Method
_forward
(self, level, inp)
FaceLandmarkDetection/face_alignment/models.py:119
↓ 1 callers
Function
_gaussian
( size=3, sigma=0.25, amplitude=1, normalize=False, width=None, height=None, sigma_horz=None,
FaceLandmarkDetection/face_alignment/utils.py:11
↓ 1 callers
Method
_generate_network
(self, level)
FaceLandmarkDetection/face_alignment/models.py:107
↓ 1 callers
Method
_get_options
(r)
util/get_data.py:42
↓ 1 callers
Method
_present_options
(self)
util/get_data.py:48
↓ 1 callers
Method
add_table
(self, border=1)
util/html.py:29
↓ 1 callers
Function
align_and_save
(img_path, save_path, save_input_path, save_param_path, upsample_scale=2)
test_FaceDict.py:42
↓ 1 callers
Method
build_vgg_layers
(self)
models/networks.py:375
↓ 1 callers
Method
compute_weight
(self, module)
models/networks.py:249
↓ 1 callers
Function
convert_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 callers
Function
create_dataset
(opt)
data/__init__.py:38
↓ 1 callers
Function
create_model
(opt)
models/__init__.py:33
↓ 1 callers
Function
crop
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 callers
Function
decode
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 callers
Method
detect_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 callers
Function
equal_lr
(module, name='weight')
models/networks.py:268
↓ 1 callers
Function
find_version
(*file_paths)
FaceLandmarkDetection/setup.py:22
↓ 1 callers
Method
forward
(self)
models/base_model.py:35
↓ 1 callers
Method
gather_options
(self)
options/base_options.py:33
↓ 1 callers
Function
get_5_points
(img)
test_FaceDict.py:25
↓ 1 callers
Method
get_current_visuals
(self)
models/base_model.py:74
↓ 1 callers
Method
get_image_dir
(self)
util/html.py:22
↓ 1 callers
Function
get_part_location
(partpath, imgname)
test_FaceDict.py:87
↓ 1 callers
Method
get_part_location
(self, landmarkpath, imgname, downscale=1)
data/aligned_dataset.py:102
↓ 1 callers
Function
init_net
(net, init_type='normal', init_gain=0.02, gpu_ids=[], init_flag=True)
models/networks.py:80
↓ 1 callers
Function
init_weights
(net, init_type='normal', gain=0.02)
models/networks.py:56
↓ 1 callers
Method
initialize
(self, parser)
options/base_options.py:13
↓ 1 callers
Method
initialize
(self, opt)
models/test_model.py:24
↓ 1 callers
Function
is_image_file
(filename)
data/image_folder.py:20
↓ 1 callers
Method
load_networks
(self, which_epoch)
models/base_model.py:118
↓ 1 callers
Function
mls_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 callers
Function
mls_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 callers
Method
name
(self)
data/__init__.py:55
↓ 1 callers
Function
nms
(dets, thresh)
FaceLandmarkDetection/face_alignment/detection/sfd/bbox.py:44
↓ 1 callers
Function
obtain_inputs
(img_path, Landmark_path, img_name)
test_FaceDict.py:123
↓ 1 callers
Method
parse
(self)
options/base_options.py:80
↓ 1 callers
Method
preprocess
(self, x)
models/networks.py:387
↓ 1 callers
Method
print_networks
(self, verbose)
models/base_model.py:153
↓ 1 callers
Function
read
(*names, **kwargs)
FaceLandmarkDetection/setup.py:12
↓ 1 callers
Method
register_slave
Register an slave device. Args: identifier: an identifier, usually is the device id. Returns: a `SlavePipe` obj
sync_batchnorm/comm.py:84
↓ 1 callers
Method
reset_parameters
(self)
sync_batchnorm/batchnorm_reimpl.py:43
↓ 1 callers
Method
reset_running_stats
(self)
sync_batchnorm/batchnorm_reimpl.py:39
↓ 1 callers
Function
reverse_align
(input_path, face_path, param_path, save_path, upsample_scale=2)
test_FaceDict.py:61
next →
1–100 of 280, ranked by callers