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
Function
inner_fn
(fn)
contrastive_learner.py:29
Function
l2
(p0, p1, range=255.0)
validation/lpips/util.py:15
Function
laplacian_segmentation
Segments the audio with pattern recurrence analysis From https://librosa.org/doc/latest/auto_examples/plot_segmentation.html#sphx-glr-auto-example
audioreactive/signal.py:159
Function
lmdmb_write_worker
(i_code, env, size)
prepare_vae_codes.py:15
Function
load_audio
Handles loading of audio files. Automatically caches to .npy files to increase loading speed. Args: audio_file (str): Path to audio file
audioreactive/signal.py:371
Function
load_latents
Load latents from numpy file Args: filename (str): Filename to load from Returns: th.tensor: Latent vectors
audioreactive/latent.py:172
Method
load_network
(self, network, network_label, epoch_label)
validation/lpips/base_model.py:41
Function
loss_backwards
(fp16, loss, optimizer, **kwargs)
lucidrains.py:138
Method
make_noise
(self)
models/stylegan2.py:472
Function
make_video
(jobs_in)
render.py:94
Function
mixed_list
(n, layers, latent_dim)
lucidrains.py:169
Method
name
(self)
validation/lpips/dist_model.py:16
Method
name
(self)
validation/lpips/base_model.py:9
Method
nf
(stage)
models/stylegan1.py:441
Function
normalize_tensor
(in_feat, eps=1e-10)
validation/lpips/util.py:10
Function
nt_xent_loss
(queries, keys, temperature=0.1)
contrastive_learner.py:56
Method
on_enter
(self, e)
select_latents.py:36
Method
on_leave
(self, e)
select_latents.py:39
Function
onsets
Creates onset envelope from audio Args: audio (np.array): Audio signal sr (int): Sampling rate of the audio n_frames (int
audioreactive/signal.py:31
Method
optimize_parameters
(self)
validation/lpips/dist_model.py:135
Method
optimize_parameters
(self)
validation/lpips/base_model.py:22
Method
optimizer_step
(self, cur_epoch, batch_idx, optimizer, optimizer_idx, closure)
lightning.py:212
Method
param_groups
(self)
lookahead_minimax.py:132
Function
perlin_noise
Generate a 3D tensor of perlin noise. Args: shape: The shape of the generated tensor (tuple of three ints). This must be a mul
generate_video.py:58
Function
perlin_noise
Generate a 3D tensor of perlin noise. Args: shape: The shape of the generated tensor (tuple of three ints). This must be a multiple of re
audioreactive/latent.py:188
Function
plot_audio
Shows spectrogram of audio signal Args: audio (np.array): Audio signal to be plotted sr (int): Sampling rate of the audio
audioreactive/util.py:61
Function
plot_chroma_comparison
Shows plot comparing different chromagram strategies. Args: audio (np.array): Audio signal to be plotted sr (int): Sampling rate
audioreactive/util.py:77
Function
plot_signals
Shows plot of (multiple) 1D signals Args: signals (np.array/th.tensor): List of signals (1 non-unit dimension)
audioreactive/util.py:23
Function
plot_spectra
Shows plot of (multiple) spectrograms Args: spectra (np.array/th.tensor): List of spectrograms chroma (bool, optional): Whether t
audioreactive/util.py:41
Function
ppl
(generator, batch_size, n_sample, space, crop, latent_dim, eps=1e-4)
validation/metrics.py:222
Function
print_network
(net)
validation/lpips/networks_basic.py:217
Function
psnr
(p0, p1, peak=255.0)
validation/lpips/util.py:19
Function
raise_if_nan
(t)
lucidrains.py:133
Function
remove_spectral_norm
r"""Removes the spectral normalization reparameterization from a module. Args: module (Module): containing module name (str, optio
validation/spectral_norm.py:106
Method
reset_moving_average
(self)
contrastive_learner.py:214
Function
resize_to_minimum_size
(min_size, image)
lucidrains.py:226
Function
resize_worker
(img_file, sizes, resample)
prepare_data.py:35
Function
rgb2lab
(in_img, mean_cent=False)
validation/lpips/util.py:27
Function
rms
Creates RMS envelope from audio Args: audio (np.array): Audio signal sr (int): Sampling rate of the audio n_frames (int):
audioreactive/signal.py:76
Function
save
()
select_latents.py:318
Method
save
(self, path, label)
validation/lpips/dist_model.py:207
Method
save_done
(self, flag=False)
validation/lpips/base_model.py:53
Function
save_latents
Saves latent vectors to file Args: latents (th.tensor): Latent vector(s) to save filename (str): Filename to save to
audioreactive/latent.py:162
Function
score_2afc_dataset
Function computes Two Alternative Forced Choice (2AFC) score using distance function 'func' in dataset 'data_loader' INPUTS data_
validation/lpips/dist_model.py:225
Function
score_jnd_dataset
Function computes JND score using distance function 'func' in dataset 'data_loader' INPUTS data_loader - CustomDatasetDataLoader object -
validation/lpips/dist_model.py:261
Function
set_SMF
(smf)
audioreactive/signal.py:21
Method
set_input
(self, data)
validation/lpips/dist_model.py:147
Method
set_size
(self, width, height)
select_latents.py:204
Function
singleton
(cache_key)
contrastive_learner.py:28
Function
slerp
(val, low, high)
generate_video.py:42
Function
slerp
(a, b, t)
validation/calc_ppl.py:16
Function
slerp_loops
Get looping latents using geodesic interpolation. Total length of n_frames with n_loops repeats. Args: latent_selection (th.tensor): Set
audioreactive/latent.py:48
Function
spline_loops
(base_latent_selection, loop_starting_latents, n_frames, num_loops, smoothing, s=True)
generate_video.py:126
Function
spline_loops
Get looping latents using spline interpolation. Total length of n_frames with n_loops repeats. Args: latent_selection (th.tensor): Set of
audioreactive/latent.py:85
Function
split_batches
(jobs_in, jobs_out)
render.py:34
Function
tensor2tensorlab
(image_tensor, to_norm=True, mc_only=False)
validation/lpips/util.py:46
Function
tensor2vec
(vector_tensor)
validation/lpips/util.py:97
Function
tensorlab2tensor
(lab_tensor, return_inbnd=False)
validation/lpips/util.py:61
Method
tile
(a, dim, n_tile)
lucidrains.py:971
Function
track_spectral_norm
r"""Tracks the spectral norm of a module's weight parameter Args: module (nn.Module): containing module name (str, optional): name
validation/spectral_norm.py:76
Method
training_step
(self, real_img, batch_idx, optimizer_idx)
lightning.py:127
Function
uniform
(x, t=2)
accelerate/accelerate_segnet.py:85
Method
update_learning_rate
(self, nepoch_decay)
validation/lpips/dist_model.py:214
Method
update_learning_rate
()
validation/lpips/base_model.py:47
Method
update_moving_average
(ma_model, current_model)
lucidrains.py:609
Method
update_moving_average
(self)
contrastive_learner.py:219
Function
upfirdn2d
op/upfirdn2d.cpp:12
Function
vae_fid
(vae, batch_size, latent_dim, n_sample, inception_name, calculate_prdc=True)
validation/metrics.py:17
Method
val_dataloader
(self)
lightning.py:227
Method
validation_epoch_end
(self, outputs)
lightning.py:250
Method
validation_step
(self, batch, batch_idx)
lightning.py:230
Function
voc_ap
ap = voc_ap(rec, prec, [use_07_metric]) Compute VOC AP given precision and recall. If use_07_metric is true, uses the VOC 07 11 point met
validation/lpips/util.py:101
Method
width
(self)
select_latents.py:189
Function
wrapper
(self, *args, **kwargs)
contrastive_learner.py:31
Function
wrapping_slice
Gets slice of tensor of a given length that wraps around to beginning Args: tensor (th.tensor): Tensor to slice start (int): Star
audioreactive/latent.py:113
Function
write_video
(arr, output_file, fps)
render.py:195
← previous
501–576 of 576, ranked by callers