MCPcopy Index your code

hub / github.com/ShanghaiTech-IMPACT/TeethDreamer / functions

Functions848 in github.com/ShanghaiTech-IMPACT/TeethDreamer

↓ 38 callersMethodC
(self, value)
instant-nsr-pl/systems/base.py:28
↓ 20 callersFunctioninstantiate_from_config
(config)
ldm/util.py:157
↓ 19 callersFunctionupdate_module_step
(m, epoch, global_step)
instant-nsr-pl/systems/utils.py:349
↓ 16 callersFunctionexists
(val)
ldm/modules/x_transformer.py:54
↓ 15 callersMethod__init__
(self, *, ch, out_ch, ch_mult=(1,2,4,8), num_res_blocks, attn_resolutions, dropout=0.0, resam
ldm/modules/diffusionmodules/model.py:217
↓ 15 callersMethod__init__
(self, n_embed, n_layer, vocab_size=30522, max_seq_len=77, device="cuda",use_tokenizer=True,
ldm/modules/encoders/modules.py:152
↓ 15 callersFunctionconv_nd
Create a 1D, 2D, or 3D convolution module.
ldm/modules/diffusionmodules/util.py:218
↓ 14 callersMethodeval
(self)
instant-nsr-pl/models/base.py:24
↓ 14 callersMethodget_save_path
(self, filename)
instant-nsr-pl/utils/mixins.py:33
↓ 13 callersFunctionread_next_bytes
Read and unpack the next bytes from a binary file. :param fid: :param num_bytes: Sum of combination of {2, 4, 8}, e.g. 2, 6, 16, 30, etc.
instant-nsr-pl/datasets/colmap_utils.py:69
↓ 12 callersMethod__init__
(self, value, fn)
ldm/modules/x_transformer.py:118
↓ 12 callersFunctionget_block
(in_channel, depth, num_units, stride=2)
ldm/thirdp/psp/helpers.py:27
↓ 12 callersFunctionread_pickle
(pkl_path)
ldm/base_utils.py:41
↓ 12 callersFunctionscale_anything
(dat, inp_scale, tgt_scale)
instant-nsr-pl/models/utils.py:108
↓ 11 callersFunctionget_activation
(name)
instant-nsr-pl/models/utils.py:71
↓ 11 callersFunctionget_rank
()
instant-nsr-pl/utils/misc.py:42
↓ 10 callersMethodconstruct_spatial_volume
@param x: B,N,4,H,W @param t_embed: B,t_dim @param v_embed: B,N,v_dim @param target_poses: N,3,4
ldm/models/diffusion/sync_dreamer.py:154
↓ 10 callersMethodget_target_view_feats
@param x_input: B,4,H,W @param spatial_volume: B,C,V,V,V @param clip_embed: B,1,768 @param t_embed:
ldm/models/diffusion/sync_dreamer.py:493
↓ 10 callersFunctionnonlinearity
(x)
ldm/modules/diffusionmodules/model.py:33
↓ 9 callersFunctionNormalize
(in_channels, num_groups=32)
ldm/modules/diffusionmodules/model.py:38
↓ 9 callersMethod__init__
(self, dim_in, dim_out)
ldm/modules/attention.py:38
↓ 9 callersMethod__init__
(self, channels, use_conv, dims=2, out_channels=None, padding=1)
ldm/modules/diffusionmodules/openaimodel.py:101
↓ 9 callersFunctionconcat_images_list
(*args,vert=False)
ldm/base_utils.py:108
↓ 9 callersMethodconvert_data
(self, data)
instant-nsr-pl/utils/mixins.py:21
↓ 8 callersFunctionconfig_to_primitive
(config, resolve=True)
instant-nsr-pl/utils/misc.py:34
↓ 8 callersFunctionnormalization
Make a standard normalization layer. :param channels: number of input channels. :return: an nn.Module for normalization.
ldm/modules/diffusionmodules/util.py:199
↓ 7 callersMethod__init__
(self, x_dim, t_dim, v_dim, out_dim, stride)
ldm/models/diffusion/sync_dreamer_network.py:126
↓ 7 callersMethoddecode
(self, quant)
ldm/models/autoencoder.py:107
↓ 7 callersMethodencode
(self, x)
ldm/models/autoencoder.py:96
↓ 7 callersFunctionmake_attn
(in_channels, attn_type="vanilla")
ldm/modules/diffusionmodules/model.py:205
↓ 7 callersMethodpredict_with_unconditional_scale
(self, x, t, clip_embed, volume_feats, x_concat, unconditional_scale, **kwargs)
ldm/models/diffusion/sync_dreamer.py:103
↓ 6 callersFunctionchunk_batch
(func, chunk_size, move_to_cpu, *args, **kwargs)
instant-nsr-pl/models/utils.py:13
↓ 6 callersFunctioncontract_to_unisphere
(x, radius, contraction_type)
instant-nsr-pl/models/geometry.py:17
↓ 6 callersFunctiondefault
(val, d)
ldm/modules/x_transformer.py:58
↓ 6 callersFunctiondisable_training_module
(module: nn.Module)
ldm/models/diffusion/sync_dreamer.py:24
↓ 6 callersMethodencode
(self, text)
ldm/modules/encoders/modules.py:171
↓ 6 callersMethodload_state_dict
Loads the schedulers state. Args: state_dict (dict): scheduler state. Should be an object returned from a call to
instant-nsr-pl/systems/utils.py:148
↓ 6 callersFunctionrank_zero_print
(*args)
TeethDreamer.py:22
↓ 5 callersFunctioncheckpoint
Evaluate a function without caching intermediate activations, allowing for reduced memory at the expense of extra compute in the backward pas
ldm/modules/diffusionmodules/util.py:102
↓ 5 callersFunctiondefault
(val, d)
ldm/modules/attention.py:19
↓ 5 callersFunctionexists
(x)
ldm/util.py:132
↓ 5 callersMethodexport
(self, export_config)
instant-nsr-pl/models/base.py:31
↓ 5 callersFunctionlinear
Create a linear module.
ldm/modules/diffusionmodules/util.py:231
↓ 5 callersMethodload_index
(self, filename, index, bg_color, normal=False, **kwargs)
ldm/data/teeth_dreamer.py:88
↓ 5 callersMethodmode
(self)
ldm/modules/distributions/distributions.py:20
↓ 5 callersFunctionranking_loss
(error, penalize_ratio=0.7, extra_weights=None , type='mean')
instant-nsr-pl/systems/neus.py:16
↓ 5 callersFunctionrepeat_to_batch
(tensor, B, VN)
ldm/models/diffusion/sync_dreamer.py:31
↓ 5 callersMethodsample
(self, sampler, batch, cfg_scale, batch_view_num, return_inter_results=False, inter_interval=50, inter_view_in
ldm/models/diffusion/zero123.py:369
↓ 5 callersFunctiontimestep_embedding
Create sinusoidal timestep embeddings. :param timesteps: a 1-D Tensor of N indices, one per batch element. These may be
ldm/modules/diffusionmodules/util.py:151
↓ 4 callersMethod__init__
(self, dim_in, dim_out, config)
instant-nsr-pl/models/network_utils.py:96
↓ 4 callersFunctionbinary_cross_entropy
F.binary_cross_entropy is not numerically stable in mixed-precision training.
instant-nsr-pl/systems/criterions.py:155
↓ 4 callersMethodconstruct_spatial_volume
@param x: B,N,4,H,W @param t_embed: B,t_dim @param v_embed: B,N,v_dim @param target_poses: N,3,4
ldm/models/diffusion/teeth_dreamer.py:154
↓ 4 callersMethodgeneral_loader
(self, dataset, batch_size)
instant-nsr-pl/datasets/dtu.py:181
↓ 4 callersMethodgeneral_loader
(self, dataset, batch_size)
instant-nsr-pl/datasets/blender.py:206
↓ 4 callersMethodgeneral_loader
(self, dataset, batch_size)
instant-nsr-pl/datasets/colmap.py:312
↓ 4 callersMethodget_last_layer
(self)
ldm/models/autoencoder.py:230
↓ 4 callersMethodget_last_layer
(self)
ldm/models/autoencoder.py:397
↓ 4 callersFunctionget_mlp
(n_input_dims, n_output_dims, config)
instant-nsr-pl/models/network_utils.py:176
↓ 4 callersFunctionget_rays
(directions, c2w, keepdim=False)
instant-nsr-pl/models/ray_utils.py:23
↓ 4 callersMethodget_target_view_feats
@param x_input: B,4,H,W @param spatial_volume: B,C,V,V,V @param clip_embed: B,1,768 @param t_embed:
ldm/models/diffusion/teeth_dreamer.py:427
↓ 4 callersMethodpreprocess_data
(self, batch, stage)
instant-nsr-pl/systems/base.py:47
↓ 4 callersMethodsave_image_grid
(self, filename, imgs)
instant-nsr-pl/utils/mixins.py:143
↓ 4 callersFunctionzero_module
Zero out the parameters of a module and return it.
ldm/modules/diffusionmodules/util.py:174
↓ 3 callersMethod__init__
(self, ddconfig, lossconfig, n_embed, embe
ldm/models/autoencoder.py:15
↓ 3 callersMethod__init__
(self, diff_model_config, drop_conditions=False, drop_scheme='default', use_zero_123=True)
ldm/models/diffusion/teeth_dreamer.py:38
↓ 3 callersMethod__init__
(self, diff_model_config, drop_conditions=False, drop_scheme='default', use_zero_123=True)
ldm/models/diffusion/sync_dreamer.py:38
↓ 3 callersFunctionadd_margin
(pil_img, color=0, size=256)
ldm/util.py:46
↓ 3 callersFunctiondisable_training_module
(module: nn.Module)
ldm/models/diffusion/zero123.py:24
↓ 3 callersFunctiondisable_training_module
(module: nn.Module)
ldm/models/diffusion/teeth_dreamer.py:24
↓ 3 callersMethoddrop
(self, cond, mask)
ldm/models/diffusion/teeth_dreamer.py:46
↓ 3 callersMethoddrop
(self, cond, mask)
ldm/models/diffusion/sync_dreamer.py:46
↓ 3 callersFunctionget_encoding
(n_input_dims, config)
instant-nsr-pl/models/network_utils.py:82
↓ 3 callersMethodget_input
(self, batch, k)
ldm/models/autoencoder.py:124
↓ 3 callersMethodget_input
(self, batch, k)
ldm/models/autoencoder.py:344
↓ 3 callersFunctionget_ray_directions
(W, H, fx, fy, cx, cy, use_pixel_centers=True)
instant-nsr-pl/models/ray_utils.py:9
↓ 3 callersMethodget_rgb_image_
(self, img, data_format, data_range)
instant-nsr-pl/utils/mixins.py:42
↓ 3 callersFunctionmake_ddim_timesteps
(ddim_discr_method, num_ddim_timesteps, num_ddpm_timesteps, verbose=True)
ldm/modules/diffusionmodules/util.py:46
↓ 3 callersMethodmake_linear
(self, dim_in, dim_out, is_first, is_last)
instant-nsr-pl/models/network_utils.py:114
↓ 3 callersFunctionpkl2json
(path, image_size, normal=False, real='')
instant-nsr-pl/tools.py:66
↓ 3 callersMethodregularizations
(self, out)
instant-nsr-pl/models/base.py:27
↓ 3 callersMethodsample
(self, sampler, batch, cfg_scale, batch_view_num, return_inter_results=False, inter_interval=50, inter_view_in
ldm/models/diffusion/teeth_dreamer.py:518
↓ 3 callersMethodsetup
(self)
instant-nsr-pl/models/base.py:15
↓ 3 callersMethodto_rgb
(self, x)
ldm/models/autoencoder.py:255
↓ 3 callersFunctionzero_module
Zero out the parameters of a module and return it.
ldm/modules/attention.py:76
↓ 2 callersFunctionNormalize
(in_channels)
ldm/modules/attention.py:85
↓ 2 callersMethod__init__
(self, save_root, version=None, use_version=True)
instant-nsr-pl/utils/callbacks.py:17
↓ 2 callersMethod__init__
(self, query_dim, context_dim, heads, dim_head, output_bias=True)
ldm/models/diffusion/sync_dreamer_attention.py:9
↓ 2 callersMethod__init__
(self, unet_config, scheduler_config, finetune_unet=False, finetune_projection=True, use_zero
ldm/models/diffusion/zero123.py:121
↓ 2 callersMethod__init__
(self, channels, reduction)
ldm/thirdp/psp/helpers.py:59
↓ 2 callersMethod_gaussian
(self, kernel_size, sigma)
instant-nsr-pl/systems/criterions.py:85
↓ 2 callersMethod_init_clip_projection
(self)
ldm/models/diffusion/sync_dreamer.py:312
↓ 2 callersMethod_uniform
(self, kernel_size)
instant-nsr-pl/systems/criterions.py:73
↓ 2 callersMethod_validation_step
(self, batch, batch_idx, suffix="")
ldm/models/autoencoder.py:170
↓ 2 callersFunctionalways
(val)
ldm/modules/x_transformer.py:64
↓ 2 callersFunctionaz_el_to_points
(azimuths, elevations)
normal_render.py:113
↓ 2 callersFunctionaz_el_to_points
(azimuths, elevations)
color_render.py:124
↓ 2 callersFunctioncamNormal2worldNormal
(rot_c2w, camNormal)
instant-nsr-pl/datasets/blender.py:20
↓ 2 callersFunctioncleanup
()
instant-nsr-pl/models/utils.py:116
↓ 2 callersFunctionclick_seg
(image_path, mask_path)
seg_teeth.py:65
↓ 2 callersFunctionconstruct_project_matrix
@param x_ratio: float @param y_ratio: float @param Ks: b,3,3 @param poses: b,3,4 @return:
ldm/models/diffusion/sync_dreamer_utils.py:23
next →1–100 of 848, ranked by callers