MCPcopy Create free account

hub / github.com/ThisisBillhe/NAR / functions

Functions683 in github.com/ThisisBillhe/NAR

↓ 1 callersMethodrepeat_to_16_frames
(self, video_tensor)
NAR-videos/eval/rfvd_evaluator.py:79
↓ 1 callersMethodreverse
(self, output)
NAR-images/tokenizer/tokenizer_image/discriminator.py:140
↓ 1 callersMethodreverse
(self, output)
NAR-images/tokenizer/tokenizer_image/discriminator_patchgan.py:131
↓ 1 callersMethodsample
(self)
NAR-videos/models/bottleneck.py:45
↓ 1 callersFunctionsample_cfg
()
NAR-images/tools/draw_figure.py:108
↓ 1 callersFunctionsample_topk
()
NAR-images/tools/draw_figure.py:80
↓ 1 callersFunctionsample_videos
( larp_ar_model: LARP_AR, larp_tokenizer: LARPTokenizer, output_dir: str, dataset_csv: str,
NAR-videos/sample_one.py:78
↓ 1 callersFunctionsample_videos
( larp_ar_model: LARP_AR, larp_tokenizer: LARPTokenizer, output_dir: str, dataset_csv: str,
NAR-videos/sample.py:78
↓ 1 callersMethodsampling
(self)
NAR-videos/models/larp_ar.py:322
↓ 1 callersFunctionserialize_to_tensor
(obj)
NAR-videos/utils/common.py:151
↓ 1 callersMethodset_eval_deterministic
(self, deterministic=True)
NAR-videos/models/bottleneck.py:244
↓ 1 callersFunctionset_logger
(file_path)
NAR-videos/utils/common.py:26
↓ 1 callersMethodset_num_features
(self, num_features)
NAR-videos/utils/fvd/fvd.py:74
↓ 1 callersMethodset_stochastic_temperature
(self, temperature)
NAR-videos/models/bottleneck.py:248
↓ 1 callersMethodset_training_mode
(self, trainable_mode, others_mode=False)
NAR-videos/models/loss.py:320
↓ 1 callersMethodsetup_caches
(self, max_batch_size, max_seq_length, dtype)
NAR-images/autoregressive/models/gpt.py:339
↓ 1 callersMethodsetup_caches
(self, max_batch_size, max_seq_length, dtype)
NAR-videos/models/larp_ar.py:346
↓ 1 callersFunctionsetup_for_distributed
This function disables printing when not in master process
NAR-images/utils/distributed.py:6
↓ 1 callersFunctionsetup_fsdp_sync
(model: nn.Module, args: argparse.Namespace, device)
NAR-images/autoregressive/train/train_c2i_fsdp.py:33
↓ 1 callersFunctionspatial_average
(x, keepdim=True)
NAR-images/tokenizer/tokenizer_image/lpips.py:163
↓ 1 callersFunctiontensor2pil
output image : tensor to PIL
NAR-images/evaluations/t2i/evaluation.py:117
↓ 1 callersMethodtext_preprocessing
(self, text)
NAR-images/language/t5.py:81
↓ 1 callersMethodtimestep_embedding
Create sinusoidal timestep embeddings. :param t: a 1-D Tensor of N indices, one per batch element. These ma
NAR-videos/models/embed.py:141
↓ 1 callersMethodtoken_drop
Drops labels to enable classifier-free guidance.
NAR-images/autoregressive/models/gpt.py:69
↓ 1 callersMethodtoken_drop
Drops labels to enable classifier-free guidance.
NAR-images/autoregressive/models/gpt.py:101
↓ 1 callersMethodtoken_drop
Drops labels to enable classifier-free guidance. labels: (b, n) LongTensor of latent token indices.
NAR-videos/models/embed.py:178
↓ 1 callersMethodtoken_drop
Drops labels to enable classifier-free guidance.
NAR-videos/models/embed.py:240
↓ 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 (batch size, vocabula
NAR-images/autoregressive/models/generate.py:18
↓ 1 callersMethodtrain_epoch
(self)
NAR-videos/trainers/base_trainer.py:607
↓ 1 callersMethodtrain_step
(self, data)
NAR-videos/trainers/base_trainer.py:604
↓ 1 callersFunctiontranslate_cfg_
(d)
NAR-videos/train.py:66
↓ 1 callersMethodunmap_to_all
(self, inds)
NAR-images/tokenizer/vqgan/quantize.py:158
↓ 1 callersMethodupdate_lecam_ema
(self, real, fake, decay=0.999)
NAR-videos/models/loss.py:327
↓ 1 callersMethodupdate_model_spec
Update model_spec with cfg.
NAR-videos/trainers/base_trainer.py:349
↓ 1 callersMethodvisualize_epoch
(self)
NAR-videos/trainers/base_trainer.py:778
↓ 1 callersMethodwarmup
(self)
NAR-images/evaluations/c2i/evaluator.py:151
FunctionGPTC_B
(**kwargs)
NAR-videos/models/gptc.py:199
FunctionGPTC_L
(**kwargs)
NAR-videos/models/gptc.py:196
FunctionGPTC_M
(**kwargs)
NAR-videos/models/gptc.py:202
FunctionGPTC_S
(**kwargs)
NAR-videos/models/gptc.py:205
FunctionGPTC_XS
(**kwargs)
NAR-videos/models/gptc.py:208
FunctionGPTC_XXS
(**kwargs)
NAR-videos/models/gptc.py:211
FunctionGPT_1B
(**kwargs)
NAR-images/autoregressive/models/gpt.py:508
FunctionGPT_3B
(**kwargs)
NAR-images/autoregressive/models/gpt.py:505
FunctionGPT_7B
(**kwargs)
NAR-images/autoregressive/models/gpt.py:502
FunctionGPT_B
(**kwargs)
NAR-images/autoregressive/models/gpt.py:527
FunctionGPT_L
(**kwargs)
NAR-images/autoregressive/models/gpt.py:521
FunctionGPT_M
(**kwargs)
NAR-images/autoregressive/models/gpt.py:524
FunctionGPT_XL
(**kwargs)
NAR-images/autoregressive/models/gpt.py:518
FunctionGPT_XXL
(**kwargs)
NAR-images/autoregressive/models/gpt.py:515
FunctionGPT_XXXL
(**kwargs)
NAR-images/autoregressive/models/gpt.py:512
FunctionLLAMA_ABS_B
(**kwargs)
NAR-videos/models/larp_ar.py:584
FunctionLLAMA_ABS_L
(**kwargs)
NAR-videos/models/larp_ar.py:581
FunctionLLAMA_ABS_LP
(**kwargs)
NAR-videos/models/larp_ar.py:578
FunctionLLAMA_ABS_S
(**kwargs)
NAR-videos/models/larp_ar.py:587
FunctionLLAMA_ABS_XL
(**kwargs)
NAR-videos/models/larp_ar.py:575
FunctionLLAMA_ABS_XXL
(**kwargs)
NAR-videos/models/larp_ar.py:572
FunctionLLAMA_ABS_XXXL
(**kwargs)
NAR-videos/models/larp_ar.py:569
FunctionVQ_16
(**kwargs)
NAR-images/tokenizer/tokenizer_image/vq_model.py:421
FunctionVQ_16
(**kwargs)
NAR-images/tokenizer/tokenizer_image/vq_model_hf.py:14
FunctionVQ_8
(**kwargs)
NAR-images/tokenizer/tokenizer_image/vq_model.py:418
FunctionVQ_8
(**kwargs)
NAR-images/tokenizer/tokenizer_image/vq_model_hf.py:11
Method__add__
(self, other)
NAR-videos/utils/fvd/fvd.py:171
Method__call__
(self, img)
NAR-images/evaluations/t2i/evaluation.py:37
Method__getitem__
(self, index)
NAR-images/evaluations/t2i/evaluation.py:104
Method__getitem__
(self, idx)
NAR-images/dataset/imagenet.py:34
Method__getitem__
(self, index)
NAR-images/dataset/t2i.py:42
Method__getitem__
(self, index)
NAR-images/dataset/t2i.py:95
Method__getitem__
(self, idx)
NAR-images/dataset/openimage.py:23
Method__getitem__
(self, idx)
NAR-images/dataset/coco.py:18
Method__getitem__
(self, index)
NAR-images/language/extract_t5_feature.py:44
Method__getitem__
(self, idx)
NAR-images/tokenizer/vae/reconstruction_vae_ddp.py:33
Method__getitem__
(self, idx)
NAR-images/tokenizer/vqgan/reconstruction_vqgan_ddp.py:35
Method__getitem__
(self, idx)
NAR-images/tokenizer/validation/val_ddp.py:28
Method__getitem__
(self, idx)
NAR-images/tokenizer/consistencydecoder/reconstruction_cd_ddp.py:33
Method__getitem__
(self, idx)
NAR-videos/utils/fvd/fvd.py:310
Method__getitem__
(self, idx)
NAR-videos/utils/fid/fid.py:54
Method__getitem__
(self, idx)
NAR-videos/datasets/video_dataset.py:339
Method__init__
(self, mu: np.ndarray, sigma: np.ndarray)
NAR-images/evaluations/c2i/evaluator.py:84
Method__init__
( self, session, batch_size=64, softmax_batch_size=512, )
NAR-images/evaluations/c2i/evaluator.py:135
Method__init__
Estimate the manifold of given feature vectors. :param session: the TensorFlow session. :param row_batch_size: row batch siz
NAR-images/evaluations/c2i/evaluator.py:228
Method__init__
(self, session)
NAR-images/evaluations/c2i/evaluator.py:385
Method__init__
(self, gen_fn, length)
NAR-images/evaluations/c2i/evaluator.py:472
Method__init__
(self, arr_f, shape, dtype)
NAR-images/evaluations/c2i/evaluator.py:484
Method__init__
(self, arr)
NAR-images/evaluations/c2i/evaluator.py:510
Method__init__
(self, data_name, data_dir, data_type, cro
NAR-images/evaluations/t2i/evaluation.py:45
Method__init__
(self, drop_prob: float = 0., scale_by_keep: bool = True)
NAR-images/utils/drop_path.py:27
Method__init__
(self, feature_dir, label_dir)
NAR-images/dataset/imagenet.py:9
Method__init__
(self, lst_dir, face_lst_dir, transform)
NAR-images/dataset/t2i.py:11
Method__init__
(self, args, transform)
NAR-images/dataset/t2i.py:51
Method__init__
(self, args)
NAR-images/dataset/t2i.py:139
Method__init__
(self, data_path, transform=None)
NAR-images/dataset/openimage.py:11
Method__init__
(self, directory, transform=None)
NAR-images/dataset/coco.py:8
Method__init__
(self, lst_dir, start, end, caption_key, trunc_caption=False)
NAR-images/language/extract_t5_feature.py:24
Method__init__
(self, device, dir_or_name='t5-v1_1-xxl', *, local_cache=False, cache_dir=None, hf_token=None, use_text_prepro
NAR-images/language/t5.py:19
Method__init__
(self, directory, transform=None)
NAR-images/tokenizer/vae/reconstruction_vae_ddp.py:23
Method__init__
(self, directory, transform=None)
NAR-images/tokenizer/vqgan/reconstruction_vqgan_ddp.py:25
Method__init__
(self, n_e, e_dim, beta, remap=None, unknown_index="random", sane_index_shape=False, legacy=T
NAR-images/tokenizer/vqgan/quantize.py:118
Method__init__
(self, in_channels, with_conv)
NAR-images/tokenizer/vqgan/layer.py:18
Method__init__
(self, in_channels, with_conv)
NAR-images/tokenizer/vqgan/layer.py:36
← previousnext →301–400 of 683, ranked by callers