Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Stability-AI/stable-fast-3d
/ functions
Functions
288 in github.com/Stability-AI/stable-fast-3d
⨍
Functions
288
◇
Types & classes
75
↳
Endpoints
3
↓ 30 callers
Method
update
(b64_glb)
comfyui/visualization.js:18
↓ 27 callers
Function
orient2D
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:257
↓ 15 callers
Method
__init__
(self, config)
sf3d/models/tokenizers/dinov2.py:434
↓ 11 callers
Function
orient3D
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:242
↓ 9 callers
Method
grow
grow the AABB to include a point
texture_baker/texture_baker/csrc/baker.h:118
↓ 9 callers
Method
grow
uv_unwrapper/uv_unwrapper/csrc/bvh.h:45
↓ 8 callers
Function
find_class
(cls_string)
sf3d/models/utils.py:34
↓ 8 callers
Method
interpolate
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 callers
Function
intersectPlane
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:297
↓ 7 callers
Function
apply_matrix4
uv_unwrapper/uv_unwrapper/csrc/common.h:474
↓ 6 callers
Method
__init__
(self, dim_in: int, dim_out: int)
sf3d/models/transformers/backbone.py:20
↓ 5 callers
Function
calc_mean
uv_unwrapper/uv_unwrapper/csrc/common.h:154
↓ 5 callers
Function
convert_data
(data)
sf3d/models/utils.py:152
↓ 5 callers
Method
set
uv_unwrapper/uv_unwrapper/csrc/common.h:254
↓ 4 callers
Function
cross
uv_unwrapper/uv_unwrapper/csrc/common.h:201
↓ 4 callers
Method
from_pretrained
( cls, pretrained_model_name_or_path: str, config_name: str, weight_name: str )
sf3d/system.py:82
↓ 4 callers
Function
permuteTriLeft
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:275
↓ 4 callers
Function
permuteTriRight
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:282
↓ 3 callers
Method
area
Calculate the area of the AABB
texture_baker/texture_baker/csrc/baker.h:158
↓ 3 callers
Method
area
uv_unwrapper/uv_unwrapper/csrc/bvh.h:63
↓ 3 callers
Function
clamp
Utility function to clamp a value between a minimum and a maximum
texture_baker/texture_baker/csrc/baker.cpp:341
↓ 3 callers
Method
device
(self)
sf3d/system.py:103
↓ 3 callers
Function
dot
(x, y, dim=-1)
sf3d/models/utils.py:65
↓ 3 callers
Method
getNormal
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:228
↓ 3 callers
Function
get_activation
(name)
sf3d/models/network.py:101
↓ 3 callers
Function
get_device
()
sf3d/utils.py:13
↓ 3 callers
Function
intersectionTypeR1
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:465
↓ 3 callers
Function
intersectionTypeR2
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:497
↓ 3 callers
Method
invert
uv_unwrapper/uv_unwrapper/csrc/common.h:375
↓ 3 callers
Function
normalize
(x, dim=-1, eps=None)
sf3d/models/utils.py:73
↓ 3 callers
Function
normalize
uv_unwrapper/uv_unwrapper/csrc/common.h:230
↓ 3 callers
Method
overlaps
uv_unwrapper/uv_unwrapper/csrc/bvh.h:59
↓ 3 callers
Method
remove
()
comfyui/visualization.js:25
↓ 3 callers
Function
scale_tensor
( dat: Num[Tensor, "... D"], inp_scale: ValidScale, tgt_scale: ValidScale )
sf3d/models/utils.py:82
↓ 3 callers
Function
show_mask_img
(input_image: Image)
gradio_app.py:126
↓ 3 callers
Method
transpose_for_scores
(self, x: torch.Tensor)
sf3d/models/tokenizers/dinov2.py:241
↓ 2 callers
Method
_compute_vertex_normal
(self)
sf3d/models/mesh.py:76
↓ 2 callers
Method
_compute_vertex_tangent
(self)
sf3d/models/mesh.py:104
↓ 2 callers
Method
convert_and_resize
( self, image: Union[PIL.Image.Image, np.ndarray, torch.Tensor], size: int, )
sf3d/models/utils.py:173
↓ 2 callers
Function
create_bvhs
uv_unwrapper/uv_unwrapper/csrc/unwrapper.cpp:20
↓ 2 callers
Function
distance_to
uv_unwrapper/uv_unwrapper/csrc/common.h:221
↓ 2 callers
Function
dot
uv_unwrapper/uv_unwrapper/csrc/common.h:193
↓ 2 callers
Function
float32_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 callers
Method
generate_mesh
( self, batch, bake_resolution: int, remesh: Literal["none", "triangle", "quad
sf3d/system.py:317
↓ 2 callers
Function
get_1d_bounds
(arr)
sf3d/utils.py:67
↓ 2 callers
Function
handle_image
(image_path, idx)
run.py:92
↓ 2 callers
Function
init
(b64_glb)
comfyui/web/visualizer.js:48
↓ 2 callers
Method
invalidate
Initialize AABB to an invalid state
texture_baker/texture_baker/csrc/baker.h:152
↓ 2 callers
Method
invalidate
uv_unwrapper/uv_unwrapper/csrc/bvh.h:68
↓ 2 callers
Function
isTriDegenerated
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:235
↓ 2 callers
Function
linesIntersect2d
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:398
↓ 2 callers
Method
load
(self)
__init__.py:33
↓ 2 callers
Function
makeTriAVertexAlone
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:342
↓ 2 callers
Function
makeTriAVertexPositive
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:360
↓ 2 callers
Function
makeTriCounterClockwise
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:289
↓ 2 callers
Method
make_activation
(self, activation)
sf3d/models/image_estimator/clip_based_estimator.py:82
↓ 2 callers
Method
make_activation
(self, activation)
sf3d/models/global_estimator/multi_head_estimator.py:79
↓ 2 callers
Method
overlaps
Check if two AABBs overlap
texture_baker/texture_baker/csrc/baker.h:134
↓ 2 callers
Function
perform_intersection_check
uv_unwrapper/uv_unwrapper/csrc/unwrapper.cpp:46
↓ 2 callers
Method
prepare_image
(self, image)
sf3d/system.py:294
↓ 2 callers
Method
query_triplane
( self, positions: Float[Tensor, "*B N 3"], triplanes: Float[Tensor, "*B 3 Cp Hp Wp"],
sf3d/system.py:180
↓ 2 callers
Method
rasterize
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 callers
Function
resize_foreground
( image: Union[Image.Image, np.ndarray], ratio: float, out_size=None, )
sf3d/utils.py:80
↓ 2 callers
Method
run_image
( self, image: Union[Image.Image, List[Image.Image]], bake_resolution: int, re
sf3d/system.py:245
↓ 2 callers
Function
triangle_centroid
Create a triangle centroid
uv_unwrapper/uv_unwrapper/csrc/common.h:157
↓ 2 callers
Method
unwrap_uv
( self, island_padding: float = 0.02, )
sf3d/models/mesh.py:252
↓ 1 callers
Method
Intersect
uv_unwrapper/uv_unwrapper/csrc/bvh.cpp:329
↓ 1 callers
Method
_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 callers
Method
_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 callers
Method
_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 callers
Method
_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 callers
Method
_compute_edges
(self)
sf3d/models/mesh.py:277
↓ 1 callers
Method
_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 callers
Method
_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 callers
Method
_forward
(self, pos_nx3, sdf_n, tet_fx4)
sf3d/models/isosurface.py:144
↓ 1 callers
Method
_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 callers
Method
_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 callers
Method
_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 callers
Method
_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 callers
Method
_set_gradient_checkpointing
( self, module: Dinov2Encoder, value: bool = False )
sf3d/models/tokenizers/dinov2.py:655
↓ 1 callers
Method
add_extra
(self, k, v)
sf3d/models/mesh.py:45
↓ 1 callers
Function
barycentric_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 callers
Method
build
texture_baker/texture_baker/csrc/baker.cpp:227
↓ 1 callers
Method
calculate_node_cost
texture_baker/texture_baker/csrc/baker.h:173
↓ 1 callers
Method
calculate_node_cost
uv_unwrapper/uv_unwrapper/csrc/bvh.h:84
↓ 1 callers
Function
checkerboard
(squares: int, size: int, min_value: float = 0.5)
gradio_app.py:109
↓ 1 callers
Function
clipTriangle
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:416
↓ 1 callers
Function
computeLineIntersection
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:307
↓ 1 callers
Method
configure
(self, *args, **kwargs)
sf3d/models/utils.py:30
↓ 1 callers
Function
coplanarIntersect
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:546
↓ 1 callers
Function
create_batch
(input_image: Image)
gradio_app.py:82
↓ 1 callers
Function
create_intrinsic_from_fov_deg
(fov_deg: float, cond_height: int, cond_width: int)
sf3d/utils.py:25
↓ 1 callers
Function
crossIntersect
uv_unwrapper/uv_unwrapper/csrc/intersect.cpp:367
↓ 1 callers
Function
default_cond_c2w
(distance: float)
sf3d/utils.py:40
↓ 1 callers
Method
determinant
uv_unwrapper/uv_unwrapper/csrc/common.h:275
↓ 1 callers
Method
detokenize
(self, *args, **kwargs)
sf3d/models/tokenizers/image.py:98
↓ 1 callers
Function
dilate_fill
(img, mask, iterations=10)
sf3d/models/utils.py:96
↓ 1 callers
Function
drop_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 callers
Method
gelu
(self, gate: torch.Tensor)
sf3d/models/transformers/backbone.py:24
↓ 1 callers
Function
get_bbox_from_mask
(mask, thr=0.5)
sf3d/utils.py:72
next →
1–100 of 288, ranked by callers