MCPcopy Create free account

hub / github.com/JCBrouwer/maua-stylegan2 / functions

Functions576 in github.com/JCBrouwer/maua-stylegan2

Functioninner_fn
(fn)
contrastive_learner.py:29
Functionl2
(p0, p1, range=255.0)
validation/lpips/util.py:15
Functionlaplacian_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
Functionlmdmb_write_worker
(i_code, env, size)
prepare_vae_codes.py:15
Functionload_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
Functionload_latents
Load latents from numpy file Args: filename (str): Filename to load from Returns: th.tensor: Latent vectors
audioreactive/latent.py:172
Methodload_network
(self, network, network_label, epoch_label)
validation/lpips/base_model.py:41
Functionloss_backwards
(fp16, loss, optimizer, **kwargs)
lucidrains.py:138
Methodmake_noise
(self)
models/stylegan2.py:472
Functionmake_video
(jobs_in)
render.py:94
Functionmixed_list
(n, layers, latent_dim)
lucidrains.py:169
Methodname
(self)
validation/lpips/dist_model.py:16
Methodname
(self)
validation/lpips/base_model.py:9
Methodnf
(stage)
models/stylegan1.py:441
Functionnormalize_tensor
(in_feat, eps=1e-10)
validation/lpips/util.py:10
Functionnt_xent_loss
(queries, keys, temperature=0.1)
contrastive_learner.py:56
Methodon_enter
(self, e)
select_latents.py:36
Methodon_leave
(self, e)
select_latents.py:39
Functiononsets
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
Methodoptimize_parameters
(self)
validation/lpips/dist_model.py:135
Methodoptimize_parameters
(self)
validation/lpips/base_model.py:22
Methodoptimizer_step
(self, cur_epoch, batch_idx, optimizer, optimizer_idx, closure)
lightning.py:212
Methodparam_groups
(self)
lookahead_minimax.py:132
Functionperlin_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
Functionperlin_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
Functionplot_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
Functionplot_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
Functionplot_signals
Shows plot of (multiple) 1D signals Args: signals (np.array/th.tensor): List of signals (1 non-unit dimension)
audioreactive/util.py:23
Functionplot_spectra
Shows plot of (multiple) spectrograms Args: spectra (np.array/th.tensor): List of spectrograms chroma (bool, optional): Whether t
audioreactive/util.py:41
Functionppl
(generator, batch_size, n_sample, space, crop, latent_dim, eps=1e-4)
validation/metrics.py:222
Functionprint_network
(net)
validation/lpips/networks_basic.py:217
Functionpsnr
(p0, p1, peak=255.0)
validation/lpips/util.py:19
Functionraise_if_nan
(t)
lucidrains.py:133
Functionremove_spectral_norm
r"""Removes the spectral normalization reparameterization from a module. Args: module (Module): containing module name (str, optio
validation/spectral_norm.py:106
Methodreset_moving_average
(self)
contrastive_learner.py:214
Functionresize_to_minimum_size
(min_size, image)
lucidrains.py:226
Functionresize_worker
(img_file, sizes, resample)
prepare_data.py:35
Functionrgb2lab
(in_img, mean_cent=False)
validation/lpips/util.py:27
Functionrms
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
Functionsave
()
select_latents.py:318
Methodsave
(self, path, label)
validation/lpips/dist_model.py:207
Methodsave_done
(self, flag=False)
validation/lpips/base_model.py:53
Functionsave_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
Functionscore_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
Functionscore_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
Functionset_SMF
(smf)
audioreactive/signal.py:21
Methodset_input
(self, data)
validation/lpips/dist_model.py:147
Methodset_size
(self, width, height)
select_latents.py:204
Functionsingleton
(cache_key)
contrastive_learner.py:28
Functionslerp
(val, low, high)
generate_video.py:42
Functionslerp
(a, b, t)
validation/calc_ppl.py:16
Functionslerp_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
Functionspline_loops
(base_latent_selection, loop_starting_latents, n_frames, num_loops, smoothing, s=True)
generate_video.py:126
Functionspline_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
Functionsplit_batches
(jobs_in, jobs_out)
render.py:34
Functiontensor2tensorlab
(image_tensor, to_norm=True, mc_only=False)
validation/lpips/util.py:46
Functiontensor2vec
(vector_tensor)
validation/lpips/util.py:97
Functiontensorlab2tensor
(lab_tensor, return_inbnd=False)
validation/lpips/util.py:61
Methodtile
(a, dim, n_tile)
lucidrains.py:971
Functiontrack_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
Methodtraining_step
(self, real_img, batch_idx, optimizer_idx)
lightning.py:127
Functionuniform
(x, t=2)
accelerate/accelerate_segnet.py:85
Methodupdate_learning_rate
(self, nepoch_decay)
validation/lpips/dist_model.py:214
Methodupdate_learning_rate
()
validation/lpips/base_model.py:47
Methodupdate_moving_average
(ma_model, current_model)
lucidrains.py:609
Methodupdate_moving_average
(self)
contrastive_learner.py:219
Functionupfirdn2d
op/upfirdn2d.cpp:12
Functionvae_fid
(vae, batch_size, latent_dim, n_sample, inception_name, calculate_prdc=True)
validation/metrics.py:17
Methodval_dataloader
(self)
lightning.py:227
Methodvalidation_epoch_end
(self, outputs)
lightning.py:250
Methodvalidation_step
(self, batch, batch_idx)
lightning.py:230
Functionvoc_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
Methodwidth
(self)
select_latents.py:189
Functionwrapper
(self, *args, **kwargs)
contrastive_learner.py:31
Functionwrapping_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
Functionwrite_video
(arr, output_file, fps)
render.py:195
← previous501–576 of 576, ranked by callers