MCPcopy Create free account

hub / github.com/openai/shap-e / functions

Functions571 in github.com/openai/shap-e

↓ 93 callersMethodto
(self, *args, **kwargs)
shap_e/rendering/raycast/types.py:86
↓ 33 callersMethodfrom_numpy
(cls, x: shap_e.rendering.mesh.TriMesh)
shap_e/rendering/raycast/types.py:74
↓ 26 callersFunction_extract_into_tensor
Extract values from a 1-D numpy array for a batch of indices. :param arr: the 1-D numpy array. :param timesteps: a tensor of indices int
shap_e/diffusion/gaussian_diffusion.py:1058
↓ 26 callersFunctionsubdict
(dictionary, key=None)
shap_e/models/nn/meta.py:46
↓ 20 callersMethodupdate
Updates the parameter list before the forward prop so that if `params` is None or doesn't have a certain key, the module uses the def
shap_e/models/nn/meta.py:203
↓ 18 callersMethodcopy
(self)
shap_e/models/query.py:16
↓ 12 callersFunctionget_act
(name)
shap_e/models/nn/ops.py:44
↓ 11 callersMethodload
Load the mesh from a .npz file.
shap_e/rendering/mesh.py:30
↓ 9 callersMethod__init__
(self, *, device: torch.device, dtype: torch.dtype, width: int, init_scale: float)
shap_e/models/generation/transformer.py:48
↓ 9 callersFunctionencode_position
(version: str, *, position: torch.Tensor)
shap_e/models/nn/encoding.py:9
↓ 8 callersFunctionmean_flat
Take the mean over all non-batch dimensions.
shap_e/diffusion/gaussian_diffusion.py:1139
↓ 8 callersFunctiontimestep_embedding
Create sinusoidal timestep embeddings. :param timesteps: a 1-D Tensor of N indices, one per batch element. These may be
shap_e/models/generation/util.py:6
↓ 7 callersFunction_sanitize_name
(x: str)
shap_e/models/transmitter/params_proj.py:196
↓ 7 callersFunctionindex_points
Input: points: input points data, [B, N, C] idx: sample index data, [B, S] Return: new_points:, indexed points data,
shap_e/models/nn/pointnet2_utils.py:73
↓ 7 callersFunctioninit_linear
(l, stddev)
shap_e/models/generation/transformer.py:13
↓ 7 callersMethodmap
Creates a copy of self where some or all values are transformed by map_fn. :param should_map: If provided, only those values
shap_e/util/collections.py:91
↓ 7 callersFunctionset_socket_value
(tree, socket, socket_and_default)
shap_e/rendering/blender/blender_script.py:362
↓ 6 callersFunctioncheckpoint
Evaluate a function without caching intermediate activations, allowing for reduced memory at the expense of extra compute in the backward pas
shap_e/models/nn/checkpoint.py:7
↓ 6 callersMethodextend
The ranges at which rays intersect with either one, or both, or none of the self and another are merged together.
shap_e/models/volume.py:28
↓ 6 callersFunctionnode_mul
(x, y, **kwargs)
shap_e/rendering/blender/blender_script.py:397
↓ 6 callersFunctionrender_rays
Perform volumetric rendering over a partition of possible t's in the union of rendering volumes (written below with some abuse of notations)
shap_e/models/nerf/ray.py:15
↓ 5 callersMethod__init__
Instantiate the encoder with information about the renderer's input parameters. This information can be used to create output layers
shap_e/models/transmitter/base.py:15
↓ 5 callersMethod_forward_with_cond
( self, x: torch.Tensor, cond_as_token: List[Tuple[torch.Tensor, bool]] )
shap_e/models/generation/transformer.py:213
↓ 5 callersFunctionappend_dims
Appends dimensions to the end of a tensor until it has target_dims dimensions.
shap_e/diffusion/k_diffusion.py:323
↓ 5 callersFunctionclear_socket_input
(tree, socket)
shap_e/rendering/blender/blender_script.py:356
↓ 5 callersFunctiondenoiser
(x_t, sigma)
shap_e/diffusion/k_diffusion.py:150
↓ 5 callersMethodembed_images_grid
Embed images into latent grids. :param xs: an iterable of images to embed. :return: a tensor of shape [N x C x L], where L =
shap_e/models/generation/pretrained_clip.py:177
↓ 5 callersFunctionget_socket_value
(tree, socket)
shap_e/rendering/blender/blender_script.py:346
↓ 5 callersFunctionposition_encoding_channels
(version: Optional[str] = None)
shap_e/models/nn/encoding.py:31
↓ 5 callersFunctionto_d
Converts a denoiser output to a Karras ODE derivative.
shap_e/diffusion/k_diffusion.py:203
↓ 5 callersFunctionto_torch
(arr: ArrayType, dtype=torch.float)
shap_e/models/nn/utils.py:9
↓ 4 callersMethod__init__
( self, *, device: torch.device, dtype: torch.dtype, n_ctx: int,
shap_e/models/generation/perceiver.py:121
↓ 4 callersMethod__init__
Required: d_input, d_hidden, d_output Optional: act_name, bias
shap_e/models/nn/ops.py:224
↓ 4 callersMethod__init__
(self, *, device: torch.device, param_shapes: Dict[str, Tuple[int]], d_latent: int)
shap_e/models/transmitter/params_proj.py:22
↓ 4 callersMethod__init__
(self, *, device: torch.device)
shap_e/models/transmitter/bottleneck.py:24
↓ 4 callersMethod_wrap_model
(self, model)
shap_e/diffusion/gaussian_diffusion.py:1040
↓ 4 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
shap_e/diffusion/gaussian_diffusion.py:102
↓ 4 callersFunctioncreate_light
(location, energy=1.0, angle=0.5 * math.pi / 180)
shap_e/rendering/blender/blender_script.py:167
↓ 4 callersFunctionmlp_init
(affines, init: Optional[str] = None, init_scale: float = 1.0)
shap_e/models/nn/ops.py:98
↓ 4 callersFunctionnode_op
(op: str, *args, clamp=False)
shap_e/rendering/blender/blender_script.py:382
↓ 4 callersMethodp_mean_variance
Apply the model to get p(x_{t-1} | x_t), as well as a prediction of the initial x, x_0. :param model: the model, which takes
shap_e/diffusion/gaussian_diffusion.py:305
↓ 4 callersFunctionposenc_nerf
Concatenate x and its positional encodings, following NeRF. Reference: https://arxiv.org/pdf/2210.04628.pdf
shap_e/models/nn/encoding.py:200
↓ 4 callersMethodq_posterior_mean_variance
Compute the mean and variance of the diffusion posterior: q(x_{t-1} | x_t, x_0)
shap_e/diffusion/gaussian_diffusion.py:281
↓ 4 callersFunctionscene_root_objects
()
shap_e/rendering/blender/blender_script.py:62
↓ 4 callersMethodunwarp
(self, x: torch.Tensor, options: Optional[AttrDict] = None)
shap_e/models/transmitter/bottleneck.py:33
↓ 3 callersMethod__init__
( self, *, device: torch.device, dtype: torch.dtype, param_shapes: Dic
shap_e/models/transmitter/channels_encoder.py:107
↓ 3 callersMethod_bcast
(self, op, left, right)
shap_e/models/nn/ops.py:161
↓ 3 callersMethod_mlp
:param position: [batch_size x ... x 3] :param params: Meta parameters :param options: Optional hyperparameters :retu
shap_e/models/stf/mlp.py:152
↓ 3 callersMethod_predict_eps_from_xstart
(self, x_t, t, pred_xstart)
shap_e/diffusion/gaussian_diffusion.py:417
↓ 3 callersMethod_vb_terms_bpd
Get a term for the variational lower-bound. The resulting units are bits (rather than nats, as one might expect). This allow
shap_e/diffusion/gaussian_diffusion.py:773
↓ 3 callersFunctionbatch_meta_state_dict
(net, batch_size)
shap_e/models/nn/meta.py:228
↓ 3 callersMethodbottleneck_to_params
( self, vector: torch.Tensor, options: Optional[AttrDict] = None )
shap_e/models/transmitter/base.py:75
↓ 3 callersFunctioncast_rays
Cast a batch of rays onto a mesh.
shap_e/rendering/raycast/cast.py:30
↓ 3 callersFunctionclear_lights
()
shap_e/rendering/blender/blender_script.py:34
↓ 3 callersMethodcombine
Some values may be missing, but the dictionary structures must be the same. :param combine_fn: a (possibly non-commutative)
shap_e/util/collections.py:116
↓ 3 callersFunctioncross_product
(v1: torch.Tensor, v2: torch.Tensor)
shap_e/rendering/raycast/_utils.py:8
↓ 3 callersMethoddenoise
(self, model, x_t, sigmas, **model_kwargs)
shap_e/diffusion/k_diffusion.py:71
↓ 3 callersMethodembed_images
:param xs: N images, stored as numpy arrays, tensors, or PIL images. :return: an [N x D] tensor of features.
shap_e/models/generation/pretrained_clip.py:159
↓ 3 callersMethodembed_text
Embed text prompts as an [N x D] tensor.
shap_e/models/generation/pretrained_clip.py:168
↓ 3 callersFunctionencode_channels
(version: str, *, channels: torch.Tensor)
shap_e/models/nn/encoding.py:20
↓ 3 callersFunctionget_scales
( min_deg: int, max_deg: int, dtype: torch.dtype, device: torch.device, )
shap_e/models/nn/encoding.py:217
↓ 3 callersMethodhas_vertex_colors
(self)
shap_e/rendering/mesh.py:75
↓ 3 callersMethodload_view
Load the given channels from the view at the given index. :return: a tuple (camera_view, data), where data is a float array of
shap_e/rendering/view_data.py:177
↓ 3 callersFunctionmaybe_encode_direction
( version: str, *, position: torch.Tensor, direction: Optional[torch.Tensor] = None, )
shap_e/models/nn/encoding.py:180
↓ 3 callersFunctionnode_add
(x, y, **kwargs)
shap_e/rendering/blender/blender_script.py:400
↓ 3 callersMethodq_sample
Diffuse the data for a given number of diffusion steps. In other words, sample from q(x_t | x_0). :param x_start: the initi
shap_e/diffusion/gaussian_diffusion.py:262
↓ 3 callersMethodsave
Save the mesh to a .npz file.
shap_e/rendering/mesh.py:58
↓ 3 callersFunctionscene_bbox
(single_obj=None, ignore_matrix=False)
shap_e/rendering/blender/blender_script.py:68
↓ 3 callersMethodunscale_out_dict
( self, out: Dict[str, Union[th.Tensor, Any]] )
shap_e/diffusion/gaussian_diffusion.py:996
↓ 3 callersMethodviews_to_tensor
Returns a [batch x num_views x 3 x size x size] tensor in the range [-1, 1].
shap_e/models/transmitter/channels_encoder.py:728
↓ 3 callersFunctionzero_init
(affine)
shap_e/models/nn/ops.py:64
↓ 2 callersMethod__init__
( self, *, max_dist: float, min_dist: float = 0.0, min_t_range: float
shap_e/models/volume.py:176
↓ 2 callersMethod__init__
( self, n_output: int, output_activation: str, # Positional encoding parameter
shap_e/models/stf/mlp.py:18
↓ 2 callersMethod__init__
( self, posemb_version: Optional[str], in_features: int, out_features: int, **kwargs )
shap_e/models/nn/encoding.py:44
↓ 2 callersMethod__init__
(self, npoint, radius, nsample, in_channel, mlp, group_all)
shap_e/models/nn/pointnet2_utils.py:213
↓ 2 callersMethod__init__
( self, *, device: torch.device, dtype: torch.dtype, param_shapes: Dic
shap_e/models/transmitter/pc_encoder.py:96
↓ 2 callersMethod__setitem__
(self, key, value)
shap_e/util/collections.py:35
↓ 2 callersFunction_deconstruct_tensor_props
( props: TensorProperties, )
shap_e/rendering/pytorch3d_util.py:114
↓ 2 callersMethod_embed_low_res
(self, x: torch.Tensor)
shap_e/models/generation/transformer.py:417
↓ 2 callersMethod_predict_xstart_from_eps
(self, x_t, t, eps)
shap_e/diffusion/gaussian_diffusion.py:400
↓ 2 callersMethod_reset
(self)
shap_e/models/transmitter/channels_encoder.py:243
↓ 2 callersFunctionapprox_standard_normal_cdf
A fast approximation of the cumulative distribution function of the standard normal.
shap_e/diffusion/gaussian_diffusion.py:1102
↓ 2 callersMethodcamera_rays
For every (x, y) coordinate in a rendered image, compute the ray of the corresponding pixel. :param coords: an [N x 2] integ
shap_e/rendering/view_data.py:21
↓ 2 callersFunctioncenter_crop
Center crops an image.
shap_e/util/image_util.py:11
↓ 2 callersFunctionchannel_encoding_channels
(version: Optional[str] = None)
shap_e/models/nn/encoding.py:37
↓ 2 callersFunctioncheck_hash
(path: str, expected_hash: str)
shap_e/models/download.py:85
↓ 2 callersMethodcombine
Combines the integration results of `self` over [t0, t1] and `cur` over [t1, t2] to produce a new set of results over [t0, t2] by
shap_e/models/nerf/ray.py:162
↓ 2 callersMethodcondition_score
Compute what the p_mean_variance output would have been, should the model's score function be conditioned by cond_fn. See co
shap_e/diffusion/gaussian_diffusion.py:435
↓ 2 callersFunctiondefault_cache_dir
()
shap_e/models/download.py:45
↓ 2 callersMethoddense_pose_cameras_to_tensor
Returns a tuple of (rays, z_directions) where - rays: [batch, num_views, height, width, 2, 3] tensor of camera information.
shap_e/models/transmitter/channels_encoder.py:855
↓ 2 callersMethoddepths_to_tensor
Returns a [batch x num_views x 1 x size x size] tensor in the range [-1, 1].
shap_e/models/transmitter/channels_encoder.py:750
↓ 2 callersMethodencode_multiview_pcl
:return: [batch_size, num_views, n_patches, width]
shap_e/models/transmitter/channels_encoder.py:696
↓ 2 callersFunctionfarthest_point_sample
Input: xyz: pointcloud data, [B, N, 3] npoint: number of samples Return: centroids: sampled pointcloud index, [B, npo
shap_e/models/nn/pointnet2_utils.py:95
↓ 2 callersMethodfarthest_point_sample
Sample a subset of the point cloud that is evenly distributed in space. First, a random point is selected. Then each successive poin
shap_e/rendering/point_cloud.py:145
↓ 2 callersFunctionfetch_file_cached
Download the file at the given URL into a local file and return the path. If cache_dir is specified, it will be used to download the files.
shap_e/models/download.py:49
↓ 2 callersFunctionflatten_param_shapes
(param_shapes: Dict[str, Tuple[int]])
shap_e/models/transmitter/params_proj.py:13
↓ 2 callersMethodforward
:param position: [batch_size x ... x 3] :param params: Meta parameters :param options: Optional hyperparameters
shap_e/models/stf/mlp.py:107
↓ 2 callersMethodforward
(self, x: torch.Tensor)
shap_e/models/nn/encoding.py:54
↓ 2 callersFunctionget_camera_from_batch
(batch: AttrDict)
shap_e/models/renderer.py:146
↓ 2 callersMethodget_scalings
(self, sigma)
shap_e/diffusion/k_diffusion.py:41
next →1–100 of 571, ranked by callers