MCPcopy Create free account

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

Functions571 in github.com/openai/shap-e

↓ 2 callersMethodimages_to_tensor
(self, xs: Iterable[Optional[ImageType]])
shap_e/models/generation/pretrained_clip.py:215
↓ 2 callersFunctionlatent_warp_from_config
(config: Dict[str, Any], device: torch.device)
shap_e/models/transmitter/bottleneck.py:118
↓ 2 callersFunctionload_or_create_multiview
( *, mesh_path: Optional[str], model_path: Optional[str], cache_dir: Optional[str], num_vi
shap_e/util/data_util.py:129
↓ 2 callersFunctionmap_indices_to_keys
(mapping: IndexMapping, data: torch.Tensor)
shap_e/models/nerstf/mlp.py:168
↓ 2 callersMethodnamed_meta_parameters
Returns an iterator over all the names and meta parameters
shap_e/models/nn/meta.py:143
↓ 2 callersMethodnext_t0
Given convex volume1 and volume2, where volume1 is contained in volume2, this function returns the t0 at which rays leave volume1 and
shap_e/models/volume.py:20
↓ 2 callersFunctionnormal_kl
Compute the KL divergence between two gaussians. Shapes are automatically broadcasted, so batches can be compared to scalars, among other
shap_e/diffusion/gaussian_diffusion.py:1074
↓ 2 callersFunctionnormalize
(vec: torch.Tensor)
shap_e/models/nn/camera.py:139
↓ 2 callersFunctionnormalize
(v: torch.Tensor)
shap_e/rendering/raycast/_utils.py:4
↓ 2 callersFunctionpan_camera
(time, axis="Z", camera_dist=2.0, elevation=0.1)
shap_e/rendering/blender/blender_script.py:143
↓ 2 callersFunctionparams_proj_from_config
( config: Dict[str, Any], device: torch.device, param_shapes: Dict[str, Tuple[int]], d_latent: int )
shap_e/models/transmitter/params_proj.py:178
↓ 2 callersMethodpartition
Partitions t0 and t1 into n_samples intervals. :param ts: [batch_size, *shape, n_samples, 1] :return: a tuple of (
shap_e/models/volume.py:39
↓ 2 callersFunctionquery_ball_point
Input: radius: local region radius nsample: max sample number in local region xyz: all points, [B, N, 3] new_xyz:
shap_e/models/nn/pointnet2_utils.py:122
↓ 2 callersMethodrandom_sample
Sample a random subset of this PointCloud. :param num_points: maximum number of points to sample. :param subsample_kwargs: a
shap_e/rendering/point_cloud.py:131
↓ 2 callersMethodregister_meta_buffer
Registers a trainable or nontrainable parameter as a meta buffer. This can be later retrieved by meta_state_dict
shap_e/models/nn/meta.py:108
↓ 2 callersMethodregister_meta_parameter
Registers a meta parameter so it is included in named_meta_parameters and meta_state_dict.
shap_e/models/nn/meta.py:116
↓ 2 callersFunctionrender_images
( image_size: int, meshes: Meshes, cameras: Any, lights: Any, sigma: float = DEFAULT_RENDE
shap_e/rendering/pytorch3d_util.py:33
↓ 2 callersFunctionrender_model
( model_path: str, output_path: str, num_images: int, backend: str = "BLENDER_EEVEE", ligh
shap_e/rendering/blender/render.py:18
↓ 2 callersMethodrender_views
Returns a backproppable rendering of a view :param batch: contains - height: Optional[int] - width: Optional
shap_e/models/renderer.py:25
↓ 2 callersFunctionrender_views_from_rays
( render_rays: Callable[[AttrDict, AttrDict, AttrDict], AttrDict], batch: AttrDict, params: Option
shap_e/models/renderer.py:172
↓ 2 callersFunctionrender_views_from_stf
:param batch: contains either ["poses", "camera"], or ["cameras"]. Can optionally contain any of ["height", "width", "query_batch_size"]
shap_e/models/stf/renderer.py:131
↓ 2 callersFunctionsample_and_group
Input: npoint: radius: nsample: xyz: input points position data, [B, N, 3] points: input points data, [B,
shap_e/models/nn/pointnet2_utils.py:145
↓ 2 callersFunctionsample_and_group_all
Input: xyz: input points position data, [B, N, 3] points: input points data, [B, N, D] Return: new_xyz: sampled point
shap_e/models/nn/pointnet2_utils.py:192
↓ 2 callersFunctionsample_pcl_fps
Run farthest-point sampling on a batch of point clouds. :param points: batch of shape [N x num_points]. :param data_ctx: subsample count
shap_e/models/transmitter/channels_encoder.py:916
↓ 2 callersFunctionset_camera
(direction, camera_dist=2.0)
shap_e/rendering/blender/blender_script.py:127
↓ 2 callersFunctionsetup_material_extraction_shaders
Change every material to emit texture colors (or alpha) rather than having an actual reflective color. Returns a function to undo the changes
shap_e/rendering/blender/blender_script.py:275
↓ 2 callersFunctionsetup_nodes
(output_path, capturing_material_alpha: bool = False, basic_lighting: bool = False)
shap_e/rendering/blender/blender_script.py:374
↓ 2 callersFunctionslice_fields
(fields: torch.Tensor, dim: int, start: int, end: int)
shap_e/models/stf/renderer.py:484
↓ 2 callersFunctionspherical_harmonics_basis
Calculate the spherical harmonics basis :param coords: [batch_size, *shape, 3] of unit norm :param sh_degree: Spherical harmonics degree
shap_e/models/nn/encoding.py:226
↓ 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
shap_e/models/nn/pointnet2_utils.py:49
↓ 2 callersMethodsubsample
(self, indices: np.ndarray, average_neighbors: bool = False)
shap_e/rendering/point_cloud.py:189
↓ 2 callersFunctionundo_fn
()
shap_e/rendering/blender/blender_script.py:335
↓ 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
shap_e/rendering/ply_util.py:9
↓ 1 callersMethod__init__
(self, model, timestep_map, original_num_steps)
shap_e/diffusion/gaussian_diffusion.py:1047
↓ 1 callersMethod__init__
:param outer_volume: is where distant objects are encoded.
shap_e/models/nerf/renderer.py:21
↓ 1 callersMethod__init__
( self, # Positional encoding parameters n_levels: int = 10, # MLP parameters
shap_e/models/nerf/model.py:84
↓ 1 callersMethod__init__
(self, hidden_size: int, pool_op: str, device: torch.device)
shap_e/models/generation/pooled_mlp.py:42
↓ 1 callersMethod__init__
( self, sdf_activation="tanh", density_activation="exp", channel_activation="s
shap_e/models/nerstf/mlp.py:46
↓ 1 callersFunction_blender_binary_path
()
shap_e/rendering/blender/render.py:134
↓ 1 callersFunction_combine_rgba
(out_dir: str)
shap_e/rendering/blender/render.py:119
↓ 1 callersFunction_convert_linear_to_srgb
(u: torch.Tensor)
shap_e/models/stf/renderer.py:462
↓ 1 callersFunction_convert_srgb_to_linear
(u: torch.Tensor)
shap_e/models/stf/renderer.py:458
↓ 1 callersFunction_create_flat_edge_indices
( flat_cube_indices: torch.Tensor, grid_size: Tuple[int, int, int] )
shap_e/rendering/mc.py:124
↓ 1 callersFunction_image_to_pil
(obj: Optional[ImageType])
shap_e/models/generation/pretrained_clip.py:262
↓ 1 callersFunction_lookup_table
(device: torch.device)
shap_e/rendering/mc.py:229
↓ 1 callersMethod_predict_xstart_from_xprev
(self, x_t, t, xprev)
shap_e/diffusion/gaussian_diffusion.py:407
↓ 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
shap_e/diffusion/gaussian_diffusion.py:901
↓ 1 callersFunction_render_with_pytorch3d
( options: AttrDict, texture_channels: Sequence[str], ambient_color: Union[float, Tuple[float]],
shap_e/models/stf/renderer.py:315
↓ 1 callersFunction_render_with_raycast
( options: AttrDict, texture_channels: Sequence[str], ambient_color: Union[float, Tuple[float]],
shap_e/models/stf/renderer.py:387
↓ 1 callersFunction_resize
(val_list: List[torch.Tensor])
shap_e/models/renderer.py:227
↓ 1 callersFunction_sh
()
shap_e/models/nn/encoding.py:256
↓ 1 callersMethod_shuffle
(self)
shap_e/models/transmitter/channels_encoder.py:247
↓ 1 callersMethod_static_multimodal_embed
Like forward(), but always runs all encoders to ensure that the forward graph looks the same on every rank.
shap_e/models/generation/pretrained_clip.py:120
↓ 1 callersFunctionappend_zero
(x)
shap_e/diffusion/k_diffusion.py:331
↓ 1 callersMethodapply_conv
(self, points: torch.Tensor, conv: nn.Module)
shap_e/models/nn/ops.py:403
↓ 1 callersFunctionblender_uniform_lights
Create a light that attempts to match the light used by the Blender renderer when run with `--light_mode basic`.
shap_e/rendering/pytorch3d_util.py:207
↓ 1 callersMethodbottleneck_to_channels
( self, vector: torch.Tensor, options: Optional[AttrDict] = None )
shap_e/models/transmitter/base.py:116
↓ 1 callersMethodbottleneck_to_channels
( self, vector: torch.Tensor, options: Optional[AttrDict] = None )
shap_e/models/transmitter/base.py:186
↓ 1 callersFunctionbuffered_writer
(raw_f: BinaryIO)
shap_e/util/io.py:28
↓ 1 callersMethodcached_model_kwargs
(self, batch_size: int, model_kwargs: Dict[str, Any])
shap_e/models/generation/transformer.py:262
↓ 1 callersMethodcamera
(self, index: int, width: int, height: int)
shap_e/rendering/blender/view_data.py:73
↓ 1 callersFunctioncamera_orientation
:param toward: [batch_size x 3] unit vector from camera position to the object :param up: Optional [batch_size x 3] specifying the physical u
shap_e/models/nn/camera.py:152
↓ 1 callersMethodcamera_rays
For every (x, y) coordinate in a rendered image, compute the ray of the corresponding pixel. :param coords: an [N x ... x 2]
shap_e/models/nn/camera.py:18
↓ 1 callersMethodcamera_rays
(self, coords: torch.Tensor)
shap_e/models/nn/camera.py:82
↓ 1 callersMethodcameras_to_tensor
Returns a [batch x num_views x 3*4+1] tensor of camera information.
shap_e/models/transmitter/multiview_encoder.py:177
↓ 1 callersMethodcameras_to_tensor
Returns a [batch x num_views x 3*4+1] tensor of camera information.
shap_e/models/transmitter/pc_encoder.py:402
↓ 1 callersMethodcameras_to_tensor
Returns a [batch x num_views x 3*4+1] tensor of camera information.
shap_e/models/transmitter/channels_encoder.py:829
↓ 1 callersFunctioncast_camera
( camera: ProjectiveCamera, mesh: TriMesh, ray_batch_size: Optional[int] = None, checkpoint: O
shap_e/rendering/raycast/cast.py:12
↓ 1 callersMethodcenter_crop
Creates a new camera with the same intrinsics and direction as this one, but with a center crop to a square of the smaller dimension.
shap_e/rendering/view_data.py:46
↓ 1 callersFunctionclear_scene
()
shap_e/rendering/blender/blender_script.py:29
↓ 1 callersMethodcollect
(cls, it: Iterable["RayCollisions"])
shap_e/rendering/raycast/types.py:38
↓ 1 callersMethodcombine
(self, other: "PointCloud")
shap_e/rendering/point_cloud.py:236
↓ 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
shap_e/diffusion/gaussian_diffusion.py:422
↓ 1 callersFunctionconvert_cameras_torch
( origins: torch.Tensor, xs: torch.Tensor, ys: torch.Tensor, zs: torch.Tensor, fov: float )
shap_e/rendering/pytorch3d_util.py:188
↓ 1 callersFunctionconvert_meshes
(raw_meshes: Sequence[TorchMesh], default_brightness=0.8)
shap_e/rendering/pytorch3d_util.py:144
↓ 1 callersFunctioncreate_camera
()
shap_e/rendering/blender/blender_script.py:119
↓ 1 callersFunctioncreate_camera_light
()
shap_e/rendering/blender/blender_script.py:189
↓ 1 callersFunctioncreate_default_materials
()
shap_e/rendering/blender/blender_script.py:249
↓ 1 callersFunctioncreate_pan_cameras
(size: int, device: torch.device)
shap_e/util/notebooks.py:16
↓ 1 callersFunctioncreate_random_lights
(count=4, distance=2.0, energy=1.5)
shap_e/rendering/blender/blender_script.py:183
↓ 1 callersFunctioncreate_uniform_light
(backend)
shap_e/rendering/blender/blender_script.py:194
↓ 1 callersFunctioncreate_vertex_color_shaders
()
shap_e/rendering/blender/blender_script.py:203
↓ 1 callersFunctioncross_entropy_sdf_loss
(fields: torch.Tensor)
shap_e/models/stf/renderer.py:466
↓ 1 callersMethodddim_sample
Sample x_{t-1} from the model using DDIM. Same usage as p_sample().
shap_e/diffusion/gaussian_diffusion.py:598
↓ 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
shap_e/diffusion/gaussian_diffusion.py:722
↓ 1 callersFunctiondelete_all_materials
()
shap_e/rendering/blender/blender_script.py:268
↓ 1 callersMethoddepth_directions
For every (x, y) coordinate in a rendered image, get the direction that corresponds to "depth" in an RGBD rendering. This ma
shap_e/rendering/view_data.py:31
↓ 1 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/multiview_encoder.py:152
↓ 1 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/pc_encoder.py:376
↓ 1 callersFunctiondiffusion_from_config
(config: Union[str, Dict[str, Any]])
shap_e/diffusion/gaussian_diffusion.py:14
↓ 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
shap_e/diffusion/gaussian_diffusion.py:1110
↓ 1 callersMethoddumpable
Casts into OrderedDict and removes internal attributes
shap_e/util/collections.py:75
↓ 1 callersMethodencode_dense_pose_views
:return: [batch_size, num_views, n_patches, width]
shap_e/models/transmitter/channels_encoder.py:669
↓ 1 callersMethodencode_input
(self, batch: AttrDict, options: Optional[AttrDict] = None)
shap_e/models/transmitter/channels_encoder.py:85
↓ 1 callersMethodencode_position
(self, query: Query)
shap_e/models/nerf/model.py:170
↓ 1 callersMethodencode_to_bottleneck
( self, batch: AttrDict, options: Optional[AttrDict] = None )
shap_e/models/transmitter/base.py:61
↓ 1 callersMethodencode_to_channels
Encode the batch into a per-data-point set of latents. :return: [batch_size, latent_ctx, latent_width]
shap_e/models/transmitter/base.py:105
↓ 1 callersMethodencode_to_vector
Encode the batch into a single latent vector.
shap_e/models/transmitter/base.py:70
↓ 1 callersMethodencode_views
:return: [batch_size, num_views, n_patches, width]
shap_e/models/transmitter/pc_encoder.py:323
↓ 1 callersMethodencode_views
:return: [batch_size, num_views, n_patches, width]
shap_e/models/transmitter/channels_encoder.py:638
← previousnext →101–200 of 571, ranked by callers