MCPcopy Create free account

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

Functions571 in github.com/openai/shap-e

↓ 1 callersFunctionfind_materials
()
shap_e/rendering/blender/blender_script.py:258
↓ 1 callersMethodforward
(self, h, options: Optional[AttrDict] = None, log_prefix: str = "")
shap_e/models/nn/ops.py:251
↓ 1 callersMethodfov
(self)
shap_e/models/nn/camera.py:65
↓ 1 callersMethodfrom_rgbd
Construct a point cloud from the given view data. The data must have a depth channel. All other channels will be stored in t
shap_e/rendering/point_cloud.py:36
↓ 1 callersFunctiongelu
(x)
shap_e/models/nn/ops.py:15
↓ 1 callersFunctionget_alpha
:return: the alpha channel separated out as a grayscale image
shap_e/util/image_util.py:78
↓ 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.
shap_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.
shap_e/diffusion/gaussian_diffusion.py:45
↓ 1 callersMethodget_h_and_iterator
:return: a tuple of ( the initial output tokens of size [batch_size, data_ctx + latent_ctx, width], an iterator over
shap_e/models/transmitter/pc_encoder.py:162
↓ 1 callersMethodget_h_and_iterator
:return: a tuple of ( the initial output tokens of size [batch_size, data_ctx + latent_ctx, width], an iterator over
shap_e/models/transmitter/channels_encoder.py:180
↓ 1 callersFunctionget_image_coords
(width, height)
shap_e/models/nn/camera.py:202
↓ 1 callersMethodget_n_unrolls
(self)
shap_e/models/transmitter/pc_encoder.py:184
↓ 1 callersMethodget_n_unrolls
(self)
shap_e/models/transmitter/channels_encoder.py:208
↓ 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
shap_e/diffusion/gaussian_diffusion.py:59
↓ 1 callersMethodget_pcl_dataset
( self, batch: AttrDict, options: Optional[AttrDict[str, Any]] = None, inner_b
shap_e/models/transmitter/channels_encoder.py:504
↓ 1 callersFunctionget_sigmas_karras
Constructs the noise schedule of Karras et al. (2022).
shap_e/diffusion/k_diffusion.py:194
↓ 1 callersFunctionhash_file
(path: str)
shap_e/models/download.py:94
↓ 1 callersMethodimage_coords
:return: coords of shape (width * height, 2)
shap_e/models/nn/camera.py:68
↓ 1 callersMethodimage_coords
:return: ([self.height, self.width, 2]).reshape(self.height * self.width, 2) image coordinates
shap_e/rendering/view_data.py:15
↓ 1 callersFunctionimport_model
(path)
shap_e/rendering/blender/blender_script.py:42
↓ 1 callersFunctionindex_mapping_max
(mapping: IndexMapping)
shap_e/models/nerstf/mlp.py:172
↓ 1 callersFunctionindices_for_output_mode
Get output mappings for (h, h_directionless).
shap_e/models/nerstf/mlp.py:117
↓ 1 callersMethodintegrate_samples
Integrate the raw.channels along with other aux_losses and values to produce the final output dictionary containing rendered `channel
shap_e/models/nerf/ray.py:297
↓ 1 callersMethodintersect
:param origin: [batch_size, *shape, 3] :param direction: [batch_size, *shape, 3] :param t0_lower: Optional [batch_size, *shap
shap_e/models/volume.py:67
↓ 1 callersFunctionkarras_sample
(*args, **kwargs)
shap_e/diffusion/k_diffusion.py:111
↓ 1 callersFunctionkarras_sample_progressive
( diffusion, model, shape, steps, clip_denoised=True, progress=False, model_kwargs
shap_e/diffusion/k_diffusion.py:118
↓ 1 callersFunctionlatent_bottleneck_from_config
(config: Dict[str, Any], device: torch.device, d_latent: int)
shap_e/models/transmitter/bottleneck.py:106
↓ 1 callersFunctionleveliter
depth == 0 is root
shap_e/models/nn/meta.py:73
↓ 1 callersFunctionload_checkpoint
( checkpoint_name: str, device: torch.device, progress: bool = True, cache_dir: Optional[str]
shap_e/models/download.py:122
↓ 1 callersFunctionload_config
( config_name: str, progress: bool = False, cache_dir: Optional[str] = None, chunk_size: int =
shap_e/models/download.py:105
↓ 1 callersFunctionload_or_create_pc
( *, mesh_path: Optional[str], model_path: Optional[str], cache_dir: Optional[str], random
shap_e/util/data_util.py:85
↓ 1 callersFunctionmain
()
shap_e/rendering/blender/blender_script.py:638
↓ 1 callersMethodmap_tensors
(self, f: Callable[[torch.Tensor], torch.Tensor])
shap_e/models/query.py:24
↓ 1 callersFunctionmarching_cubes
For a signed distance field, produce a mesh using marching cubes. :param field: a 3D tensor of field values, where negative values correspon
shap_e/rendering/mc.py:11
↓ 1 callersFunctionmaybe_get_spherical_harmonics_basis
:param sh_degree: Spherical harmonics degree :param coords_shape: [*shape, 3] :param coords: optional coordinate tensor of coords_shape
shap_e/models/nerf/model.py:241
↓ 1 callersMethodmeta_state_dict
Returns an iterator over all the names and meta parameters/buffers. One difference between module.state_dict() is that this preserve
shap_e/models/nn/meta.py:181
↓ 1 callersFunctionmodel_from_config
(config: Union[str, Dict[str, Any]], device: torch.device)
shap_e/models/configs.py:38
↓ 1 callersFunctionmv_to_pc
(multiview: ViewData, random_sample_count: int, point_count: int)
shap_e/util/data_util.py:195
↓ 1 callersMethodnamed_nonmeta_parameters
(self, prefix="", recurse=True)
shap_e/models/nn/meta.py:162
↓ 1 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
shap_e/rendering/point_cloud.py:217
↓ 1 callersFunctionnode_abs
(x, **kwargs)
shap_e/rendering/blender/blender_script.py:403
↓ 1 callersFunctionnode_clamp
(x, maximum=1.0)
shap_e/rendering/blender/blender_script.py:394
↓ 1 callersFunctionnormalize_input_batch
(batch: AttrDict, *, pc_scale: float, color_scale: float)
shap_e/util/data_util.py:215
↓ 1 callersFunctionnormalize_scene
()
shap_e/rendering/blender/blender_script.py:91
↓ 1 callersMethodnormals
Returns an [N x 3] batch of normal vectors per triangle assuming the right-hand rule.
shap_e/rendering/raycast/types.py:63
↓ 1 callersMethodp_mean_variance
(self, model, *args, **kwargs)
shap_e/diffusion/gaussian_diffusion.py:1028
↓ 1 callersMethodp_sample
Sample x_{t-1} from the model at the given timestep. :param model: the model to sample from. :param x: the current tensor at
shap_e/diffusion/gaussian_diffusion.py:455
↓ 1 callersMethodp_sample_loop
Generate samples from the model. :param model: the model module. :param shape: the shape of the samples, (N, C, H, W).
shap_e/diffusion/gaussian_diffusion.py:499
↓ 1 callersMethodp_sample_loop_progressive
Generate samples from the model and yield intermediate samples from each timestep of diffusion. Arguments are the same as p_
shap_e/diffusion/gaussian_diffusion.py:547
↓ 1 callersFunctionplace_camera
(time, camera_pose_mode="random", camera_dist_min=2.0, camera_dist_max=2.0)
shap_e/rendering/blender/blender_script.py:155
↓ 1 callersFunctionpool
(op_name: str, x: torch.Tensor)
shap_e/models/generation/pooled_mlp.py:67
↓ 1 callersFunctionpreprocess
(data, channel)
shap_e/rendering/point_cloud.py:16
↓ 1 callersFunctionprocess_depth
(depth_img: np.ndarray, image_size: int)
shap_e/util/data_util.py:229
↓ 1 callersFunctionprocess_image
( img_or_img_arr: Union[Image.Image, np.ndarray], alpha_removal: str, image_size: int )
shap_e/util/data_util.py:235
↓ 1 callersFunctionproject_out
Removes the vec2 component from vec1
shap_e/models/nn/camera.py:143
↓ 1 callersFunctionprojective_camera_frame
Given the origin and the direction of a view, return a differentiable projective camera with the given parameters. TODO: We need to supp
shap_e/models/nn/camera.py:175
↓ 1 callersMethodq_mean_variance
Get the distribution q(x_t | x_0). :param x_start: the [N x C x ...] tensor of noiseless inputs. :param t: the number of dif
shap_e/diffusion/gaussian_diffusion.py:249
↓ 1 callersFunctionrandomize_camera
(camera_dist=2.0)
shap_e/rendering/blender/blender_script.py:138
↓ 1 callersMethodraw_depths_to_tensor
Returns a [batch x num_views x 1 x size x size] tensor
shap_e/models/transmitter/channels_encoder.py:804
↓ 1 callersFunctionremove_alpha
No op if the image doesn't have an alpha channel. :param: mode: Defaults to "random" but has an option to use a "black" or "white" b
shap_e/util/image_util.py:91
↓ 1 callersFunctionrender_diffuse_mesh
Return an [H x W x 4] RGBA tensor of the rendered image. The pixels are floating points, with alpha in the range [0, 1] and the other col
shap_e/rendering/raycast/render.py:16
↓ 1 callersFunctionrender_mesh
( mesh: TriMesh, output_path: str, num_images: int, backend: str = "BLENDER_EEVEE", **kwar
shap_e/rendering/blender/render.py:100
↓ 1 callersMethodrender_rays
:param batch: has - rays: [batch_size x ... x 2 x 3] specify the origin and direction of each ray. - radii (optional)
shap_e/models/renderer.py:63
↓ 1 callersMethodrender_rays
Perform volumetric rendering over the given volume. :param position: [batch_size, *shape, 3] :param direction: [batch_size,
shap_e/models/nerf/ray.py:214
↓ 1 callersFunctionrender_scene
(output_path, fast_mode: bool, extract_material: bool, basic_lighting: bool)
shap_e/rendering/blender/blender_script.py:469
↓ 1 callersMethodrender_views
( self, batch: AttrDict, params: Optional[Dict] = None, options: Optional[Dict
shap_e/models/renderer.py:76
↓ 1 callersMethodreset_parameters
(self)
shap_e/models/nn/ops.py:148
↓ 1 callersFunctionresize
:param: img: image in HWC order :return: currently written for downsampling
shap_e/util/image_util.py:31
↓ 1 callersMethodresize_image
Creates a new camera with the same intrinsics and direction as this one, but with resized image dimensions.
shap_e/models/nn/camera.py:29
↓ 1 callersMethodresize_image
Creates a new camera with the same intrinsics and direction as this one, but with resized image dimensions.
shap_e/rendering/view_data.py:53
↓ 1 callersMethodresolution
(self)
shap_e/models/nn/camera.py:62
↓ 1 callersFunctionround_up
(n: int, b: int)
shap_e/util/image_util.py:169
↓ 1 callersFunctionsafe_divide
(a, b, epsilon=1e-6)
shap_e/models/nn/utils.py:36
↓ 1 callersMethodsample
:param t0: start time has shape [batch_size, *shape, 1] :param t1: finish time has shape [batch_size, *shape, 1] :param n_sam
shap_e/models/nerf/ray.py:401
↓ 1 callersFunctionsample_fps
:param example: [1, n_points, 3 + n_channels] :return: [1, n_samples, 3 + n_channels]
shap_e/models/transmitter/channels_encoder.py:939
↓ 1 callersMethodsample_pcl_fps
(self, points: torch.Tensor)
shap_e/models/transmitter/pc_encoder.py:291
↓ 1 callersMethodsample_pcl_fps
(self, points: torch.Tensor)
shap_e/models/transmitter/channels_encoder.py:501
↓ 1 callersFunctionsample_pmf
Sample from the given discrete probability distribution with replacement. The i-th bin is assumed to have mass pmf[i]. :param pmf: [bat
shap_e/models/nn/utils.py:15
↓ 1 callersFunctionsave_rendering_dataset
( input_path: str, output_path: str, num_images: int, backend: str, light_mode: str, c
shap_e/rendering/blender/blender_script.py:571
↓ 1 callersMethodscale_channels
(self, x: th.Tensor)
shap_e/diffusion/gaussian_diffusion.py:974
↓ 1 callersMethodscale_scene
Creates a new camera with the same intrinsics and direction as this one, but with the scene rescaled by the given factor.
shap_e/rendering/view_data.py:60
↓ 1 callersFunctionscene_fov
()
shap_e/rendering/blender/blender_script.py:538
↓ 1 callersFunctionscene_meshes
()
shap_e/rendering/blender/blender_script.py:85
↓ 1 callersMethodselect_channels
(self, channel_names: List[str])
shap_e/rendering/point_cloud.py:213
↓ 1 callersFunctionsetup_material_extraction_shader_for_material
(mat, capturing_material_alpha: bool)
shap_e/rendering/blender/blender_script.py:291
↓ 1 callersMethodsigma_to_t
(self, sigma)
shap_e/diffusion/k_diffusion.py:89
↓ 1 callersFunctionsiren_init
(affine, coeff=1.0, init_scale: float = 1.0)
shap_e/models/nn/ops.py:78
↓ 1 callersFunctionspace_timesteps
Create a list of timesteps to use from an original diffusion process, given the number of timesteps we want to take from equally-sized portio
shap_e/diffusion/gaussian_diffusion.py:122
↓ 1 callersFunctionstd_init
(affine, init_scale: float = 1.0)
shap_e/models/nn/ops.py:90
↓ 1 callersFunctionuncond_guide_model
( model: Callable[..., torch.Tensor], scale: float )
shap_e/diffusion/sample.py:15
↓ 1 callersMethodunscale_channels
(self, x: th.Tensor)
shap_e/diffusion/gaussian_diffusion.py:985
↓ 1 callersMethodview_alphas_to_tensor
Returns a [batch x num_views x 1 x size x size] tensor in the range [0, 1].
shap_e/models/transmitter/channels_encoder.py:776
↓ 1 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/multiview_encoder.py:131
↓ 1 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/pc_encoder.py:354
↓ 1 callersFunctionvolume_query_points
( volume: Volume, grid_size: int, )
shap_e/models/stf/renderer.py:495
↓ 1 callersMethodwarp
(self, x: torch.Tensor, options: Optional[AttrDict] = None)
shap_e/models/transmitter/bottleneck.py:29
↓ 1 callersFunctionwrite_camera_metadata
(path)
shap_e/rendering/blender/blender_script.py:550
↓ 1 callersMethodwrite_ply
(self, raw_f: BinaryIO)
shap_e/rendering/mesh.py:78
FunctionConv
(n_dim, d_in, d_out, kernel, stride=1, padding=0, dilation=1, **kwargs)
shap_e/models/nn/ops.py:191
Method__call__
(self, x, ts, **kwargs)
shap_e/diffusion/gaussian_diffusion.py:1052
← previousnext →201–300 of 571, ranked by callers