Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JCBrouwer/maua-stylegan2
/ functions
Functions
576 in github.com/JCBrouwer/maua-stylegan2
⨍
Functions
576
◇
Types & classes
120
↓ 31 callers
Method
load
(self, num=-1)
lucidrains.py:1141
↓ 31 callers
Method
load_state_dict
(self, G_state_dict, D_state_dict)
lookahead_minimax.py:79
↓ 21 callers
Method
state_dict
(self)
lookahead_minimax.py:76
↓ 17 callers
Method
__init__
(self, kernel, pad, upsample_factor=1)
models/stylegan2.py:77
↓ 17 callers
Method
__init__
(self, in_channels=3)
models/autoencoder.py:239
↓ 16 callers
Method
step
Performs a single Lookahead optimization step on BOTH optimizers after the generator's optimizer step. This allows the discriminator
lookahead_minimax.py:135
↓ 16 callers
Method
zero_grad
(self)
lookahead_minimax.py:70
↓ 15 callers
Method
backward
(self, trainer, loss, optimizer, optimizer_idx)
lightning.py:202
↓ 15 callers
Function
update
(state_dict, new)
convert_weight.py:93
↓ 13 callers
Method
__init__
(self, output_size=1920, checkpoint=None)
models/stylegan1.py:510
↓ 13 callers
Function
random_mat_apply
(p, transform, prev, eye)
augment.py:143
↓ 13 callers
Method
save
(self, num)
lucidrains.py:1137
↓ 12 callers
Method
__init__
(self, beta)
lucidrains.py:64
↓ 10 callers
Method
encode
(self, inputs)
models/autoencoder.py:261
↓ 7 callers
Function
gaussian_filter
(x, sigma)
generate_video.py:14
↓ 6 callers
Function
augment
(img, p, transform_matrix=(None, None))
augment.py:364
↓ 6 callers
Function
create_decoder_single_conv
(in_chs, out_chs, kernel)
models/autoencoder.py:563
↓ 6 callers
Function
create_encoder_single_conv
(in_chs, out_chs, kernel)
models/autoencoder.py:481
↓ 6 callers
Method
decode
(self, inp)
models/autoencoder.py:269
↓ 6 callers
Function
get_rank
()
distributed.py:7
↓ 6 callers
Function
image_noise
(n, im_size)
lucidrains.py:178
↓ 6 callers
Method
make_noise
(self, batch, batch_size=None)
lightning.py:119
↓ 5 callers
Method
__init__
( self, pnet_type="vgg", pnet_rand=False, pnet_tune=False, use_dropout
validation/lpips/networks_basic.py:22
↓ 5 callers
Method
apply
(module, name, n_power_iterations, dim, eps, normalize=True)
validation/spectral_norm.py:54
↓ 5 callers
Function
convert_conv
(vars, source_name, target_name, bias=True, start=0)
convert_weight.py:40
↓ 5 callers
Function
noise_list
(n, layers, latent_dim)
lucidrains.py:165
↓ 5 callers
Method
random_indices
(self, shape)
models/autoencoder.py:254
↓ 5 callers
Function
styles_def_to_tensor
(styles_def)
lucidrains.py:194
↓ 5 callers
Method
train
(self)
lucidrains.py:756
↓ 5 callers
Method
update_viewport
(self)
select_latents.py:213
↓ 5 callers
Function
upfirdn2d
(input, kernel, up=1, down=1, pad=(0, 0))
op/upfirdn2d.py:145
↓ 4 callers
Method
__init__
Build pretrained InceptionV3 Parameters ---------- output_blocks : list of int Indices of blocks to return featur
validation/inception.py:33
↓ 4 callers
Method
__init__
(self, modulation, h, w)
audioreactive/bend.py:82
↓ 4 callers
Method
_create_upsampling_module
(self, input_channels, pooling_kenel)
models/autoencoder.py:622
↓ 4 callers
Method
_mousewheel_bind
(self, widget)
select_latents.py:79
↓ 4 callers
Method
_mousewheel_unbind
(self)
select_latents.py:82
↓ 4 callers
Method
calculate_loss
(self)
contrastive_learner.py:223
↓ 4 callers
Method
forward
(self, in0, in1, retPerLayer=None)
validation/lpips/networks_basic.py:176
↓ 4 callers
Method
generate_truncated
(self, S, G, style, noi, trunc_psi=0.75, num_image_tiles=8)
lucidrains.py:1099
↓ 4 callers
Function
leaky_relu
(p=0.2)
lucidrains.py:182
↓ 4 callers
Function
lognormal_sample
(size, mean=0, std=1)
augment.py:120
↓ 4 callers
Method
mean_latent
(self, n_latent)
models/stylegan1.py:576
↓ 4 callers
Function
normalize
(x)
validation/calc_ppl.py:12
↓ 4 callers
Function
requires_grad
(model, flag=True)
train_profile.py:41
↓ 4 callers
Function
requires_grad
(model, flag=True)
train.py:40
↓ 4 callers
Function
requires_grad
(model, flag=True)
lightning.py:20
↓ 4 callers
Function
uniform_sample
(size, low, high)
augment.py:131
↓ 3 callers
Method
__init__
(self, beta)
contrastive_learner.py:96
↓ 3 callers
Method
__init__
(self, requires_grad=False, pretrained=True)
validation/lpips/pretrained_networks.py:99
↓ 3 callers
Method
_create_downsampling_module
(self, input_channels, pooling_kenel)
models/autoencoder.py:539
↓ 3 callers
Function
category_sample
(size, categories)
augment.py:124
↓ 3 callers
Function
convert_dense
(vars, source_name, target_name)
convert_weight.py:79
↓ 3 callers
Function
convert_modconv
(vars, source_name, target_name, flip=False)
convert_weight.py:14
↓ 3 callers
Function
evaluate_in_chunks
(max_batch_size, model, *args)
lucidrains.py:186
↓ 3 callers
Method
forward
Function computes the distance between image patches in0 and in1 INPUTS in0, in1 - torch.Tensor object of shape Nx3xXxY - image p
validation/lpips/dist_model.py:124
↓ 3 callers
Function
gaussian_filter
Smooth tensors along time (first) axis with gaussian kernel. Args: x (th.tensor): Tensor to be smoothed sigma (float): Standard d
audioreactive/signal.py:319
↓ 3 callers
Function
get_world_size
()
distributed.py:32
↓ 3 callers
Method
initialize
INPUTS model - ['net-lin'] for linearly calibrated network ['net'] for off-the-shelf network
validation/lpips/dist_model.py:19
↓ 3 callers
Function
latent_to_w
(style_vectorizer, latent_descr)
lucidrains.py:174
↓ 3 callers
Function
make_kernel
(k)
models/stylegan2.py:23
↓ 3 callers
Function
make_noise
(batch_size, latent_dim, prob)
train_profile.py:59
↓ 3 callers
Function
make_noise
(batch_size, latent_dim, prob)
train.py:58
↓ 3 callers
Function
noise
(n, latent_dim)
lucidrains.py:161
↓ 3 callers
Function
reduce_sum
(tensor)
distributed.py:42
↓ 3 callers
Function
rotate_mat
(theta)
augment.py:35
↓ 3 callers
Method
save_network
(self, network, path, network_label, epoch_label)
validation/lpips/base_model.py:35
↓ 3 callers
Function
scale_mat
(s_x, s_y)
augment.py:47
↓ 3 callers
Function
update_moving_average
(ema_updater, ma_model, current_model)
contrastive_learner.py:106
↓ 2 callers
Method
_make_mouse_wheel_handler
(widget, orient, factor=1 / 120, what="units")
select_latents.py:114
↓ 2 callers
Method
_register_hook
(self)
contrastive_learner.py:137
↓ 2 callers
Function
accumulate
(model1, model2, decay=0.5 ** (32.0 / 10_000))
train_profile.py:46
↓ 2 callers
Function
accumulate
(model1, model2, decay=0.5 ** (32.0 / 10_000))
train.py:45
↓ 2 callers
Method
accumulate_g
(self, decay=0.5 ** (32.0 / (10_000)))
lightning.py:53
↓ 2 callers
Function
cast_list
(el)
lucidrains.py:123
↓ 2 callers
Function
compute_nearest_neighbour_distances
(input_features, nearest_k, metric)
validation/metrics.py:195
↓ 2 callers
Function
compute_pairwise_distance
(data_x, data_y=None, metric="l2")
validation/metrics.py:179
↓ 2 callers
Method
config
(self)
lucidrains.py:732
↓ 2 callers
Function
convert_torgb
(vars, source_name, target_name)
convert_weight.py:58
↓ 2 callers
Method
evaluate
(self, num=0, num_image_tiles=8)
lucidrains.py:947
↓ 2 callers
Function
fill_statedict
(state_dict, vars, size)
convert_weight.py:131
↓ 2 callers
Function
fused_leaky_relu
(input, bias, negative_slope=0.2, scale=2 ** 0.5)
op/fused_act.py:86
↓ 2 callers
Method
get_latent
(self, inputs)
models/stylegan2.py:489
↓ 2 callers
Function
get_tensors
(gpu_only=True)
gpu_profile.py:95
↓ 2 callers
Function
gpu_profile
(frame, event, arg)
gpu_profile.py:28
↓ 2 callers
Function
im2tensor
(image, imtype=np.uint8, cent=1.0, factor=255.0 / 2.0)
validation/lpips/util.py:93
↓ 2 callers
Method
init_GAN
(self)
lucidrains.py:702
↓ 2 callers
Method
init_folders
(self)
lucidrains.py:1127
↓ 2 callers
Function
interpolant
(t)
generate_video.py:54
↓ 2 callers
Function
lerp
(val, low, high)
generate_video.py:50
↓ 2 callers
Function
lerp
(a, b, t)
validation/metrics.py:217
↓ 2 callers
Function
lerp
(a, b, t)
validation/calc_ppl.py:27
↓ 2 callers
Method
lerp
(a, b, t)
lucidrains.py:1052
↓ 2 callers
Method
loss
(self, real, fake, mu, log_var)
models/autoencoder.py:130
↓ 2 callers
Method
model_name
(self, num)
lucidrains.py:1124
↓ 2 callers
Function
normal_sample
(size, mean=0, std=1)
augment.py:135
↓ 2 callers
Function
np2tensor
(np_obj)
validation/lpips/util.py:41
↓ 2 callers
Function
percentile_clip
Normalize signal between 0 and 1, clipping peak values above given percentile Args: signal (th.tensor): Signal to normalize p (in
audioreactive/signal.py:271
↓ 2 callers
Function
perlin_pls
(resolution)
audioreactive/examples/kelp.py:97
↓ 2 callers
Function
prdc
(real_features, fake_features, nearest_k=10, metric="l2")
validation/metrics.py:201
↓ 2 callers
Function
raw_chroma
Creates chromagram Args: audio (np.array): Audio signal sr (int): Sampling rate of the audio type (str, optional): ["cens
audioreactive/signal.py:102
next →
1–100 of 576, ranked by callers