MCPcopy Index your code

hub / github.com/Time-Travel-Rephotography/Time-Travel-Rephotography.github.io / functions

Functions204 in github.com/Time-Travel-Rephotography/Time-Travel-Rephotography.github.io

Method__init__
(self)
tools/initialize.py:33
Method__init__
(self, args: Namespace)
tools/initialize.py:106
Method__init__
(self)
utils/projector_arguments.py:18
Method__init__
( self, generator: torch.nn, noise_ramp: float = 0.75, noise_strength: float = 0.05,
utils/optimize.py:58
Method__init__
:param predictor_model_path: path to shape_predictor_68_face_landmarks.dat file
utils/ffhq_dataset/landmarks_detector.py:6
Method__init__
:param DNN: "TF" or "CAFFE" predictor_model_path: path to shape_predictor_68_face_landmarks.dat file
utils/ffhq_dataset/landmarks_detector.py:30
Method__init__
(self, params, lr=1e-3, betas=(0.9, 0.999), eps=1e-8, weight_decay=0, degenerated_to_sgd=True)
optim/radam.py:103
Method__init__
(self, params, lr=1e-3, betas=(0.9, 0.999), eps=1e-8, weight_decay=0, warmup=0)
optim/radam.py:181
Method__init__
(self, channel, negative_slope=0.2, scale=2 ** 0.5)
op/fused_act.py:74
Method__init__
(self, channels, kernel_size, sigma, dim=2)
models/gaussian_smoothing.py:21
Method__init__
(self)
models/degrade.py:32
Method__init__
(self, spectral_sensitivity: str = 'b')
models/degrade.py:50
Method__init__
(self, input_size: int, output_size: int, channels: int)
models/degrade.py:73
Method__init__
( self, in_channels: int, size: int, latent_size: int = 512, activation: str = 'leaky_
models/encoder.py:25
Method__init__
(self)
models/vggface.py:8
Method__init__
(self, in_channels: int, out_channels: int, activation: str = 'relu')
models/resnet.py:33
Method__init__
( self, in_channels: int, out_channels: int, expansion: int = 1, downsampling: int = 1
models/resnet.py:55
Method__init__
( self, in_channels: int, out_channels: int, bias: bool = False, *args, **kwargs )
models/resnet.py:87
Method__init__
(self, sibling: torch.Tensor, args: Namespace, size: int = 256)
losses/joint_loss.py:62
Method__init__
(self, sibling: torch.Tensor, args: Namespace, size: int = 256)
losses/joint_loss.py:79
Method__init__
( self, init_rgbs, scale_rgb: bool = False )
losses/color_transfer_loss.py:37
Method__init__
target: target image
losses/reconstruction.py:87
Method__init__
(self, resize=False)
losses/perceptual_loss.py:14
Method__init__
(self, weight_path: str = "checkpoint/vgg_face_dag.pt", resize: bool = False)
losses/perceptual_loss.py:54
Method__repr__
(self)
model.py:126
Method__repr__
(self)
model.py:164
Method__repr__
(self)
model.py:231
Method__setstate__
(self, state)
optim/radam.py:118
Method__setstate__
(self, state)
optim/radam.py:195
Functionadd_arguments
(parser: ArgumentParser)
models/encoder.py:9
Methodadd_arguments
(cls, parser: ArgumentParser)
tools/initialize.py:50
Methodadd_arguments
(parser: ArgumentParser)
utils/optimize.py:33
Methodadd_arguments
(parser: ArgumentParser)
models/degrade.py:17
Methodadd_arguments
(parser: ArgumentParser)
losses/joint_loss.py:33
Methodadd_arguments
(parser: ArgumentParser)
losses/reconstruction.py:18
Methodbackward
(ctx, gradgrad_input, gradgrad_bias)
op/fused_act.py:42
Methodbackward
(ctx, grad_output)
op/fused_act.py:63
Methodbackward
(ctx, gradgrad_input)
op/upfirdn2d.py:62
Functioncos_loss
(fi, ft)
losses/perceptual_loss.py:9
Functioncreate_model
(args)
models/encoder.py:14
Methodcreate_parameters
(latent_coarse)
utils/optimize.py:106
Functiondevice
(gpu_id=0)
utils/torch_helpers.py:5
Functionencode_color
(imgs: torch.Tensor, args: Namespace)
tools/initialize.py:89
Methodexpanded_channels
(self)
models/resnet.py:69
Methodforward
(self, input)
model.py:19
Methodforward
(self, input)
model.py:49
Methodforward
(self, input)
model.py:70
Methodforward
(self, input)
model.py:89
Methodforward
(self, input)
model.py:115
Methodforward
(self, input)
model.py:152
Methodforward
(self, input)
model.py:176
Methodforward
(self, input, style)
model.py:237
Methodforward
(self, image, noise=None)
model.py:287
Methodforward
(self, input)
model.py:301
Methodforward
(self, input, style, noise=None)
model.py:336
Methodforward
(self, input, style, skip=None)
model.py:355
Methodforward
( self, styles, return_latents=False, inject_index=None, truncation=1,
model.py:491
Methodforward
(self, input)
model.py:628
Methodforward
(self, input)
model.py:678
Methodforward
(self, imgs: torch.Tensor)
tools/initialize.py:149
Methodforward
(ctx, grad_output, out, negative_slope, scale)
op/fused_act.py:21
Methodforward
(ctx, input, bias, negative_slope, scale)
op/fused_act.py:53
Methodforward
(self, input)
op/fused_act.py:81
Methodforward
( ctx, grad_output, kernel, grad_kernel, up, down, pad, g_pad, in_size, out_size )
op/upfirdn2d.py:20
Methodforward
(ctx, input, kernel, up, down, pad)
op/upfirdn2d.py:89
Methodforward
Apply gaussian filter to input. Arguments: input (torch.Tensor): Input to apply gaussian filter on. stride fo
models/gaussian_smoothing.py:63
Methodforward
(self, x: torch.Tensor)
models/degrade.py:39
Methodforward
(self, rgb: torch.Tensor)
models/degrade.py:60
Methodforward
(self, im: torch.Tensor)
models/degrade.py:91
Methodforward
(self, img: torch.Tensor, downsample: nn.Module = None)
models/degrade.py:111
Methodforward
(self, input_)
models/encoder.py:20
Methodforward
(self, input_)
models/encoder.py:61
Methodforward
(self, x0)
models/vggface.py:52
Methodforward
(self, x0)
models/vggface.py:110
Methodforward
(self, x)
models/resnet.py:40
Methodforward
(self, img: torch.Tensor)
losses/joint_loss.py:70
Methodforward
(self, img: torch.Tensor)
losses/joint_loss.py:84
Methodforward
(self, noises: Iterable[torch.Tensor])
losses/regularize_noise.py:8
Methodforward
(self, rgbs: List[torch.Tensor], level: int = None)
losses/color_transfer_loss.py:49
Methodforward
img: it should be the degraded version of the generated image
losses/reconstruction.py:69
Methodforward
img: it should be the degraded version of the generated image
losses/reconstruction.py:112
Methodforward
(self, input, target, max_layer=4, cos_dist: bool = False)
losses/perceptual_loss.py:30
Methodforward
(self, input, target, max_layer: int = 4, cos_dist: bool = False)
losses/perceptual_loss.py:65
Methodforward
(self, input, target, eps=1e-8, use_vggface: bool = True, use_vgg=True, max_vgg_layer=4)
losses/perceptual_loss.py:104
Functionfused_bias_act
op/fused_bias_act.cpp:11
Methodget_landmarks
(self, image)
utils/ffhq_dataset/landmarks_detector.py:63
Methodget_latent
(self, input)
model.py:488
Functionget_optimizer_class
(optimizer_name)
optim/__init__.py:13
Functionload_matching_state_dict
(model: nn.Module, state_dict)
utils/torch_helpers.py:11
Methodmean_latent
(self, n_latent)
model.py:480
Functionparent_dir
(path: str)
utils/misc.py:9
Methodshould_apply_shortcut
(self)
models/resnet.py:50
Methodshould_apply_shortcut
(self)
models/resnet.py:73
Methodstep
(self, closure=None)
optim/radam.py:121
Methodstep
(self, closure=None)
optim/radam.py:198
Methodto_string
(args: Namespace)
tools/initialize.py:59
Methodto_string
(args: Namespace)
utils/projector_arguments.py:67
Methodto_string
(args: Namespace)
utils/optimize.py:49
Methodto_string
(args: Namespace)
losses/joint_loss.py:46
Methodto_string
(args: Namespace)
losses/reconstruction.py:24
← previousnext →101–200 of 204, ranked by callers