SYMBOL INDEX (482 symbols across 44 files) FILE: api_server.py function build_logger (line 52) | def build_logger(logger_name, logger_filename): class StreamToLogger (line 95) | class StreamToLogger(object): method __init__ (line 100) | def __init__(self, logger, log_level=logging.INFO): method __getattr__ (line 106) | def __getattr__(self, attr): method write (line 109) | def write(self, buf): method flush (line 123) | def flush(self): function pretty_print_semaphore (line 129) | def pretty_print_semaphore(semaphore): function load_image_from_base64 (line 142) | def load_image_from_base64(image): class ModelWorker (line 146) | class ModelWorker: method __init__ (line 147) | def __init__(self, method get_queue_length (line 173) | def get_queue_length(self): method get_status (line 180) | def get_status(self): method generate (line 187) | def generate(self, uid, params): function generate (line 245) | async def generate(request: Request): function generate (line 278) | async def generate(request: Request): function status (line 288) | async def status(uid: str): FILE: blender_addon.py class Hunyuan3DProperties (line 34) | class Hunyuan3DProperties(bpy.types.PropertyGroup): class Hunyuan3DOperator (line 93) | class Hunyuan3DOperator(bpy.types.Operator): method modal (line 112) | def modal(self, context, event): method invoke (line 124) | def invoke(self, context, event): method generate_model (line 181) | def generate_model(self, context): class Hunyuan3DPanel (line 299) | class Hunyuan3DPanel(bpy.types.Panel): method draw (line 305) | def draw(self, context): function register (line 339) | def register(): function unregister (line 345) | def unregister(): FILE: examples/fast_shape_gen_with_flashvdm.py function run (line 28) | def run(): FILE: examples/faster_shape_gen_with_flashvdm_mini_turbo.py function run (line 30) | def run(): FILE: gradio_app.py function get_example_img_list (line 35) | def get_example_img_list(): function get_example_txt_list (line 40) | def get_example_txt_list(): function get_example_mv_list (line 48) | def get_example_mv_list(): function gen_save_folder (line 64) | def gen_save_folder(max_size=200): function export_mesh (line 85) | def export_mesh(mesh, save_folder, textured=False, type='glb'): function randomize_seed_fn (line 97) | def randomize_seed_fn(seed: int, randomize_seed: bool) -> int: function build_model_viewer_html (line 103) | def build_model_viewer_html(save_folder, height=660, width=790, textured... function _gen_shape (line 135) | def _gen_shape( function generation_all (line 242) | def generation_all( function shape_generation (line 307) | def shape_generation( function build_app (line 353) | def build_app(): FILE: hy3dgen/rembg.py class BackgroundRemover (line 19) | class BackgroundRemover(): method __init__ (line 20) | def __init__(self): method __call__ (line 23) | def __call__(self, image: Image.Image): FILE: hy3dgen/shapegen/models/autoencoders/attention_blocks.py class FourierEmbedder (line 37) | class FourierEmbedder(nn.Module): method __init__ (line 74) | def __init__(self, method get_dims (line 107) | def get_dims(self, input_dim): method forward (line 113) | def forward(self, x: torch.Tensor) -> torch.Tensor: class DropPath (line 134) | class DropPath(nn.Module): method __init__ (line 138) | def __init__(self, drop_prob: float = 0., scale_by_keep: bool = True): method forward (line 143) | def forward(self, x): method extra_repr (line 162) | def extra_repr(self): class MLP (line 166) | class MLP(nn.Module): method __init__ (line 167) | def __init__( method forward (line 181) | def forward(self, x): class QKVMultiheadCrossAttention (line 185) | class QKVMultiheadCrossAttention(nn.Module): method __init__ (line 186) | def __init__( method forward (line 203) | def forward(self, q, kv): class MultiheadCrossAttention (line 219) | class MultiheadCrossAttention(nn.Module): method __init__ (line 220) | def __init__( method forward (line 250) | def forward(self, x, data): class ResidualCrossAttentionBlock (line 264) | class ResidualCrossAttentionBlock(nn.Module): method __init__ (line 265) | def __init__( method forward (line 296) | def forward(self, x: torch.Tensor, data: torch.Tensor): class QKVMultiheadAttention (line 302) | class QKVMultiheadAttention(nn.Module): method __init__ (line 303) | def __init__( method forward (line 318) | def forward(self, qkv): class MultiheadAttention (line 332) | class MultiheadAttention(nn.Module): method __init__ (line 333) | def __init__( method forward (line 359) | def forward(self, x): class ResidualAttentionBlock (line 366) | class ResidualAttentionBlock(nn.Module): method __init__ (line 367) | def __init__( method forward (line 392) | def forward(self, x: torch.Tensor): class Transformer (line 398) | class Transformer(nn.Module): method __init__ (line 399) | def __init__( method forward (line 430) | def forward(self, x: torch.Tensor): class CrossAttentionDecoder (line 436) | class CrossAttentionDecoder(nn.Module): method __init__ (line 438) | def __init__( method set_cross_attention_processor (line 478) | def set_cross_attention_processor(self, processor): method set_default_cross_attention_processor (line 481) | def set_default_cross_attention_processor(self): method forward (line 484) | def forward(self, queries=None, query_embeddings=None, latents=None): function fps (line 497) | def fps( class PointCrossAttentionEncoder (line 511) | class PointCrossAttentionEncoder(nn.Module): method __init__ (line 513) | def __init__( method sample_points_and_latents (line 575) | def sample_points_and_latents(self, pc: torch.FloatTensor, feats: Opti... method forward (line 674) | def forward(self, pc, feats): FILE: hy3dgen/shapegen/models/autoencoders/attention_processors.py class CrossAttentionProcessor (line 29) | class CrossAttentionProcessor: method __call__ (line 30) | def __call__(self, attn, q, k, v): class FlashVDMCrossAttentionProcessor (line 35) | class FlashVDMCrossAttentionProcessor: method __init__ (line 36) | def __init__(self, topk=None): method __call__ (line 39) | def __call__(self, attn, q, k, v): method select_topkv (line 73) | def select_topkv(self, q_chunk, k, v, topk): class FlashVDMTopMCrossAttentionProcessor (line 84) | class FlashVDMTopMCrossAttentionProcessor(FlashVDMCrossAttentionProcessor): method select_topkv (line 85) | def select_topkv(self, q_chunk, k, v, topk): FILE: hy3dgen/shapegen/models/autoencoders/model.py class DiagonalGaussianDistribution (line 30) | class DiagonalGaussianDistribution(object): method __init__ (line 31) | def __init__(self, parameters: Union[torch.Tensor, List[torch.Tensor]]... method sample (line 48) | def sample(self): method kl (line 52) | def kl(self, other=None, dims=(1, 2, 3)): method nll (line 66) | def nll(self, sample, dims=(1, 2, 3)): method mode (line 74) | def mode(self): class VectsetVAE (line 78) | class VectsetVAE(nn.Module): method from_single_file (line 82) | def from_single_file( method from_pretrained (line 117) | def from_pretrained( method init_from_ckpt (line 143) | def init_from_ckpt(self, path, ignore_keys=()): method __init__ (line 158) | def __init__( method latents2mesh (line 171) | def latents2mesh(self, latents: torch.FloatTensor, **kwargs): method enable_flashvdm_decoder (line 178) | def enable_flashvdm_decoder( class ShapeVAE (line 198) | class ShapeVAE(VectsetVAE): method __init__ (line 199) | def __init__( method forward (line 279) | def forward(self, latents): method encode (line 284) | def encode(self, surface, sample_posterior=True): method decode (line 295) | def decode(self, latents): FILE: hy3dgen/shapegen/models/autoencoders/surface_extractors.py class Latent2MeshOutput (line 22) | class Latent2MeshOutput: method __init__ (line 24) | def __init__(self, mesh_v=None, mesh_f=None): function center_vertices (line 29) | def center_vertices(vertices): class SurfaceExtractor (line 37) | class SurfaceExtractor: method _compute_box_stat (line 38) | def _compute_box_stat(self, bounds: Union[Tuple[float], List[float], f... method run (line 47) | def run(self, *args, **kwargs): method __call__ (line 50) | def __call__(self, grid_logits, **kwargs): class MCSurfaceExtractor (line 67) | class MCSurfaceExtractor(SurfaceExtractor): method run (line 68) | def run(self, grid_logit, *, mc_level, bounds, octree_resolution, **kw... class DMCSurfaceExtractor (line 79) | class DMCSurfaceExtractor(SurfaceExtractor): method run (line 80) | def run(self, grid_logit, *, octree_resolution, **kwargs): FILE: hy3dgen/shapegen/models/autoencoders/volume_decoders.py function extract_near_surface_volume_fn (line 29) | def extract_near_surface_volume_fn(input_tensor: torch.Tensor, alpha: fl... function generate_dense_grid_points (line 122) | def generate_dense_grid_points( class VanillaVolumeDecoder (line 141) | class VanillaVolumeDecoder: method __call__ (line 143) | def __call__( class HierarchicalVolumeDecoding (line 185) | class HierarchicalVolumeDecoding: method __call__ (line 187) | def __call__( class FlashVDMVolumeDecoding (line 280) | class FlashVDMVolumeDecoding: method __init__ (line 281) | def __init__(self, topk_mode='mean'): method __call__ (line 291) | def __call__( FILE: hy3dgen/shapegen/models/conditioner.py function get_1d_sincos_pos_embed_from_grid (line 37) | def get_1d_sincos_pos_embed_from_grid(embed_dim, pos): class ImageEncoder (line 57) | class ImageEncoder(nn.Module): method __init__ (line 58) | def __init__( method forward (line 91) | def forward(self, image, mask=None, value_range=(-1, 1), **kwargs): method unconditional_embedding (line 106) | def unconditional_embedding(self, batch_size, **kwargs): class CLIPImageEncoder (line 120) | class CLIPImageEncoder(ImageEncoder): class DinoImageEncoder (line 127) | class DinoImageEncoder(ImageEncoder): class DinoImageEncoderMV (line 134) | class DinoImageEncoderMV(DinoImageEncoder): method __init__ (line 135) | def __init__( method forward (line 154) | def forward(self, image, mask=None, value_range=(-1, 1), view_idxs=None): method unconditional_embedding (line 190) | def unconditional_embedding(self, batch_size, view_idxs=None, **kwargs): function build_image_encoder (line 203) | def build_image_encoder(config): class DualImageEncoder (line 214) | class DualImageEncoder(nn.Module): method __init__ (line 215) | def __init__( method forward (line 224) | def forward(self, image, mask=None, **kwargs): method unconditional_embedding (line 231) | def unconditional_embedding(self, batch_size, **kwargs): class SingleImageEncoder (line 239) | class SingleImageEncoder(nn.Module): method __init__ (line 240) | def __init__( method forward (line 247) | def forward(self, image, mask=None, **kwargs): method unconditional_embedding (line 253) | def unconditional_embedding(self, batch_size, **kwargs): FILE: hy3dgen/shapegen/models/denoisers/hunyuan3ddit.py function attention (line 33) | def attention(q: Tensor, k: Tensor, v: Tensor, **kwargs) -> Tensor: function timestep_embedding (line 39) | def timestep_embedding(t: Tensor, dim, max_period=10000, time_factor: fl... class GELU (line 63) | class GELU(nn.Module): method __init__ (line 64) | def __init__(self, approximate='tanh'): method forward (line 68) | def forward(self, x: Tensor) -> Tensor: class MLPEmbedder (line 72) | class MLPEmbedder(nn.Module): method __init__ (line 73) | def __init__(self, in_dim: int, hidden_dim: int): method forward (line 79) | def forward(self, x: Tensor) -> Tensor: class RMSNorm (line 83) | class RMSNorm(torch.nn.Module): method __init__ (line 84) | def __init__(self, dim: int): method forward (line 88) | def forward(self, x: Tensor): class QKNorm (line 95) | class QKNorm(torch.nn.Module): method __init__ (line 96) | def __init__(self, dim: int): method forward (line 101) | def forward(self, q: Tensor, k: Tensor, v: Tensor) -> Tuple[Tensor, Te... class SelfAttention (line 107) | class SelfAttention(nn.Module): method __init__ (line 108) | def __init__( method forward (line 122) | def forward(self, x: Tensor, pe: Tensor) -> Tensor: class ModulationOut (line 132) | class ModulationOut: class Modulation (line 138) | class Modulation(nn.Module): method __init__ (line 139) | def __init__(self, dim: int, double: bool): method forward (line 145) | def forward(self, vec: Tensor) -> Tuple[ModulationOut, Optional[Modula... class DoubleStreamBlock (line 155) | class DoubleStreamBlock(nn.Module): method __init__ (line 156) | def __init__( method forward (line 189) | def forward(self, img: Tensor, txt: Tensor, vec: Tensor, pe: Tensor) -... class SingleStreamBlock (line 220) | class SingleStreamBlock(nn.Module): method __init__ (line 226) | def __init__( method forward (line 254) | def forward(self, x: Tensor, vec: Tensor, pe: Tensor) -> Tensor: class LastLayer (line 270) | class LastLayer(nn.Module): method __init__ (line 271) | def __init__(self, hidden_size: int, patch_size: int, out_channels: int): method forward (line 277) | def forward(self, x: Tensor, vec: Tensor) -> Tensor: class Hunyuan3DDiT (line 284) | class Hunyuan3DDiT(nn.Module): method __init__ (line 285) | def __init__( method forward (line 381) | def forward( FILE: hy3dgen/shapegen/models/denoisers/hunyuandit.py function modulate (line 26) | def modulate(x, shift, scale): function get_1d_sincos_pos_embed_from_grid (line 30) | def get_1d_sincos_pos_embed_from_grid(embed_dim, pos): class Timesteps (line 50) | class Timesteps(nn.Module): method __init__ (line 51) | def __init__(self, method forward (line 63) | def forward(self, timesteps): class TimestepEmbedder (line 79) | class TimestepEmbedder(nn.Module): method __init__ (line 84) | def __init__(self, hidden_size, frequency_embedding_size=256, cond_pro... method forward (line 100) | def forward(self, t, condition): class MLP (line 113) | class MLP(nn.Module): method __init__ (line 114) | def __init__(self, *, width: int): method forward (line 121) | def forward(self, x): class CrossAttention (line 125) | class CrossAttention(nn.Module): method __init__ (line 126) | def __init__( method forward (line 164) | def forward(self, x, y): class Attention (line 230) | class Attention(nn.Module): method __init__ (line 235) | def __init__( method forward (line 260) | def forward(self, x): class HunYuanDiTBlock (line 291) | class HunYuanDiTBlock(nn.Module): method __init__ (line 292) | def __init__( method forward (line 365) | def forward(self, x, c=None, text_states=None, skip_value=None): class AttentionPool (line 395) | class AttentionPool(nn.Module): method __init__ (line 396) | def __init__(self, spacial_dim: int, embed_dim: int, num_heads: int, o... method forward (line 405) | def forward(self, x, attention_mask=None): class FinalLayer (line 437) | class FinalLayer(nn.Module): method __init__ (line 442) | def __init__(self, final_hidden_size, out_channels): method forward (line 448) | def forward(self, x): class HunYuanDiTPlain (line 455) | class HunYuanDiTPlain(nn.Module): method __init__ (line 457) | def __init__( method forward (line 555) | def forward(self, x, t, contexts, **kwargs): FILE: hy3dgen/shapegen/models/denoisers/moe_layers.py class AddAuxiliaryLoss (line 9) | class AddAuxiliaryLoss(torch.autograd.Function): method forward (line 16) | def forward(ctx, x, loss): method backward (line 23) | def backward(ctx, grad_output): class MoEGate (line 30) | class MoEGate(nn.Module): method __init__ (line 31) | def __init__(self, embed_dim, num_experts=16, num_experts_per_tok=2, a... method reset_parameters (line 46) | def reset_parameters(self) -> None: method forward (line 50) | def forward(self, hidden_states): class MoEBlock (line 93) | class MoEBlock(nn.Module): method __init__ (line 94) | def __init__(self, dim, num_experts=8, moe_top_k=2, method initialize_weight (line 109) | def initialize_weight(self): method forward (line 112) | def forward(self, hidden_states): method moe_infer (line 133) | def moe_infer(self, x, flat_expert_indices, flat_expert_weights): FILE: hy3dgen/shapegen/pipelines.py function retrieve_timesteps (line 35) | def retrieve_timesteps( function export_to_trimesh (line 95) | def export_to_trimesh(mesh_output): function get_obj_from_str (line 112) | def get_obj_from_str(string, reload=False): function instantiate_from_config (line 120) | def instantiate_from_config(config, **kwargs): class Hunyuan3DDiTPipeline (line 135) | class Hunyuan3DDiTPipeline: method from_single_file (line 141) | def from_single_file( method from_pretrained (line 201) | def from_pretrained( method __init__ (line 234) | def __init__( method compile (line 253) | def compile(self): method enable_flashvdm (line 258) | def enable_flashvdm( method to (line 300) | def to(self, device=None, dtype=None): method _execution_device (line 313) | def _execution_device(self): method enable_model_cpu_offload (line 334) | def enable_model_cpu_offload(self, gpu_id: Optional[int] = None, devic... method maybe_free_model_hooks (line 404) | def maybe_free_model_hooks(self): method encode_cond (line 424) | def encode_cond(self, image, additional_cond_inputs, do_classifier_fre... method prepare_extra_step_kwargs (line 456) | def prepare_extra_step_kwargs(self, generator, eta): method prepare_latents (line 473) | def prepare_latents(self, batch_size, dtype, device, generator, latent... method prepare_image (line 490) | def prepare_image(self, image) -> dict: method get_guidance_scale_embedding (line 512) | def get_guidance_scale_embedding(self, w, embedding_dim=512, dtype=tor... method set_surface_extractor (line 540) | def set_surface_extractor(self, mc_algo): method __call__ (line 552) | def __call__( method _export (line 648) | def _export( class Hunyuan3DDiTFlowMatchingPipeline (line 680) | class Hunyuan3DDiTFlowMatchingPipeline(Hunyuan3DDiTPipeline): method __call__ (line 683) | def __call__( FILE: hy3dgen/shapegen/postprocessors.py function load_mesh (line 28) | def load_mesh(path): function reduce_face (line 37) | def reduce_face(mesh: pymeshlab.MeshSet, max_facenum: int = 200000): function remove_floater (line 54) | def remove_floater(mesh: pymeshlab.MeshSet): function pymeshlab2trimesh (line 62) | def pymeshlab2trimesh(mesh: pymeshlab.MeshSet): function trimesh2pymeshlab (line 76) | def trimesh2pymeshlab(mesh: trimesh.Trimesh): function export_mesh (line 91) | def export_mesh(input, output): function import_mesh (line 104) | def import_mesh(mesh: Union[pymeshlab.MeshSet, trimesh.Trimesh, Latent2M... class FaceReducer (line 118) | class FaceReducer: method __call__ (line 120) | def __call__( class FloaterRemover (line 131) | class FloaterRemover: method __call__ (line 133) | def __call__( class DegenerateFaceRemover (line 143) | class DegenerateFaceRemover: method __call__ (line 145) | def __call__( function mesh_normalize (line 160) | def mesh_normalize(mesh): class MeshSimplifier (line 179) | class MeshSimplifier: method __init__ (line 180) | def __init__(self, executable: str = None): method __call__ (line 187) | def __call__( FILE: hy3dgen/shapegen/preprocessors.py function array_to_tensor (line 22) | def array_to_tensor(np_array): class ImageProcessorV2 (line 30) | class ImageProcessorV2: method __init__ (line 31) | def __init__(self, size=512, border_ratio=None): method recenter (line 36) | def recenter(image, border_ratio: float = 0.2): method load_image (line 90) | def load_image(self, image, border_ratio=0.15, to_tensor=True): method __call__ (line 109) | def __call__(self, image, border_ratio=0.15, to_tensor=True, **kwargs): class MVImageProcessorV2 (line 120) | class MVImageProcessorV2(ImageProcessorV2): method __init__ (line 126) | def __init__(self, size=512, border_ratio=None): method __call__ (line 135) | def __call__(self, image_dict, border_ratio=0.15, to_tensor=True, **kw... FILE: hy3dgen/shapegen/schedulers.py class FlowMatchEulerDiscreteSchedulerOutput (line 43) | class FlowMatchEulerDiscreteSchedulerOutput(BaseOutput): class FlowMatchEulerDiscreteScheduler (line 56) | class FlowMatchEulerDiscreteScheduler(SchedulerMixin, ConfigMixin): method __init__ (line 79) | def __init__( method step_index (line 103) | def step_index(self): method begin_index (line 110) | def begin_index(self): method set_begin_index (line 117) | def set_begin_index(self, begin_index: int = 0): method scale_noise (line 127) | def scale_noise( method _sigma_to_t (line 175) | def _sigma_to_t(self, sigma): method time_shift (line 178) | def time_shift(self, mu: float, sigma: float, t: torch.Tensor): method set_timesteps (line 181) | def set_timesteps( method index_for_timestep (line 223) | def index_for_timestep(self, timestep, schedule_timesteps=None): method _init_step_index (line 237) | def _init_step_index(self, timestep): method step (line 245) | def step( method __len__ (line 320) | def __len__(self): class ConsistencyFlowMatchEulerDiscreteSchedulerOutput (line 325) | class ConsistencyFlowMatchEulerDiscreteSchedulerOutput(BaseOutput): class ConsistencyFlowMatchEulerDiscreteScheduler (line 330) | class ConsistencyFlowMatchEulerDiscreteScheduler(SchedulerMixin, ConfigM... method __init__ (line 335) | def __init__( method step_index (line 355) | def step_index(self): method begin_index (line 362) | def begin_index(self): method set_begin_index (line 369) | def set_begin_index(self, begin_index: int = 0): method _sigma_to_t (line 379) | def _sigma_to_t(self, sigma): method set_timesteps (line 382) | def set_timesteps( method index_for_timestep (line 414) | def index_for_timestep(self, timestep, schedule_timesteps=None): method _init_step_index (line 428) | def _init_step_index(self, timestep): method step (line 436) | def step( method __len__ (line 479) | def __len__(self): FILE: hy3dgen/shapegen/surface_loaders.py function normalize_mesh (line 7) | def normalize_mesh(mesh, scale=0.9999): function sample_pointcloud (line 18) | def sample_pointcloud(mesh, num=200000): function load_surface (line 26) | def load_surface(mesh, num_points=8192): function sharp_sample_pointcloud (line 40) | def sharp_sample_pointcloud(mesh, num=16384): function load_surface_sharpegde (line 74) | def load_surface_sharpegde(mesh, num_points=4096, num_sharp_points=4096,... class SurfaceLoader (line 119) | class SurfaceLoader: method __init__ (line 120) | def __init__(self, num_points=8192): method __call__ (line 123) | def __call__(self, mesh_or_mesh_path, num_points=None): class SharpEdgeSurfaceLoader (line 141) | class SharpEdgeSurfaceLoader: method __init__ (line 142) | def __init__(self, num_uniform_points=8192, num_sharp_points=8192, **k... method __call__ (line 147) | def __call__(self, mesh_or_mesh_path, num_uniform_points=None, num_sha... FILE: hy3dgen/shapegen/utils.py function get_logger (line 22) | def get_logger(name): class synchronize_timer (line 38) | class synchronize_timer: method __init__ (line 57) | def __init__(self, name=None): method __enter__ (line 60) | def __enter__(self): method __exit__ (line 68) | def __exit__(self, exc_type, exc_value, exc_tb): method __call__ (line 77) | def __call__(self, func): function smart_load_model (line 89) | def smart_load_model( FILE: hy3dgen/texgen/custom_rasterizer/custom_rasterizer/io_glb.py function get_buffer_data (line 26) | def get_buffer_data(gltf, buffer_view): function get_attribute_data (line 35) | def get_attribute_data(gltf, accessor_index): function get_image_data (line 62) | def get_image_data(gltf, image, folder): function convert_triangle_strip_to_triangles (line 82) | def convert_triangle_strip_to_triangles(indices): function convert_triangle_fan_to_triangles (line 93) | def convert_triangle_fan_to_triangles(indices): function get_node_transform (line 101) | def get_node_transform(node): function get_world_transform (line 117) | def get_world_transform(gltf, node_index, parents, world_transforms): function LoadGlb (line 134) | def LoadGlb(path): function RotatePrimitives (line 233) | def RotatePrimitives(primitives, transform): FILE: hy3dgen/texgen/custom_rasterizer/custom_rasterizer/io_obj.py function LoadObj (line 19) | def LoadObj(fn): function LoadObjWithTexture (line 37) | def LoadObjWithTexture(fn, tex_fn): FILE: hy3dgen/texgen/custom_rasterizer/custom_rasterizer/render.py function rasterize (line 19) | def rasterize(pos, tri, resolution, clamp_depth=torch.zeros(0), use_dept... function interpolate (line 26) | def interpolate(col, findices, barycentric, tri): FILE: hy3dgen/texgen/custom_rasterizer/lib/custom_rasterizer_kernel/grid_neighbor.cpp function pos2key (line 4) | inline int pos2key(float* p, int resolution) { function key2pos (line 11) | inline void key2pos(int key, int resolution, float* p) { function key2cornerpos (line 20) | inline void key2cornerpos(int key, int resolution, float* p) { type Grid (line 36) | struct Grid function pos_from_seq (line 50) | inline void pos_from_seq(Grid& grid, int seq, float* p) { function fetch_seq (line 55) | inline int fetch_seq(Grid& grid, int l, int i, int j, torch::Tensor pdat... function fetch_last_seq (line 64) | inline int fetch_last_seq(Grid& grid, int i, int j, torch::Tensor pdata) { function fetch_nearest_seq (line 78) | inline int fetch_nearest_seq(Grid& grid, int i, int j, int dim, float d,... function fetch_nearest_seq_layer (line 97) | inline int fetch_nearest_seq_layer(Grid& grid, int i, int j, int dim, fl... function FetchNeighbor (line 116) | void FetchNeighbor(Grid& grid, int seq, float* pos, int dim, int boundar... function DownsampleGrid (line 157) | void DownsampleGrid(Grid& src, Grid& tar) function NeighborGrid (line 192) | void NeighborGrid(Grid& grid, std::vector view_layer_posi... function PadGrid (line 264) | void PadGrid(Grid& src, Grid& tar, std::vector& view_laye... function build_hierarchy (line 311) | std::vector> build_hierarchy(std::vector> build_hierarchy_with_feat( FILE: hy3dgen/texgen/custom_rasterizer/lib/custom_rasterizer_kernel/rasterizer.cpp function rasterizeTriangleCPU (line 3) | void rasterizeTriangleCPU(int idx, float* vt0, float* vt1, float* vt2, i... function barycentricFromImgcoordCPU (line 41) | void barycentricFromImgcoordCPU(float* V, int* F, int* findices, INT64* ... function rasterizeImagecoordsKernelCPU (line 81) | void rasterizeImagecoordsKernelCPU(float* V, int* F, float* d, INT64* zb... function rasterize_image_cpu (line 94) | std::vector rasterize_image_cpu(torch::Tensor V, torch::T... function rasterize_image (line 125) | std::vector rasterize_image(torch::Tensor V, torch::Tenso... function PYBIND11_MODULE (line 135) | PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) { FILE: hy3dgen/texgen/custom_rasterizer/lib/custom_rasterizer_kernel/rasterizer.h function calculateSignedArea2 (line 12) | inline float calculateSignedArea2(float* a, float* b, float* c) { function calculateBarycentricCoordinate (line 16) | inline void calculateBarycentricCoordinate(float* a, float* b, float* c,... function isBarycentricCoordInBounds (line 37) | inline bool isBarycentricCoordInBounds(float* barycentricCoord) { FILE: hy3dgen/texgen/differentiable_renderer/camera_utils.py function transform_pos (line 21) | def transform_pos(mtx, pos, keepdim=False): function get_mv_matrix (line 37) | def get_mv_matrix(elev, azim, camera_distance, center=None): function get_orthographic_projection_matrix (line 74) | def get_orthographic_projection_matrix( function get_perspective_projection_matrix (line 100) | def get_perspective_projection_matrix(fovy, aspect_wh, near, far): FILE: hy3dgen/texgen/differentiable_renderer/mesh_processor.cpp function meshVerticeInpaint_smooth (line 12) | std::pair, function meshVerticeInpaint (line 144) | std::pair, py::array_t> meshVerticeInpaint(p... function PYBIND11_MODULE (line 155) | PYBIND11_MODULE(mesh_processor, m) { FILE: hy3dgen/texgen/differentiable_renderer/mesh_processor.py function meshVerticeInpaint_smooth (line 17) | def meshVerticeInpaint_smooth(texture, mask, vtx_pos, vtx_uv, pos_idx, u... function meshVerticeInpaint (line 80) | def meshVerticeInpaint(texture, mask, vtx_pos, vtx_uv, pos_idx, uv_idx, ... FILE: hy3dgen/texgen/differentiable_renderer/mesh_render.py function stride_from_shape (line 32) | def stride_from_shape(shape): function scatter_add_nd_with_count (line 39) | def scatter_add_nd_with_count(input, count, indices, values, weights=None): function linear_grid_put_2d (line 67) | def linear_grid_put_2d(H, W, coords, values, return_count=False): class MeshRender (line 120) | class MeshRender(): method __init__ (line 121) | def __init__( method raster_rasterize (line 165) | def raster_rasterize(self, pos, tri, resolution, ranges=None, grad_db=... method raster_interpolate (line 179) | def raster_interpolate(self, uv, rast_out, uv_idx, rast_db=None, diff_... method raster_texture (line 193) | def raster_texture(self, tex, uv, uv_da=None, mip_level_bias=None, mip... method raster_antialias (line 203) | def raster_antialias(self, color, rast, pos, tri, topology_hash=None, ... method load_mesh (line 213) | def load_mesh( method save_mesh (line 228) | def save_mesh(self): method set_mesh (line 233) | def set_mesh( method set_texture (line 263) | def set_texture(self, tex): method set_default_render_resolution (line 275) | def set_default_render_resolution(self, default_resolution): method set_default_texture_resolution (line 280) | def set_default_texture_resolution(self, texture_size): method get_mesh (line 285) | def get_mesh(self): method get_texture (line 298) | def get_texture(self): method to (line 301) | def to(self, device): method color_rgb_to_srgb (line 309) | def color_rgb_to_srgb(self, image): method _render (line 338) | def _render( method render (line 377) | def render( method render_normal (line 424) | def render_normal( method convert_normal_map (line 493) | def convert_normal_map(self, image): method get_pos_from_mvp (line 512) | def get_pos_from_mvp(self, elev, azim, camera_distance, center): method render_depth (line 525) | def render_depth( method render_position (line 566) | def render_position(self, elev, azim, camera_distance=None, center=None, method render_uvpos (line 600) | def render_uvpos(self, return_type='th'): method uv_feature_map (line 609) | def uv_feature_map(self, vert_feat, bg=None): method render_sketch_from_geometry (line 624) | def render_sketch_from_geometry(self, normal_image, depth_image): method render_sketch_from_depth (line 643) | def render_sketch_from_depth(self, depth_image): method back_project (line 653) | def back_project(self, image, elev, azim, method bake_texture (line 759) | def bake_texture(self, colors, elevs, azims, method fast_bake_texture (line 783) | def fast_bake_texture(self, textures, cos_maps): method uv_inpaint (line 800) | def uv_inpaint(self, texture, mask): FILE: hy3dgen/texgen/differentiable_renderer/mesh_utils.py function load_mesh (line 18) | def load_mesh(mesh): function save_mesh (line 30) | def save_mesh(mesh, texture_data): FILE: hy3dgen/texgen/differentiable_renderer/setup.py function get_platform_specific_args (line 20) | def get_platform_specific_args(): FILE: hy3dgen/texgen/hunyuanpaint/pipeline.py function guidance_scale_embedding (line 47) | def guidance_scale_embedding(w, embedding_dim=512, dtype=torch.float32): function append_dims (line 76) | def append_dims(x, target_dims): function scalings_for_boundary_conditions (line 85) | def scalings_for_boundary_conditions(timestep, sigma_data=0.5, timestep_... function get_predicted_original_sample (line 93) | def get_predicted_original_sample(model_output, timesteps, sample, predi... function get_predicted_noise (line 113) | def get_predicted_noise(model_output, timesteps, sample, prediction_type... function extract_into_tensor (line 131) | def extract_into_tensor(a, t, x_shape, N_gen): class DDIMSolver (line 139) | class DDIMSolver: method __init__ (line 140) | def __init__(self, alpha_cumprods, timesteps=1000, ddim_timesteps=50): method to (line 153) | def to(self, device): method ddim_step (line 159) | def ddim_step(self, pred_x0, pred_noise, timestep_index, N_gen): function update_ema (line 167) | def update_ema(target_params, source_params, rate=0.99): function to_rgb_image (line 180) | def to_rgb_image(maybe_rgba: Image.Image): class HunyuanPaintPipeline (line 193) | class HunyuanPaintPipeline(StableDiffusionPipeline): method __init__ (line 195) | def __init__( method set_turbo (line 227) | def set_turbo(self, is_turbo: bool): method encode_images (line 231) | def encode_images(self, images): method __call__ (line 244) | def __call__( method denoise (line 390) | def denoise( FILE: hy3dgen/texgen/hunyuanpaint/unet/modules.py function _chunked_feed_forward (line 29) | def _chunked_feed_forward(ff: nn.Module, hidden_states: torch.Tensor, ch... class Basic2p5DTransformerBlock (line 46) | class Basic2p5DTransformerBlock(torch.nn.Module): method __init__ (line 47) | def __init__(self, transformer: BasicTransformerBlock,layer_name,use_m... method _initialize_attn_weights (line 83) | def _initialize_attn_weights(self): method __getattr__ (line 98) | def __getattr__(self, name: str): method forward (line 104) | def forward( function compute_voxel_grid_mask (line 302) | def compute_voxel_grid_mask(position, grid_resolution=8): function compute_multi_resolution_mask (line 349) | def compute_multi_resolution_mask(position_maps, grid_resolutions=[32, 1... function compute_discrete_voxel_indice (line 359) | def compute_discrete_voxel_indice(position, grid_resolution=8, voxel_res... function compute_multi_resolution_discrete_voxel_indice (line 391) | def compute_multi_resolution_discrete_voxel_indice( class UNet2p5DConditionModel (line 404) | class UNet2p5DConditionModel(torch.nn.Module): method __init__ (line 405) | def __init__(self, unet: UNet2DConditionModel) -> None: method from_pretrained (line 423) | def from_pretrained(pretrained_model_name_or_path, **kwargs): method init_condition (line 436) | def init_condition(self): method init_camera_embedding (line 450) | def init_camera_embedding(self): method init_attention (line 458) | def init_attention(self, unet, use_ma=False, use_ra=False, is_turbo=Fa... method __getattr__ (line 492) | def __getattr__(self, name: str): method forward (line 498) | def forward( FILE: hy3dgen/texgen/pipelines.py class Hunyuan3DTexGenConfig (line 33) | class Hunyuan3DTexGenConfig: method __init__ (line 35) | def __init__(self, light_remover_ckpt_path, multiview_ckpt_path, subfo... class Hunyuan3DPaintPipeline (line 53) | class Hunyuan3DPaintPipeline: method from_pretrained (line 55) | def from_pretrained(cls, model_path, subfolder='hunyuan3d-paint-v2-0-t... method __init__ (line 89) | def __init__(self, config): method load_models (line 98) | def load_models(self): method enable_model_cpu_offload (line 106) | def enable_model_cpu_offload(self, gpu_id: Optional[int] = None, devic... method render_normal_multiview (line 110) | def render_normal_multiview(self, camera_elevs, camera_azims, use_abs_... method render_position_multiview (line 119) | def render_position_multiview(self, camera_elevs, camera_azims): method bake_from_multiview (line 128) | def bake_from_multiview(self, views, camera_elevs, method texture_inpaint (line 148) | def texture_inpaint(self, texture, mask): method recenter_image (line 155) | def recenter_image(self, image, border_ratio=0.2): method __call__ (line 190) | def __call__(self, mesh, image): FILE: hy3dgen/texgen/utils/alignImg4Tex_utils.py class Img2img_Control_Ip_adapter (line 21) | class Img2img_Control_Ip_adapter: method __init__ (line 22) | def __init__(self, device): method __call__ (line 35) | def __call__( class HesModel (line 71) | class HesModel: method __init__ (line 72) | def __init__(self, ): method __call__ (line 95) | def __call__(self, FILE: hy3dgen/texgen/utils/counter_utils.py class RunningStats (line 16) | class RunningStats(): method __init__ (line 17) | def __init__(self) -> None: method add_value (line 24) | def add_value(self, value): method get_count (line 35) | def get_count(self): method get_sum (line 38) | def get_sum(self): method get_mean (line 41) | def get_mean(self): method get_min (line 44) | def get_min(self): method get_max (line 47) | def get_max(self): FILE: hy3dgen/texgen/utils/dehighlight_utils.py class Light_Shadow_Remover (line 22) | class Light_Shadow_Remover(): method __init__ (line 23) | def __init__(self, config): method recorrect_rgb (line 38) | def recorrect_rgb(self, src_image, target_image, alpha_channel, scale=... method __call__ (line 69) | def __call__(self, image): FILE: hy3dgen/texgen/utils/imagesuper_utils.py class Image_Super_Net (line 18) | class Image_Super_Net(): method __init__ (line 19) | def __init__(self, config): method __call__ (line 26) | def __call__(self, image, prompt=''): FILE: hy3dgen/texgen/utils/multiview_utils.py class Multiview_Diffusion_Net (line 25) | class Multiview_Diffusion_Net(): method __init__ (line 26) | def __init__(self, config) -> None: method seed_everything (line 50) | def seed_everything(self, seed): method __call__ (line 56) | def __call__(self, input_images, control_images, camera_info): FILE: hy3dgen/texgen/utils/simplify_mesh_utils.py function remesh_mesh (line 18) | def remesh_mesh(mesh_path, remesh_path, method='trimesh'): function mesh_simplify_trimesh (line 25) | def mesh_simplify_trimesh(inputpath, outputpath): FILE: hy3dgen/texgen/utils/uv_warp_utils.py function mesh_uv_wrap (line 19) | def mesh_uv_wrap(mesh): FILE: hy3dgen/text2image.py function seed_everything (line 23) | def seed_everything(seed): class HunyuanDiTPipeline (line 30) | class HunyuanDiTPipeline: method __init__ (line 31) | def __init__( method compile (line 49) | def compile(self): method __call__ (line 67) | def __call__(self, prompt, seed=0):