MCPcopy Create free account

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

Functions254 in github.com/openai/point-e

↓ 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
point_e/diffusion/gaussian_diffusion.py:1006
↓ 9 callersMethod__init__
(self, *, device: torch.device, dtype: torch.dtype, width: int, init_scale: float)
point_e/models/transformer.py:52
↓ 8 callersFunctionmean_flat
Take the mean over all non-batch dimensions.
point_e/diffusion/gaussian_diffusion.py:1087
↓ 7 callersFunctionindex_points
Input: points: input points data, [B, N, C] idx: sample index data, [B, S] Return: new_points:, indexed points data,
point_e/evals/pointnet2_utils.py:73
↓ 7 callersFunctioninit_linear
(l, stddev)
point_e/models/transformer.py:17
↓ 6 callersMethodkeys
(self)
point_e/evals/npz_stream.py:83
↓ 5 callersMethod_forward_with_cond
( self, x: torch.Tensor, cond_as_token: List[Tuple[torch.Tensor, bool]] )
point_e/models/transformer.py:205
↓ 5 callersFunctionappend_dims
Appends dimensions to the end of a tensor until it has target_dims dimensions.
point_e/diffusion/k_diffusion.py:323
↓ 5 callersFunctiondenoiser
(x_t, sigma)
point_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 =
point_e/models/pretrained_clip.py:177
↓ 5 callersFunctiontimestep_embedding
Create sinusoidal timestep embeddings. :param timesteps: a 1-D Tensor of N indices, one per batch element. These may be
point_e/models/util.py:6
↓ 5 callersFunctionto_d
Converts a denoiser output to a Karras ODE derivative.
point_e/diffusion/k_diffusion.py:203
↓ 4 callersMethod_wrap_model
(self, model)
point_e/diffusion/gaussian_diffusion.py:988
↓ 4 callersFunctioncreate_light
(location, energy=1.0, angle=0.5 * math.pi / 180)
point_e/evals/scripts/blender_script.py:163
↓ 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
point_e/diffusion/gaussian_diffusion.py:257
↓ 4 callersMethodq_posterior_mean_variance
Compute the mean and variance of the diffusion posterior: q(x_{t-1} | x_t, x_0)
point_e/diffusion/gaussian_diffusion.py:233
↓ 3 callersMethod__init__
( self, *, device: torch.device, dtype: torch.dtype, n_data: int,
point_e/models/perceiver.py:112
↓ 3 callersFunction_dict_batch_size
(objs: Dict[str, np.ndarray])
point_e/evals/npz_stream.py:269
↓ 3 callersMethod_predict_eps_from_xstart
(self, x_t, t, pred_xstart)
point_e/diffusion/gaussian_diffusion.py:369
↓ 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
point_e/diffusion/gaussian_diffusion.py:725
↓ 3 callersFunctionclear_lights
()
point_e/evals/scripts/blender_script.py:40
↓ 3 callersMethoddenoise
(self, model, x_t, sigmas, **model_kwargs)
point_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.
point_e/models/pretrained_clip.py:159
↓ 3 callersMethodembed_text
Embed text prompts as an [N x D] tensor.
point_e/models/pretrained_clip.py:168
↓ 3 callersMethodfeatures_and_preds
(self, streamer: NpzStreamer)
point_e/evals/feature_extractor.py:84
↓ 3 callersFunctionint_coord_to_float
(int_coords: torch.Tensor)
point_e/util/pc_to_mesh.py:40
↓ 3 callersFunctionscene_bbox
(single_obj=None, ignore_matrix=False)
point_e/evals/scripts/blender_script.py:74
↓ 3 callersMethodunscale_out_dict
( self, out: Dict[str, Union[th.Tensor, Any]] )
point_e/diffusion/gaussian_diffusion.py:944
↓ 2 callersMethod__init__
(self, npoint, radius, nsample, in_channel, mlp, group_all)
point_e/evals/pointnet2_utils.py:199
↓ 2 callersMethod_embed_low_res
(self, x: torch.Tensor)
point_e/models/transformer.py:404
↓ 2 callersFunction_npz_paths_and_length
(glob_path: str)
point_e/evals/npz_stream.py:121
↓ 2 callersMethod_predict_xstart_from_eps
(self, x_t, t, eps)
point_e/diffusion/gaussian_diffusion.py:352
↓ 2 callersFunctionapprox_standard_normal_cdf
A fast approximation of the cumulative distribution function of the standard normal.
point_e/diffusion/gaussian_diffusion.py:1050
↓ 2 callersFunctioncheckpoint
Evaluate a function without caching intermediate activations, allowing for reduced memory at the expense of extra compute in the backward pas
point_e/models/checkpoint.py:10
↓ 2 callersFunctioncompute_statistics
(feats: np.ndarray)
point_e/evals/fid_is.py:67
↓ 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
point_e/diffusion/gaussian_diffusion.py:387
↓ 2 callersFunctiondefault_cache_dir
()
point_e/models/download.py:28
↓ 2 callersMethoddevice
Get the device that should be used for input tensors.
point_e/models/sdf.py:14
↓ 2 callersMethodencode_point_clouds
Encode a batch of point clouds to cache part of the SDF calculation done by forward(). :param point_clouds: a batch of [batc
point_e/models/sdf.py:28
↓ 2 callersFunctionfarthest_point_sample
Input: xyz: pointcloud data, [B, N, 3] npoint: number of samples Return: centroids: sampled pointcloud index, [B, npo
point_e/evals/pointnet2_utils.py:95
↓ 2 callersMethodget_scalings
(self, sigma)
point_e/diffusion/k_diffusion.py:41
↓ 2 callersFunctionget_torch_devices
()
point_e/evals/feature_extractor.py:14
↓ 2 callersMethodimages_to_tensor
(self, xs: Iterable[Optional[ImageType]])
point_e/models/pretrained_clip.py:215
↓ 2 callersMethodinfos_from_file
Extract the info of every array in an npz file.
point_e/evals/npz_stream.py:30
↓ 2 callersFunctionkarras_sample_progressive
( diffusion, model, shape, steps, clip_denoised=True, progress=False, model_kwargs
point_e/diffusion/k_diffusion.py:118
↓ 2 callersMethodload
(cls, path: str, arr_name: str)
point_e/evals/npz_stream.py:171
↓ 2 callersMethodload
Load the mesh from a .npz file.
point_e/util/mesh.py:29
↓ 2 callersMethodnearest_points
For each point in another set of points, compute the point in this pointcloud which is closest. :param points: an [N x 3] ar
point_e/util/point_cloud.py:148
↓ 2 callersFunctionnode_op
(op: str, *args, clamp=False)
point_e/evals/scripts/blender_script.py:300
↓ 2 callersFunctionnormal_kl
Compute the KL divergence between two gaussians. Shapes are automatically broadcasted, so batches can be compared to scalars, among other
point_e/diffusion/gaussian_diffusion.py:1022
↓ 2 callersMethodp_sample_loop_progressive
Generate samples from the model and yield intermediate samples from each timestep of diffusion. Arguments are the same as p_
point_e/diffusion/gaussian_diffusion.py:499
↓ 2 callersFunctionpan_camera
(time, axis="Z", camera_dist=2.0, elevation=-0.1)
point_e/evals/scripts/blender_script.py:139
↓ 2 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
point_e/diffusion/gaussian_diffusion.py:214
↓ 2 callersFunctionquery_ball_point
Input: radius: local region radius nsample: max sample number in local region xyz: all points, [B, N, 3] new_xyz:
point_e/evals/pointnet2_utils.py:122
↓ 2 callersFunctionscene_root_objects
()
point_e/evals/scripts/blender_script.py:68
↓ 2 callersFunctionset_camera
(direction, camera_dist=2.0)
point_e/evals/scripts/blender_script.py:123
↓ 2 callersFunctionsquare_distance
Calculate Euclid distance between each two points. src^T * dst = xn * xm + yn * ym + zn * zm; sum(src^2, dim=-1) = xn*xn + yn*yn + zn*zn
point_e/evals/pointnet2_utils.py:49
↓ 2 callersMethodsubsample
(self, indices: np.ndarray, average_neighbors: bool = False)
point_e/util/point_cloud.py:120
↓ 2 callersFunctionwrite_ply
Write a PLY file for a mesh or a point cloud. :param coords: an [N x 3] array of floating point coordinates. :param rgb: an [N x 3] arra
point_e/util/ply_util.py:9
↓ 1 callersMethod__init__
(self, model, timestep_map, original_num_steps)
point_e/diffusion/gaussian_diffusion.py:995
↓ 1 callersMethod__init__
(self)
point_e/evals/pointnet2_cls_ssg.py:95
↓ 1 callersFunction_image_to_pil
(obj: Optional[ImageType])
point_e/models/pretrained_clip.py:262
↓ 1 callersFunction_nearest_vertex_channels
(pc: PointCloud, verts: np.ndarray)
point_e/util/pc_to_mesh.py:94
↓ 1 callersMethod_predict_xstart_from_xprev
(self, x_t, t, xprev)
point_e/diffusion/gaussian_diffusion.py:359
↓ 1 callersMethod_prior_bpd
Get the prior KL term for the variational lower-bound, measured in bits-per-dim. This term can't be optimized, as it only de
point_e/diffusion/gaussian_diffusion.py:849
↓ 1 callersFunction_read_bytes
Copied from: https://github.com/numpy/numpy/blob/fb215c76967739268de71aa4bda55dd1b062bc2e/numpy/lib/format.py#L788-L886 Read from file-like
point_e/evals/npz_stream.py:230
↓ 1 callersMethod_static_multimodal_embed
Like forward(), but always runs all encoders to ensure that the forward graph looks the same on every rank.
point_e/models/pretrained_clip.py:120
↓ 1 callersMethod_uncond_guide_model
( self, model: Callable[..., torch.Tensor], scale: float )
point_e/diffusion/sampler.py:192
↓ 1 callersFunctionappend_zero
(x)
point_e/diffusion/k_diffusion.py:331
↓ 1 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 = [
point_e/diffusion/gaussian_diffusion.py:54
↓ 1 callersFunctionbuffered_writer
(raw_f: BinaryIO)
point_e/util/ply_util.py:62
↓ 1 callersMethodcached_model_kwargs
(self, batch_size: int, model_kwargs: Dict[str, Any])
point_e/models/transformer.py:251
↓ 1 callersFunctionclear_scene
()
point_e/evals/scripts/blender_script.py:35
↓ 1 callersFunctionclear_socket_input
(tree, socket)
point_e/evals/scripts/blender_script.py:274
↓ 1 callersFunctioncompute_inception_score
(preds: np.ndarray, split_size: int = 5000)
point_e/evals/fid_is.py:73
↓ 1 callersMethodcondition_mean
Compute the mean for the previous step, given a function cond_fn that computes the gradient of a conditional log probability with res
point_e/diffusion/gaussian_diffusion.py:374
↓ 1 callersFunctioncreate_camera
()
point_e/evals/scripts/blender_script.py:115
↓ 1 callersFunctioncreate_camera_light
()
point_e/evals/scripts/blender_script.py:185
↓ 1 callersFunctioncreate_random_lights
(count=4, distance=2.0, energy=1.5)
point_e/evals/scripts/blender_script.py:179
↓ 1 callersFunctioncreate_uniform_light
(backend)
point_e/evals/scripts/blender_script.py:190
↓ 1 callersFunctioncreate_vertex_color_shaders
()
point_e/evals/scripts/blender_script.py:199
↓ 1 callersMethodddim_sample
Sample x_{t-1} from the model using DDIM. Same usage as p_sample().
point_e/diffusion/gaussian_diffusion.py:550
↓ 1 callersMethodddim_sample_loop_progressive
Use DDIM to sample from the model and yield intermediate samples from each timestep of DDIM. Same usage as p_sample_loop_pro
point_e/diffusion/gaussian_diffusion.py:674
↓ 1 callersFunctiondiscretized_gaussian_log_likelihood
Compute the log-likelihood of a Gaussian distribution discretizing to a given image. :param x: the target images. It is assumed that this
point_e/diffusion/gaussian_diffusion.py:1058
↓ 1 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.
point_e/models/download.py:32
↓ 1 callersMethodfrechet_distance
Compute the Frechet distance between two sets of statistics.
point_e/evals/fid_is.py:21
↓ 1 callersFunctionget_ancestral_step
Calculates the noise level (sigma_down) to step down to and the amount of noise to add (sigma_up) when doing an ancestral sampling step.
point_e/diffusion/k_diffusion.py:208
↓ 1 callersFunctionget_beta_schedule
This is the deprecated API for creating beta schedules. See get_named_beta_schedule() for the new library of schedules.
point_e/diffusion/gaussian_diffusion.py:12
↓ 1 callersFunctionget_named_beta_schedule
Get a pre-defined beta schedule for the given name. The beta schedule library consists of beta schedules which remain similar in the lim
point_e/diffusion/gaussian_diffusion.py:26
↓ 1 callersFunctionget_sigmas_karras
Constructs the noise schedule of Karras et al. (2022).
point_e/diffusion/k_diffusion.py:194
↓ 1 callersMethodhas_vertex_colors
(self)
point_e/util/mesh.py:74
↓ 1 callersFunctionimport_model
(path)
point_e/evals/scripts/blender_script.py:48
↓ 1 callersFunctionload_checkpoint
( checkpoint_name: str, device: torch.device, progress: bool = True, cache_dir: Optional[str]
point_e/models/download.py:64
↓ 1 callersFunctionmain
()
point_e/evals/scripts/blender_script.py:501
↓ 1 callersFunctionmain
()
point_e/evals/scripts/evaluate_pfid.py:16
↓ 1 callersFunctionmain
()
point_e/evals/scripts/evaluate_pis.py:16
↓ 1 callersFunctionnode_clamp
(x, maximum=1.0)
point_e/evals/scripts/blender_script.py:312
↓ 1 callersFunctionnode_mul
(x, y, **kwargs)
point_e/evals/scripts/blender_script.py:315
↓ 1 callersFunctionnormalize_point_clouds
(pc: np.ndarray)
point_e/evals/feature_extractor.py:114
↓ 1 callersFunctionnormalize_scene
()
point_e/evals/scripts/blender_script.py:97
next →1–100 of 254, ranked by callers