MCPcopy Create free account

hub / github.com/Stability-AI/stable-fast-3d / functions

Functions288 in github.com/Stability-AI/stable-fast-3d

↓ 30 callersMethodupdate
(b64_glb)
comfyui/visualization.js:18
↓ 27 callersFunctionorient2D
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:257
↓ 15 callersMethod__init__
(self, config)
sf3d/models/tokenizers/dinov2.py:434
↓ 11 callersFunctionorient3D
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:242
↓ 9 callersMethodgrow
grow the AABB to include a point
texture_baker/texture_baker/csrc/baker.h:118
↓ 9 callersMethodgrow
uv_unwrapper/uv_unwrapper/csrc/bvh.h:45
↓ 8 callersFunctionfind_class
(cls_string)
sf3d/models/utils.py:34
↓ 8 callersMethodinterpolate
Interpolate the attributes using the rasterized map Args: attr (Tensor, num_vertices 3, float): Attributes of the mesh
texture_baker/texture_baker/baker.py:44
↓ 8 callersFunctionintersectPlane
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:297
↓ 7 callersFunctionapply_matrix4
uv_unwrapper/uv_unwrapper/csrc/common.h:474
↓ 6 callersMethod__init__
(self, dim_in: int, dim_out: int)
sf3d/models/transformers/backbone.py:20
↓ 5 callersFunctioncalc_mean
uv_unwrapper/uv_unwrapper/csrc/common.h:154
↓ 5 callersFunctionconvert_data
(data)
sf3d/models/utils.py:152
↓ 5 callersMethodset
uv_unwrapper/uv_unwrapper/csrc/common.h:254
↓ 4 callersFunctioncross
uv_unwrapper/uv_unwrapper/csrc/common.h:201
↓ 4 callersMethodfrom_pretrained
( cls, pretrained_model_name_or_path: str, config_name: str, weight_name: str )
sf3d/system.py:82
↓ 4 callersFunctionpermuteTriLeft
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:275
↓ 4 callersFunctionpermuteTriRight
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:282
↓ 3 callersMethodarea
Calculate the area of the AABB
texture_baker/texture_baker/csrc/baker.h:158
↓ 3 callersMethodarea
uv_unwrapper/uv_unwrapper/csrc/bvh.h:63
↓ 3 callersFunctionclamp
Utility function to clamp a value between a minimum and a maximum
texture_baker/texture_baker/csrc/baker.cpp:341
↓ 3 callersMethoddevice
(self)
sf3d/system.py:103
↓ 3 callersFunctiondot
(x, y, dim=-1)
sf3d/models/utils.py:65
↓ 3 callersMethodgetNormal
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:228
↓ 3 callersFunctionget_activation
(name)
sf3d/models/network.py:101
↓ 3 callersFunctionget_device
()
sf3d/utils.py:13
↓ 3 callersFunctionintersectionTypeR1
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:465
↓ 3 callersFunctionintersectionTypeR2
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:497
↓ 3 callersMethodinvert
uv_unwrapper/uv_unwrapper/csrc/common.h:375
↓ 3 callersFunctionnormalize
(x, dim=-1, eps=None)
sf3d/models/utils.py:73
↓ 3 callersFunctionnormalize
uv_unwrapper/uv_unwrapper/csrc/common.h:230
↓ 3 callersMethodoverlaps
uv_unwrapper/uv_unwrapper/csrc/bvh.h:59
↓ 3 callersMethodremove
()
comfyui/visualization.js:25
↓ 3 callersFunctionscale_tensor
( dat: Num[Tensor, "... D"], inp_scale: ValidScale, tgt_scale: ValidScale )
sf3d/models/utils.py:82
↓ 3 callersFunctionshow_mask_img
(input_image: Image)
gradio_app.py:126
↓ 3 callersMethodtranspose_for_scores
(self, x: torch.Tensor)
sf3d/models/tokenizers/dinov2.py:241
↓ 2 callersMethod_compute_vertex_normal
(self)
sf3d/models/mesh.py:76
↓ 2 callersMethod_compute_vertex_tangent
(self)
sf3d/models/mesh.py:104
↓ 2 callersMethodconvert_and_resize
( self, image: Union[PIL.Image.Image, np.ndarray, torch.Tensor], size: int, )
sf3d/models/utils.py:173
↓ 2 callersFunctioncreate_bvhs
uv_unwrapper/uv_unwrapper/csrc/unwrapper.cpp:20
↓ 2 callersFunctiondistance_to
uv_unwrapper/uv_unwrapper/csrc/common.h:221
↓ 2 callersFunctiondot
uv_unwrapper/uv_unwrapper/csrc/common.h:193
↓ 2 callersFunctionfloat32_to_uint8_np
( x: Float[np.ndarray, "*B H W C"], dither: bool = True, dither_mask: Optional[Float[np.ndarray, "
sf3d/models/utils.py:136
↓ 2 callersMethodgenerate_mesh
( self, batch, bake_resolution: int, remesh: Literal["none", "triangle", "quad
sf3d/system.py:317
↓ 2 callersFunctionget_1d_bounds
(arr)
sf3d/utils.py:67
↓ 2 callersFunctionhandle_image
(image_path, idx)
run.py:92
↓ 2 callersFunctioninit
(b64_glb)
comfyui/web/visualizer.js:48
↓ 2 callersMethodinvalidate
Initialize AABB to an invalid state
texture_baker/texture_baker/csrc/baker.h:152
↓ 2 callersMethodinvalidate
uv_unwrapper/uv_unwrapper/csrc/bvh.h:68
↓ 2 callersFunctionisTriDegenerated
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:235
↓ 2 callersFunctionlinesIntersect2d
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:398
↓ 2 callersMethodload
(self)
__init__.py:33
↓ 2 callersFunctionmakeTriAVertexAlone
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:342
↓ 2 callersFunctionmakeTriAVertexPositive
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:360
↓ 2 callersFunctionmakeTriCounterClockwise
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:289
↓ 2 callersMethodmake_activation
(self, activation)
sf3d/models/image_estimator/clip_based_estimator.py:82
↓ 2 callersMethodmake_activation
(self, activation)
sf3d/models/global_estimator/multi_head_estimator.py:79
↓ 2 callersMethodoverlaps
Check if two AABBs overlap
texture_baker/texture_baker/csrc/baker.h:134
↓ 2 callersFunctionperform_intersection_check
uv_unwrapper/uv_unwrapper/csrc/unwrapper.cpp:46
↓ 2 callersMethodprepare_image
(self, image)
sf3d/system.py:294
↓ 2 callersMethodquery_triplane
( self, positions: Float[Tensor, "*B N 3"], triplanes: Float[Tensor, "*B 3 Cp Hp Wp"],
sf3d/system.py:180
↓ 2 callersMethodrasterize
Rasterize the UV coordinates to a barycentric coordinates & Triangle idxs texture map Args: uv (Tensor, num_vert
texture_baker/texture_baker/baker.py:10
↓ 2 callersFunctionresize_foreground
( image: Union[Image.Image, np.ndarray], ratio: float, out_size=None, )
sf3d/utils.py:80
↓ 2 callersMethodrun_image
( self, image: Union[Image.Image, List[Image.Image]], bake_resolution: int, re
sf3d/system.py:245
↓ 2 callersFunctiontriangle_centroid
Create a triangle centroid
uv_unwrapper/uv_unwrapper/csrc/common.h:157
↓ 2 callersMethodunwrap_uv
( self, island_padding: float = 0.02, )
sf3d/models/mesh.py:252
↓ 1 callersMethodIntersect
uv_unwrapper/uv_unwrapper/csrc/bvh.cpp:329
↓ 1 callersMethod_align_mesh_with_main_axis
Align the mesh with the main axis Args: vertex_positions (Float[Tensor, "Nv 3"]): Vertex positions vertex_no
uv_unwrapper/uv_unwrapper/unwrap.py:537
↓ 1 callersMethod_assign_faces_uv_to_atlas_index
Assigns the face UV to the atlas index Args: vertex_positions (Float[Tensor, "Nv 3"]): Vertex positions tria
uv_unwrapper/uv_unwrapper/unwrap.py:123
↓ 1 callersMethod_box_assign_vertex_to_cube_face
Assigns each vertex to a cube face based on the face normal Args: vertex_positions (Tensor, Nv 3, float): Vertex positio
uv_unwrapper/uv_unwrapper/unwrap.py:14
↓ 1 callersMethod_calculate_tangents
Calculate the tangents for each triangle Args: vertex_positions (Float[Tensor, "Nv 3"]): Vertex positions ve
uv_unwrapper/uv_unwrapper/unwrap.py:211
↓ 1 callersMethod_compute_edges
(self)
sf3d/models/mesh.py:277
↓ 1 callersMethod_distribute_individual_uvs_in_atlas
Distribute the individual UVs in the atlas Args: face_uv (Float[Tensor, "Nf 3 2"]): Face UV coordinates assi
uv_unwrapper/uv_unwrapper/unwrap.py:477
↓ 1 callersMethod_find_slice_offset_and_scale
Find the slice offset and scale Args: index (Integer[Tensor, "Nf"]): Atlas index Returns: Float[Ten
uv_unwrapper/uv_unwrapper/unwrap.py:149
↓ 1 callersMethod_forward
(self, pos_nx3, sdf_n, tet_fx4)
sf3d/models/isosurface.py:144
↓ 1 callersMethod_get_unique_face_uv
Get the unique face UV Args: uv (Float[Tensor, "Nf 3 2"]): UV coordinates Returns: Float[Tensor, "U
uv_unwrapper/uv_unwrapper/unwrap.py:517
↓ 1 callersMethod_handle_remaining_uvs
Handle the remaining UVs (The ones that are not slices) Args: uv (Float[Tensor, "Nf 3 2"]): UV coordinates i
uv_unwrapper/uv_unwrapper/unwrap.py:398
↓ 1 callersMethod_handle_slice_uvs
Handle the slice UVs Args: uv (Float[Tensor, "Nf 3 2"]): UV coordinates index (Integer[Tensor, "Nf"]): Atlas
uv_unwrapper/uv_unwrapper/unwrap.py:356
↓ 1 callersMethod_rotate_uv_slices_consistent_space
Rotate the UV slices so they are in a consistent space Args: vertex_positions (Float[Tensor, "Nv 3"]): Vertex positions
uv_unwrapper/uv_unwrapper/unwrap.py:279
↓ 1 callersMethod_set_gradient_checkpointing
( self, module: Dinov2Encoder, value: bool = False )
sf3d/models/tokenizers/dinov2.py:655
↓ 1 callersMethodadd_extra
(self, k, v)
sf3d/models/mesh.py:45
↓ 1 callersFunctionbarycentric_coordinates
Function to check if a point (xy) is inside a triangle defined by vertices v1, v2, v3
texture_baker/texture_baker/csrc/baker.cpp:347
↓ 1 callersMethodbuild
texture_baker/texture_baker/csrc/baker.cpp:227
↓ 1 callersMethodcalculate_node_cost
texture_baker/texture_baker/csrc/baker.h:173
↓ 1 callersMethodcalculate_node_cost
uv_unwrapper/uv_unwrapper/csrc/bvh.h:84
↓ 1 callersFunctioncheckerboard
(squares: int, size: int, min_value: float = 0.5)
gradio_app.py:109
↓ 1 callersFunctionclipTriangle
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:416
↓ 1 callersFunctioncomputeLineIntersection
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:307
↓ 1 callersMethodconfigure
(self, *args, **kwargs)
sf3d/models/utils.py:30
↓ 1 callersFunctioncoplanarIntersect
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:546
↓ 1 callersFunctioncreate_batch
(input_image: Image)
gradio_app.py:82
↓ 1 callersFunctioncreate_intrinsic_from_fov_deg
(fov_deg: float, cond_height: int, cond_width: int)
sf3d/utils.py:25
↓ 1 callersFunctioncrossIntersect
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:367
↓ 1 callersFunctiondefault_cond_c2w
(distance: float)
sf3d/utils.py:40
↓ 1 callersMethoddeterminant
uv_unwrapper/uv_unwrapper/csrc/common.h:275
↓ 1 callersMethoddetokenize
(self, *args, **kwargs)
sf3d/models/tokenizers/image.py:98
↓ 1 callersFunctiondilate_fill
(img, mask, iterations=10)
sf3d/models/utils.py:96
↓ 1 callersFunctiondrop_path
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks). Comment by Ross Wightman: This is the same as the D
sf3d/models/tokenizers/dinov2.py:392
↓ 1 callersMethodgelu
(self, gate: torch.Tensor)
sf3d/models/transformers/backbone.py:24
↓ 1 callersFunctionget_bbox_from_mask
(mask, thr=0.5)
sf3d/utils.py:72
next →1–100 of 288, ranked by callers