MCPcopy Create free account

hub / github.com/CVL-UESTC/MVAR / functions

Functions241 in github.com/CVL-UESTC/MVAR

↓ 21 callersMethodupdate
(self, **kwargs)
utils/misc.py:321
↓ 12 callersMethodload
(cls, path: str, arr_name: str)
utils/evaluations/c2i/evaluator.py:505
↓ 8 callersMethodflush
(self)
utils/misc.py:153
↓ 7 callersMethodload_state_dict
(self, state_dict: Dict[str, Any], strict=True, assign=False)
models/vqvae.py:166
↓ 5 callersFunctionNormalize
(in_channels, num_groups=32)
models/basic_vae.py:23
↓ 5 callersMethod__init__
( self, *, ch=128, ch_mult=(1, 2, 4, 8), num_res_blocks=2, dro
models/basic_vae.py:125
↓ 5 callersMethodclose
(self)
utils/misc.py:157
↓ 4 callersMethod__init__
(self, embed_dim, quant_resi)
models/quant.py:332
↓ 4 callersMethodadd_meter
(self, name, meter)
utils/misc.py:351
↓ 4 callersMethodidxBl_to_mvar_input
(self, gt_ms_idx_Bl: List[torch.Tensor], SN=None)
models/quant.py:281
↓ 4 callersMethodimg_to_idxBl
( self, inp_img_no_grad: torch.Tensor, v_patch_nums: Optional[Sequence[Union[int, Tupl
models/vqvae.py:99
↓ 4 callersFunctionmake_attn
(in_channels, using_sa=True)
models/basic_vae.py:120
↓ 4 callersMethodwrite
(self, message)
utils/misc.py:149
↓ 3 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, drop=0.0
models/basic_mvar.py:87
↓ 3 callersMethodautoregressive_infer
only used for inference, on autoregressive mode :param B: batch size :param label_B: imagenet label; if None, randomly sample
models/mvar.py:201
↓ 3 callersFunctionbuild_vae_mvar
( # Shared args device, patch_nums=(1, 2, 3, 4, 5, 6, 7, 10, 13, 16), # 10 steps by default #
models/__init__.py:8
↓ 3 callersMethodfhat_to_img
(self, f_hat: torch.Tensor)
models/vqvae.py:96
↓ 3 callersMethodmax
(self)
utils/misc.py:289
↓ 2 callersFunction_batch_pairwise_distances
Compute pairwise distances between two batches of feature vectors.
utils/evaluations/c2i/evaluator.py:420
↓ 2 callersFunction_download_inception_model
()
utils/evaluations/c2i/evaluator.py:579
↓ 2 callersFunctionbarrier
()
utils/dist.py:91
↓ 2 callersFunctioncache_latents
(vae, data_loader: Iterable, device: torch.device, args=None)
utils/engine_mvar.py:10
↓ 2 callersMethodcompile_model
(self, m, fast)
utils/arg_util.py:172
↓ 2 callersMethodcompute_activations
Compute image features for downstream evals. :param batches: a iterator over NHWC numpy arrays in [0, 255]. :return: a tuple
utils/evaluations/c2i/evaluator.py:148
↓ 2 callersMethoddump_log
(self)
utils/arg_util.py:231
↓ 2 callersMethodembed_to_fhat
( self, ms_h_BChw: List[torch.Tensor], all_to_max_scale=True, last_one=False )
models/quant.py:186
↓ 2 callersMethodevaluate_pr
Evaluate precision and recall efficiently. :param features_1: [N1 x D] feature vectors for reference batch. :param radii_1:
utils/evaluations/c2i/evaluator.py:331
↓ 2 callersMethodf_to_idxBl_or_fhat
Here, f_BCHW is the feature from inp_img_no_grad, H, W is the size of processing by encoder
models/quant.py:208
↓ 2 callersMethodfrechet_distance
Compute the Frechet distance between two sets of statistics.
utils/evaluations/c2i/evaluator.py:78
↓ 2 callersMethodgener_indices
(self)
utils/data_sampler.py:42
↓ 2 callersMethodget_config
(self)
trainer.py:430
↓ 2 callersMethodget_logits
( self, h_or_h_and_residual: Union[torch.Tensor, Tuple[torch.Tensor, torch.Tensor]], c
models/mvar.py:188
↓ 2 callersFunctionis_dist_avail_and_initialized
()
utils/misc.py:21
↓ 2 callersFunctionis_master
()
utils/dist.py:77
↓ 2 callersMethodmanifold_radii
(self, features: np.ndarray)
utils/evaluations/c2i/evaluator.py:254
↓ 2 callersMethodpairwise_distances
Evaluate pairwise distances between two batches of feature vectors.
utils/evaluations/c2i/evaluator.py:399
↓ 2 callersFunctionprint_aug
(transform, label)
utils/data.py:187
↓ 2 callersMethodread_activations
(self, npz_path: str)
utils/evaluations/c2i/evaluator.py:144
↓ 2 callersMethodread_statistics
( self, npz_path: str, activations: Tuple[np.ndarray, np.ndarray] )
utils/evaluations/c2i/evaluator.py:170
↓ 2 callersMethodset_step
(self, step=None)
utils/misc.py:197
↓ 2 callersMethodstate_dict
(self)
trainer.py:437
↓ 2 callersFunctiontime_str
(fmt="[%m-%d %H:%M:%S]")
utils/misc.py:80
↓ 2 callersMethodupdate
(self, value, n=1)
utils/misc.py:260
↓ 1 callersMethod__getitem__
(self, _)
models/quant.py:354
↓ 1 callersMethod__len__
(self)
utils/data.py:160
↓ 1 callersFunction_change_builtin_print
(is_master)
utils/misc.py:105
↓ 1 callersFunction_create_feature_graph
(input_batch)
utils/evaluations/c2i/evaluator.py:592
↓ 1 callersFunction_create_softmax_graph
(input_batch)
utils/evaluations/c2i/evaluator.py:609
↓ 1 callersFunction_numpy_partition
(arr, kth, **kwargs)
utils/evaluations/c2i/evaluator.py:642
↓ 1 callersFunction_open_npy_file
(path: str, arr_name: str)
utils/evaluations/c2i/evaluator.py:570
↓ 1 callersFunction_read_bytes
Copied from: https://github.com/numpy/numpy/blob/fb215c76967739268de71aa4bda55dd1b062bc2e/numpy/lib/format.py#L788-L886 Read from file-like
utils/evaluations/c2i/evaluator.py:540
↓ 1 callersFunction_update_shapes
(pool3)
utils/evaluations/c2i/evaluator.py:623
↓ 1 callersFunctionallreduce
(t: torch.Tensor, async_op=False)
utils/dist.py:96
↓ 1 callersFunctionauto_resume
( args: arg_util.Args, pattern="ckpt*.pth" )
utils/misc.py:501
↓ 1 callersMethodbackward_clip_step
( self, stepping: bool, loss: torch.Tensor, )
utils/amp_sc.py:42
↓ 1 callersFunctionbuild_dataloader
(args)
run_mvar_evaluate.py:69
↓ 1 callersFunctionbuild_dataset
( data_path: str, final_reso: int, hflip=False, use_cached=False, )
utils/data.py:104
↓ 1 callersFunctionbuild_dataset_for_eval
( num_classes: int, num_samples_per_class: int, )
utils/data.py:167
↓ 1 callersFunctionbuild_everything
(args: arg_util.Args)
train.py:18
↓ 1 callersMethodcache_log_every
(self, iterable, print_freq, header=None)
utils/misc.py:433
↓ 1 callersFunctioncenter_crop_arr
Center cropping implementation from ADM. https://github.com/openai/guided-diffusion/blob/8fb3ad9197f16bbc40620447b2742e13458d2831/guided_diff
utils/data.py:81
↓ 1 callersMethodcompute_inception_score
(self, activations: np.ndarray, split_size: int = 5000)
utils/evaluations/c2i/evaluator.py:185
↓ 1 callersMethodcompute_prec_recall
( self, activations_ref: np.ndarray, activations_sample: np.ndarray )
utils/evaluations/c2i/evaluator.py:200
↓ 1 callersMethodcompute_statistics
(self, activations: np.ndarray)
utils/evaluations/c2i/evaluator.py:180
↓ 1 callersFunctioncreate_npz_from_sample_folder
Builds a single .npz file from a folder of .png samples. Refer to DiT.
utils/misc.py:519
↓ 1 callersFunctiondrop_path
(x, drop_prob: float = 0., training: bool = False, scale_by_keep: bool = True)
models/helpers.py:39
↓ 1 callersMethodembed_to_img
( self, ms_h_BChw: List[torch.Tensor], all_to_max_scale: bool, last_one=False )
models/vqvae.py:126
↓ 1 callersMethodeval_ep
(self, ld_val: DataLoader, use_cached: bool = True)
trainer.py:84
↓ 1 callersFunctionfilter_params
(model, nowd_keys=())
utils/lr_control.py:94
↓ 1 callersMethodforward
:param label_B: label_B :param x_BlCv_wo_first_l: teacher forcing input (B, self.l, self.Cvae) :return: logits BLV, V is voca
models/mvar.py:336
↓ 1 callersMethodgen_fn
()
utils/evaluations/c2i/evaluator.py:449
↓ 1 callersMethodgener_indices
(self)
utils/data_sampler.py:104
↓ 1 callersFunctiongenerate_backward_attn_mask_only_next
(patch_nums)
models/mvar.py:16
↓ 1 callersFunctionget_args_parser
()
main_cache.py:21
↓ 1 callersMethodget_different_generator_for_each_rank
( self, )
utils/arg_util.py:160
↓ 1 callersFunctionget_local_rank
()
utils/dist.py:55
↓ 1 callersMethodget_next_autoregressive_input
( self, si: int, SN: int, f_hat: torch.Tensor, h_BChw: torch.Tensor )
models/quant.py:312
↓ 1 callersFunctionget_rank
()
utils/misc.py:35
↓ 1 callersFunctionget_rank
()
utils/dist.py:51
↓ 1 callersFunctionglob_with_latest_modified_first
(pattern, recursive=False)
utils/misc.py:495
↓ 1 callersFunctiongumbel_softmax_with_rng
(logits: torch.Tensor, tau: float = 1, hard: bool = False, eps: float = 1e-10, dim: int = -1, rng: torch.Gener
models/helpers.py:22
↓ 1 callersMethodinit_weights
( self, init_adaln=0.5, init_adaln_gamma=1e-5, init_head=0.02, init_st
models/mvar.py:425
↓ 1 callersFunctioninitialized
()
utils/dist.py:15
↓ 1 callersFunctionis_local_master
()
utils/dist.py:81
↓ 1 callersFunctionis_main_process
()
utils/misc.py:41
↓ 1 callersMethodless_thans
(self, batch_1, radii_1, batch_2, radii_2)
utils/evaluations/c2i/evaluator.py:408
↓ 1 callersMethodload_state_dict
(self, state, strict=True, skip_vae=True)
trainer.py:447
↓ 1 callersMethodlog_every
(self, start_it, max_iters, itrt, print_freq, header=None)
utils/misc.py:354
↓ 1 callersFunctionlr_wd_annealing
Decay the learning rate with half-cycle cosine after warmup
utils/lr_control.py:10
↓ 1 callersFunctionmain
()
run_mvar_demo.py:46
↓ 1 callersFunctionmain
(args)
main_cache.py:75
↓ 1 callersFunctionmain
()
run_mvar_evaluate.py:117
↓ 1 callersFunctionmain
()
utils/evaluations/c2i/evaluator.py:27
↓ 1 callersFunctionmain_training
()
train.py:255
↓ 1 callersFunctionneighborhood_attn
( q, k, v, scale: float, attn_mask=None, kernel_size=7, )
models/basic_mvar.py:50
↓ 1 callersFunctionopen_npz_array
(path: str, arr_name: str)
utils/evaluations/c2i/evaluator.py:523
↓ 1 callersFunctionparse_args
()
run_mvar_demo.py:20
↓ 1 callersFunctionparse_args
()
run_mvar_evaluate.py:25
↓ 1 callersMethodread_batch
(self, batch_size: int)
utils/evaluations/c2i/evaluator.py:441
↓ 1 callersMethodread_batches
(self, batch_size: int)
utils/evaluations/c2i/evaluator.py:448
next →1–100 of 241, ranked by callers