MCPcopy Create free account

hub / github.com/SHI-Labs/Versatile-Diffusion / functions

Functions773 in github.com/SHI-Labs/Versatile-Diffusion

↓ 1 callersMethodinference_mcg
(self, *args)
app.py:500
↓ 1 callersMethodinit_from_ckpt
(self, path, ignore_keys=list())
lib/model_zoo/bert.py:87
↓ 1 callersMethodinit_weights
Initialize and prunes weights if needed.
lib/model_zoo/optimus_models/optimus_gpt2.py:1041
↓ 1 callersMethodinstantiate_pretrained
(self, config)
lib/model_zoo/diffusion_modules.py:807
↓ 1 callersMethodinstantiate_pretrained
(self, config)
lib/model_zoo/autokl_modules.py:807
↓ 1 callersMethodkl
(self, other=None)
lib/model_zoo/distributions.py:39
↓ 1 callersFunctionlast_word_of
(input, length)
app.py:149
↓ 1 callersFunctionload_cfg_yaml
(path)
lib/cfg_helper.py:234
↓ 1 callersMethodload_from_pretrained
(self, name="vgg_lpips")
lib/model_zoo/autokl_utils.py:244
↓ 1 callersFunctionload_vocab
Loads a vocabulary file into a dictionary.
lib/model_zoo/optimus_models/tokenization_bert.py:83
↓ 1 callersMethodlocal_init
(self)
lib/sync.py:132
↓ 1 callersMethodlog_probability
Cross Entropy in the language case Args: x: (batch_size, seq_len) z: (batch_size, n_sample, nz) Returns:
lib/model_zoo/optimus.py:228
↓ 1 callersFunctionmake_beta_schedule
(schedule, n_timestep, linear_start=1e-4, linear_end=2e-2, cosine_s=8e-3)
lib/model_zoo/diffusion_utils.py:8
↓ 1 callersFunctionmake_ddim_sampling_parameters
(alphacums, ddim_timesteps, eta, verbose=True)
lib/model_zoo/diffusion_utils.py:48
↓ 1 callersFunctionmake_ddim_timesteps
(ddim_discr_method, num_ddim_timesteps, num_ddpm_timesteps, verbose=True)
lib/model_zoo/diffusion_utils.py:32
↓ 1 callersFunctionmcg_interface
(with_example=False)
app.py:874
↓ 1 callersMethodmerge_heads
(self, x)
lib/model_zoo/optimus_models/optimus_gpt2.py:168
↓ 1 callersMethodp_losses
(self, x_info, t, c_info, noise=None)
lib/model_zoo/vd.py:246
↓ 1 callersMethodp_sample_ddim
(self, x_info, c_info, t, index, repeat_noise=False, use_origina
lib/model_zoo/ddim.py:130
↓ 1 callersMethodp_sample_ddim_multicontext
( self, x_info, c_info_list, t, index, repeat_noise=False, use_original_
lib/model_zoo/ddim.py:245
↓ 1 callersMethodprepare_dataloader
Prepare the dataloader from config.
lib/utils.py:483
↓ 1 callersMethodprepare_model
Prepare the model from config.
lib/utils.py:491
↓ 1 callersFunctionpreprocess_model_args
(args)
lib/model_zoo/common/get_model.py:19
↓ 1 callersMethodprune_heads
Prunes heads of the base model. Arguments: heads_to_prune: dict with keys being selected layer indices (`int`) and asso
lib/model_zoo/optimus_models/modeling_utils.py:178
↓ 1 callersMethodrandom_sync_id
(self)
lib/sync.py:144
↓ 1 callersFunctionrecord_resume_cfg
(path)
lib/cfg_helper.py:272
↓ 1 callersMethodregister
(self, model, name)
lib/model_zoo/common/get_model.py:38
↓ 1 callersMethodregister
(self, lrsf, name)
lib/model_zoo/common/get_scheduler.py:21
↓ 1 callersMethodregister_schedule
(self, given_betas=None, beta_schedule="linear",
lib/model_zoo/vd.py:127
↓ 1 callersFunctionremove_duplicates
(input, length)
app.py:137
↓ 1 callersMethodrestore
Restore the parameters stored with the `store` method. Useful to validate the model with EMA parameters without affecting the
lib/model_zoo/ema.py:63
↓ 1 callersMethodreverse
(self, output)
lib/model_zoo/autokl_utils.py:66
↓ 1 callersFunctions3_etag
Check ETag on S3 object.
lib/model_zoo/optimus_models/file_utils.py:191
↓ 1 callersFunctions3_get
Pull a file directly from S3.
lib/model_zoo/optimus_models/file_utils.py:200
↓ 1 callersMethodsample
(self)
lib/model_zoo/distributions.py:35
↓ 1 callersFunctionsample_single_sequence_conditional
( model, context, past=None, temperature=1, top_k=0, top_p=0.
lib/model_zoo/optimus.py:662
↓ 1 callersMethodsave_cfg
(self, cfg)
lib/cfg_holder.py:21
↓ 1 callersMethodsave_last_model
(self, **para)
lib/utils.py:497
↓ 1 callersMethodsave_model
(self, net, path_noext, **paras)
lib/utils.py:315
↓ 1 callersMethodsave_vocabulary
Save the tokenizer vocabulary to a directory. This method does *NOT* save added tokens and special token mappings. Please us
lib/model_zoo/optimus_models/tokenization_utils.py:463
↓ 1 callersMethodschedule
(self, n)
lib/model_zoo/common/get_scheduler.py:173
↓ 1 callersMethodschedule
(self, n)
lib/model_zoo/common/get_scheduler.py:225
↓ 1 callersFunctionsearch_experiment_folder
(root, exid)
lib/cfg_helper.py:602
↓ 1 callersFunctionspatial_average
(x, keepdim=True)
lib/model_zoo/autokl_utils.py:222
↓ 1 callersFunctionsplit_and_puncsplit
(text)
app.py:156
↓ 1 callersMethodstore
Save the current parameters for restoring later. Args: parameters: Iterable of `torch.nn.Parameter`; the parameters to be
lib/model_zoo/ema.py:54
↓ 1 callersFunctiont2i_interface
(with_example=False)
app.py:588
↓ 1 callersFunctiont2t_interface
(with_example=False)
app.py:677
↓ 1 callersFunctiontcg_interface
(with_example=False)
app.py:795
↓ 1 callersMethodtensorboard_close
(self)
lib/log_service.py:138
↓ 1 callersMethodtie_weights
Make sure we are sharing the input and output embeddings. Export to TorchScript can't handle parameter sharing so we are cloning them ins
lib/model_zoo/optimus_models/optimus_bert.py:790
↓ 1 callersMethodtie_weights
Make sure we are sharing the input and output embeddings. Export to TorchScript can't handle parameter sharing so we are cloning them ins
lib/model_zoo/optimus_models/optimus_gpt2.py:566
↓ 1 callersMethodtie_weights
Make sure we are sharing the input and output embeddings. Export to TorchScript can't handle parameter sharing so we are cloning them ins
lib/model_zoo/optimus_models/optimus_gpt2.py:659
↓ 1 callersMethodtie_weights
Make sure we are sharing the input and output embeddings. Export to TorchScript can't handle parameter sharing so we are cloning them ins
lib/model_zoo/optimus_models/optimus_gpt2.py:772
↓ 1 callersMethodto_dict
Serializes this instance to a Python dictionary.
lib/model_zoo/optimus_models/configuration_utils.py:193
↓ 1 callersMethodto_json_file
Save this instance to a json file.
lib/model_zoo/optimus_models/configuration_utils.py:202
↓ 1 callersFunctiontop_k_top_p_filtering
Filter a distribution of logits using top-k and/or nucleus (top-p) filtering Args: logits: logits distribution shape (vocabulary
lib/model_zoo/optimus.py:690
↓ 1 callersMethodupdate_both
(self, x0, x1, flag)
app.py:717
↓ 1 callersMethodupdate_visible
(self, x0, x1, flag)
app.py:739
↓ 1 callersMethodupdate_visible_oneoff
(self, x0, x1, flag)
app.py:744
↓ 1 callersFunctionurl_to_filename
Convert `url` into a hashed filename in a repeatable way. If `etag` is specified, append its hash to the url's, delimited by a period.
lib/model_zoo/optimus_models/file_utils.py:81
↓ 1 callersMethodvae_encode
(self, x, which, **kwargs)
lib/model_zoo/vd.py:283
↓ 1 callersMethodwait
(self, k)
lib/sync.py:82
MethodKL
(self, x)
lib/model_zoo/optimus.py:334
Method__call__
(self, x, lvl)
app.py:87
Method__call__
(self, x0, x1, flag)
app.py:707
Method__call__
(self, *args)
app.py:755
Method__call__
(self, name)
lib/cfg_helper.py:107
Method__call__
(self, name)
lib/cfg_helper.py:172
Method__call__
(self, name)
lib/cfg_helper.py:216
Method__call__
(self, **paras)
lib/utils.py:61
Method__call__
(self, evalloader, net, **paras)
lib/utils.py:371
Method__call__
(self, local_rank, **kwargs)
lib/utils.py:434
Method__call__
Construct model based on the config.
lib/model_zoo/common/get_model.py:41
Method__call__
(self, cfg)
lib/model_zoo/common/get_scheduler.py:24
Method__call__
(self, name)
lib/model_zoo/common/utils.py:63
Method__call__
(self, x, gain=1)
lib/model_zoo/common/utils.py:101
Method__call__
(self, x, gain=1)
lib/model_zoo/common/utils.py:135
Method__call__
(self, net, cfg)
lib/model_zoo/common/get_optimizer.py:24
Method__eq__
(self, other)
lib/model_zoo/optimus_models/configuration_utils.py:187
Method__getitem__
(self, idx)
lib/model_zoo/common/get_scheduler.py:51
Method__getitem__
(self, idx)
lib/model_zoo/common/get_scheduler.py:76
Method__getitem__
(self, idx)
lib/model_zoo/common/get_scheduler.py:89
Method__getitem__
(self, idx)
lib/model_zoo/common/get_scheduler.py:103
Method__getitem__
(self, idx)
lib/model_zoo/common/get_scheduler.py:138
Method__getitem__
(self, idx)
lib/model_zoo/common/get_scheduler.py:189
Method__getitem__
(self, idx)
lib/model_zoo/common/get_scheduler.py:243
Method__init
(self)
lib/model_zoo/common/utils.py:109
Method__init__
(self, max_drop_rank=[1, 5], q=20)
app.py:58
Method__init__
(self, *args, **kwarg)
app.py:233
Method__init__
(self, fp16=False, which='v2.0')
app.py:245
Method__init__
(self, block0, block1)
app.py:702
Method__init__
(self, checkbox_list, functor_list)
app.py:751
Method__init__
( self, examples: List[Any] | List[List[Any]] | str, inputs: IOComponent |
cusomized_gradio_blocks.py:67
Method__init__
(self)
lib/cfg_helper.py:103
Method__init__
(self)
lib/cfg_helper.py:168
Method__init__
(self)
lib/cfg_helper.py:212
Method__init__
(self)
lib/utils.py:46
Method__init__
(self)
lib/utils.py:362
Method__init__
(self, cfg, **kwargs)
lib/utils.py:419
← previousnext →201–300 of 773, ranked by callers