SYMBOL INDEX (192 symbols across 21 files) FILE: audio.py function load_wav (line 9) | def load_wav(path, sr): function save_wav (line 12) | def save_wav(wav, path, sr): function save_wavenet_wav (line 17) | def save_wavenet_wav(wav, path, sr): function preemphasis (line 20) | def preemphasis(wav, k, preemphasize=True): function inv_preemphasis (line 25) | def inv_preemphasis(wav, k, inv_preemphasize=True): function get_hop_size (line 30) | def get_hop_size(): function linearspectrogram (line 37) | def linearspectrogram(wav): function melspectrogram (line 45) | def melspectrogram(wav): function _lws_processor (line 53) | def _lws_processor(): function _stft (line 57) | def _stft(y): function num_frames (line 65) | def num_frames(length, fsize, fshift): function pad_lr (line 76) | def pad_lr(x, fsize, fshift): function librosa_pad_lr (line 86) | def librosa_pad_lr(x, fsize, fshift): function _linear_to_mel (line 92) | def _linear_to_mel(spectogram): function _build_mel_basis (line 98) | def _build_mel_basis(): function _amp_to_db (line 103) | def _amp_to_db(x): function _db_to_amp (line 107) | def _db_to_amp(x): function _normalize (line 110) | def _normalize(S): function _denormalize (line 124) | def _denormalize(D): FILE: color_syncnet_train.py class Dataset (line 37) | class Dataset(object): method __init__ (line 38) | def __init__(self, split): method get_frame_id (line 41) | def get_frame_id(self, frame): method get_window (line 44) | def get_window(self, start_frame): method crop_audio_window (line 56) | def crop_audio_window(self, spec, start_frame): method __len__ (line 66) | def __len__(self): method __getitem__ (line 69) | def __getitem__(self, idx): function cosine_loss (line 134) | def cosine_loss(a, v, y): function train (line 140) | def train(device, model, train_data_loader, test_data_loader, optimizer, function eval_model (line 181) | def eval_model(test_data_loader, global_step, device, model, checkpoint_... function save_checkpoint (line 208) | def save_checkpoint(model, optimizer, step, checkpoint_dir, epoch): function _load (line 221) | def _load(checkpoint_path): function load_checkpoint (line 229) | def load_checkpoint(path, model, optimizer, reset_optimizer=False): FILE: evaluation/gen_videos_from_filelist.py function get_smoothened_boxes (line 35) | def get_smoothened_boxes(boxes, T): function face_detect (line 44) | def face_detect(images): function datagen (line 79) | def datagen(frames, face_det_results, mels): function _load (line 129) | def _load(checkpoint_path): function load_model (line 137) | def load_model(path): function main (line 152) | def main(): FILE: evaluation/real_videos_inference.py function get_smoothened_boxes (line 42) | def get_smoothened_boxes(boxes, T): function rescale_frames (line 51) | def rescale_frames(images): function face_detect (line 73) | def face_detect(images): function datagen (line 108) | def datagen(frames, face_det_results, mels): function increase_frames (line 149) | def increase_frames(frames, l): function _load (line 176) | def _load(checkpoint_path): function load_model (line 184) | def load_model(path): function main (line 199) | def main(): FILE: evaluation/scores_LSE/SyncNetInstance_calc_scores.py function calc_pdist (line 19) | def calc_pdist(feat1, feat2, vshift=10): class SyncNetInstance (line 35) | class SyncNetInstance(torch.nn.Module): method __init__ (line 37) | def __init__(self, dropout = 0, num_layers_in_fc_layers = 1024): method evaluate (line 42) | def evaluate(self, opt, videofile): method extract_feature (line 152) | def extract_feature(self, opt, videofile): method loadParameters (line 203) | def loadParameters(self, path): FILE: face_detection/api.py class LandmarksType (line 17) | class LandmarksType(Enum): class NetworkSize (line 30) | class NetworkSize(Enum): method __new__ (line 36) | def __new__(cls, value): method __int__ (line 41) | def __int__(self): class FaceAlignment (line 46) | class FaceAlignment: method __init__ (line 47) | def __init__(self, landmarks_type, network_size=NetworkSize.LARGE, method get_detections_for_batch (line 64) | def get_detections_for_batch(self, images): FILE: face_detection/detection/core.py class FaceDetector (line 9) | class FaceDetector(object): method __init__ (line 18) | def __init__(self, device, verbose): method detect_from_image (line 32) | def detect_from_image(self, tensor_or_path): method detect_from_directory (line 54) | def detect_from_directory(self, path, extensions=['.jpg', '.png'], rec... method reference_scale (line 104) | def reference_scale(self): method reference_x_shift (line 108) | def reference_x_shift(self): method reference_y_shift (line 112) | def reference_y_shift(self): method tensor_or_path_to_ndarray (line 116) | def tensor_or_path_to_ndarray(tensor_or_path, rgb=True): FILE: face_detection/detection/sfd/bbox.py function IOU (line 17) | def IOU(ax1, ay1, ax2, ay2, bx1, by1, bx2, by2): function bboxlog (line 30) | def bboxlog(x1, y1, x2, y2, axc, ayc, aww, ahh): function bboxloginv (line 37) | def bboxloginv(dx, dy, dw, dh, axc, ayc, aww, ahh): function nms (line 44) | def nms(dets, thresh): function encode (line 67) | def encode(matched, priors, variances): function decode (line 91) | def decode(loc, priors, variances): function batch_decode (line 111) | def batch_decode(loc, priors, variances): FILE: face_detection/detection/sfd/detect.py function detect (line 19) | def detect(net, img, device): function batch_detect (line 58) | def batch_detect(net, imgs, device): function flip_detect (line 96) | def flip_detect(net, img, device): function pts_to_bb (line 109) | def pts_to_bb(pts): FILE: face_detection/detection/sfd/net_s3fd.py class L2Norm (line 6) | class L2Norm(nn.Module): method __init__ (line 7) | def __init__(self, n_channels, scale=1.0): method forward (line 16) | def forward(self, x): class s3fd (line 22) | class s3fd(nn.Module): method __init__ (line 23) | def __init__(self): method forward (line 70) | def forward(self, x): FILE: face_detection/detection/sfd/sfd_detector.py class SFDDetector (line 16) | class SFDDetector(FaceDetector): method __init__ (line 17) | def __init__(self, device, path_to_detector=os.path.join(os.path.dirna... method detect_from_image (line 31) | def detect_from_image(self, tensor_or_path): method detect_from_batch (line 41) | def detect_from_batch(self, images): method reference_scale (line 50) | def reference_scale(self): method reference_x_shift (line 54) | def reference_x_shift(self): method reference_y_shift (line 58) | def reference_y_shift(self): FILE: face_detection/models.py function conv3x3 (line 7) | def conv3x3(in_planes, out_planes, strd=1, padding=1, bias=False): class ConvBlock (line 13) | class ConvBlock(nn.Module): method __init__ (line 14) | def __init__(self, in_planes, out_planes): method forward (line 33) | def forward(self, x): class Bottleneck (line 58) | class Bottleneck(nn.Module): method __init__ (line 62) | def __init__(self, inplanes, planes, stride=1, downsample=None): method forward (line 75) | def forward(self, x): class HourGlass (line 98) | class HourGlass(nn.Module): method __init__ (line 99) | def __init__(self, num_modules, depth, num_features): method _generate_network (line 107) | def _generate_network(self, level): method _forward (line 119) | def _forward(self, level, inp): method forward (line 141) | def forward(self, x): class FAN (line 145) | class FAN(nn.Module): method __init__ (line 147) | def __init__(self, num_modules=1): method forward (line 174) | def forward(self, x): class ResNetDepth (line 204) | class ResNetDepth(nn.Module): method __init__ (line 206) | def __init__(self, block=Bottleneck, layers=[3, 8, 36, 3], num_classes... method _make_layer (line 229) | def _make_layer(self, block, planes, blocks, stride=1): method forward (line 246) | def forward(self, x): FILE: face_detection/utils.py function _gaussian (line 11) | def _gaussian( function draw_gaussian (line 37) | def draw_gaussian(image, point, sigma): function transform (line 56) | def transform(point, center, scale, resolution, invert=False): function crop (line 92) | def crop(image, center, scale, resolution=256.0): function get_preds_fromhm (line 132) | def get_preds_fromhm(hm, center=None, scale=None): function get_preds_fromhm_batch (line 172) | def get_preds_fromhm_batch(hm, centers=None, scales=None): function shuffle_lr (line 212) | def shuffle_lr(parts, pairs=None): function flip (line 237) | def flip(tensor, is_label=False): function appdata_dir (line 259) | def appdata_dir(appname=None, roaming=False): FILE: hparams.py function get_image_list (line 4) | def get_image_list(data_root, split): class HParams (line 15) | class HParams: method __init__ (line 16) | def __init__(self, **kwargs): method __getattr__ (line 22) | def __getattr__(self, key): method set_hparam (line 27) | def set_hparam(self, key, value): function hparams_debug_string (line 98) | def hparams_debug_string(): FILE: hq_wav2lip_train.py class Dataset (line 42) | class Dataset(object): method __init__ (line 43) | def __init__(self, split): method get_frame_id (line 46) | def get_frame_id(self, frame): method get_window (line 49) | def get_window(self, start_frame): method read_window (line 61) | def read_window(self, window_fnames): method crop_audio_window (line 77) | def crop_audio_window(self, spec, start_frame): method get_segmented_mels (line 88) | def get_segmented_mels(self, spec, start_frame): method prepare_window (line 103) | def prepare_window(self, window): method __len__ (line 110) | def __len__(self): method __getitem__ (line 113) | def __getitem__(self, idx): function save_sample_images (line 168) | def save_sample_images(x, g, gt, global_step, checkpoint_dir): function cosine_loss (line 182) | def cosine_loss(a, v, y): function get_sync_loss (line 194) | def get_sync_loss(mel, g): function train (line 202) | def train(device, model, disc, train_data_loader, test_data_loader, opti... function eval_model (line 300) | def eval_model(test_data_loader, global_step, device, model, disc): function save_checkpoint (line 354) | def save_checkpoint(model, optimizer, step, checkpoint_dir, epoch, prefi... function _load (line 366) | def _load(checkpoint_path): function load_checkpoint (line 375) | def load_checkpoint(path, model, optimizer, reset_optimizer=False, overw... FILE: inference.py function get_smoothened_boxes (line 59) | def get_smoothened_boxes(boxes, T): function face_detect (line 68) | def face_detect(images): function datagen (line 108) | def datagen(frames, mels): function _load (line 160) | def _load(checkpoint_path): function load_model (line 168) | def load_model(path): function main (line 181) | def main(): FILE: models/conv.py class Conv2d (line 5) | class Conv2d(nn.Module): method __init__ (line 6) | def __init__(self, cin, cout, kernel_size, stride, padding, residual=F... method forward (line 15) | def forward(self, x): class nonorm_Conv2d (line 21) | class nonorm_Conv2d(nn.Module): method __init__ (line 22) | def __init__(self, cin, cout, kernel_size, stride, padding, residual=F... method forward (line 29) | def forward(self, x): class Conv2dTranspose (line 33) | class Conv2dTranspose(nn.Module): method __init__ (line 34) | def __init__(self, cin, cout, kernel_size, stride, padding, output_pad... method forward (line 42) | def forward(self, x): FILE: models/syncnet.py class SyncNet_color (line 7) | class SyncNet_color(nn.Module): method __init__ (line 8) | def __init__(self): method forward (line 55) | def forward(self, audio_sequences, face_sequences): # audio_sequences ... FILE: models/wav2lip.py class Wav2Lip (line 8) | class Wav2Lip(nn.Module): method __init__ (line 9) | def __init__(self): method forward (line 87) | def forward(self, audio_sequences, face_sequences): class Wav2Lip_disc_qual (line 127) | class Wav2Lip_disc_qual(nn.Module): method __init__ (line 128) | def __init__(self): method get_lower_half (line 155) | def get_lower_half(self, face_sequences): method to_2d (line 158) | def to_2d(self, face_sequences): method perceptual_forward (line 163) | def perceptual_forward(self, false_face_sequences): method forward (line 176) | def forward(self, face_sequences): FILE: preprocess.py function process_video_file (line 38) | def process_video_file(vfile, args, gpu_id): function process_audio_file (line 69) | def process_audio_file(vfile, args): function mp_handler (line 82) | def mp_handler(job): function main (line 91) | def main(args): FILE: wav2lip_train.py class Dataset (line 40) | class Dataset(object): method __init__ (line 41) | def __init__(self, split): method get_frame_id (line 44) | def get_frame_id(self, frame): method get_window (line 47) | def get_window(self, start_frame): method read_window (line 59) | def read_window(self, window_fnames): method crop_audio_window (line 75) | def crop_audio_window(self, spec, start_frame): method get_segmented_mels (line 86) | def get_segmented_mels(self, spec, start_frame): method prepare_window (line 101) | def prepare_window(self, window): method __len__ (line 108) | def __len__(self): method __getitem__ (line 111) | def __getitem__(self, idx): function save_sample_images (line 166) | def save_sample_images(x, g, gt, global_step, checkpoint_dir): function cosine_loss (line 180) | def cosine_loss(a, v, y): function get_sync_loss (line 192) | def get_sync_loss(mel, g): function train (line 200) | def train(device, model, train_data_loader, test_data_loader, optimizer, function eval_model (line 262) | def eval_model(test_data_loader, global_step, device, model, checkpoint_... function save_checkpoint (line 294) | def save_checkpoint(model, optimizer, step, checkpoint_dir, epoch): function _load (line 308) | def _load(checkpoint_path): function load_checkpoint (line 316) | def load_checkpoint(path, model, optimizer, reset_optimizer=False, overw...