Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VAST-AI-Research/MIDI-3D
/ functions
Functions
380 in github.com/VAST-AI-Research/MIDI-3D
⨍
Functions
380
◇
Types & classes
47
↳
Endpoints
1
Method
on_predict_batch_end
(self, outputs, batch, batch_idx)
midi/systems/base.py:239
Method
on_predict_batch_start
(self, batch, batch_idx, dataloader_idx=0)
midi/systems/base.py:206
Method
on_predict_end
(self)
midi/systems/base.py:177
Method
on_predict_epoch_end
(self)
midi/systems/base.py:174
Method
on_predict_start
(self, trainer, pl_module)
midi/utils/callbacks.py:157
Method
on_predict_start
(self)
midi/systems/base.py:168
Method
on_test_batch_end
(self, outputs, batch, batch_idx)
midi/systems/base.py:229
Method
on_test_batch_start
(self, batch, batch_idx, dataloader_idx=0)
midi/systems/base.py:200
Method
on_test_end
(self)
midi/systems/system_midi.py:403
Method
on_test_end
(self)
midi/systems/base.py:164
Method
on_test_epoch_end
(self)
midi/systems/base.py:161
Method
on_test_start
(self, trainer, pl_module)
midi/utils/callbacks.py:153
Method
on_train_batch_end
(self, trainer, pl_module, *args, **kwargs)
midi/utils/callbacks.py:143
Method
on_train_batch_end
(self, outputs, batch, batch_idx)
midi/systems/system_midi.py:149
Method
on_train_batch_end
(self, outputs, batch, batch_idx)
midi/systems/base.py:212
Method
on_train_batch_start
(self, batch, batch_idx, unused=0)
midi/systems/base.py:188
Method
on_train_start
(self)
midi/systems/system_midi.py:134
Method
on_validation_batch_end
(self, outputs, batch, batch_idx)
midi/systems/base.py:219
Method
on_validation_batch_start
(self, batch, batch_idx, dataloader_idx=0)
midi/systems/base.py:194
Method
on_validation_epoch_end
(self)
midi/systems/system_midi.py:348
Method
on_validation_epoch_end
(self)
midi/systems/base.py:155
Method
on_validation_epoch_start
(self)
midi/systems/system_midi.py:345
Method
on_validation_start
(self, trainer, pl_module)
midi/utils/callbacks.py:149
Function
parse_scheduler_to_instance
(config, optimizer)
midi/utils/training_utils.py:52
Function
polar_to_c2w
Compute L = p - C. Normalize L. Compute s = L x u. (cross product) Normalize s. Compute u' = s x L. rotation = [s, u, -l]
midi/utils/ops.py:411
Method
predict_dataloader
(self)
midi/data/multi_object.py:677
Method
predict_step
(self, batch, batch_idx)
midi/systems/base.py:171
Method
prepare_data
(self)
midi/data/multi_object.py:647
Function
preprocess_image_for_clip
( image: Float[Tensor, "B C H W"], do_resize=True, size: Optional[int] = None )
midi/systems/model_utils.py:25
Function
preprocess_image_for_dinov2
( image: Float[Tensor, "B C H W"], do_resize=True, size: Optional[int] = None )
midi/systems/model_utils.py:35
Method
query_fn
(q, kv)
midi/models/autoencoders/autoencoder_kl_triposg.py:202
Function
rays_intersect_bbox
( rays_o: Float[Tensor, "N 3"], rays_d: Float[Tensor, "N 3"], radius: Float, near: Float = 0.0
midi/utils/ops.py:346
Function
read_mesh_from_path
(mesh_path)
midi/utils/mesh_process.py:11
Function
reflect
(x, n)
midi/utils/ops.py:19
Method
register_non_module
(self, name: str, module: nn.Module)
midi/utils/base.py:118
Method
resumed
(self)
midi/systems/base.py:87
Function
run_generation
( rgb_image: Any, seg_image: Union[str, Image.Image], seed: int, randomize_seed: bool = False,
gradio_demo.py:190
Function
run_segmentation
( image_prompts: Any, seg_mode: str, text_labels: Optional[str] = None, polygon_refinement: bo
gradio_demo.py:136
Method
save_cubemap
(self, filename, img, data_range=(0, 1), rgba=False)
midi/utils/saving.py:318
Method
save_custom_adapter
( self, save_directory: Union[str, os.PathLike], weight_name: str, safe_serial
midi/loaders/custom_adapter.py:68
Method
save_data
(self, filename, data)
midi/utils/saving.py:353
Method
save_function
(weights, filename)
midi/loaders/custom_adapter.py:83
Method
save_grayscale_image
( self, filename, img, data_range=DEFAULT_GRAYSCALE_KWARGS["data_range"],
midi/utils/saving.py:226
Method
save_img_sequences
( self, seq_dir, matcher, save_format="mp4", fps=30, delete=Tr
midi/utils/saving.py:405
Method
save_json
(self, filename, payload)
midi/utils/saving.py:442
Method
save_rgb_image
( self, filename, img, data_format=DEFAULT_RGB_KWARGS["data_format"],
midi/utils/saving.py:117
Method
save_state_dict
(self, filename, data)
midi/utils/saving.py:367
Method
save_uv_image
( self, filename, img, data_format=DEFAULT_UV_KWARGS["data_format"], d
midi/utils/saving.py:153
Method
savedir
(self)
midi/utils/callbacks.py:49
Method
scale_noise
Forward function for the noise scaling in the flow matching.
midi/schedulers/scheduling_rectified_flow.py:310
Function
scale_tensor
( dat: Num[Tensor, "... D"], inp_scale: ValidScale, tgt_scale: ValidScale )
midi/utils/ops.py:26
Method
set_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
midi/schedulers/scheduling_rectified_flow.py:144
Method
set_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
midi/models/transformers/triposg_transformer.py:608
Method
set_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
midi/models/autoencoders/autoencoder_kl_triposg.py:374
Function
show_vram_usage
(name)
midi/utils/misc.py:296
Function
signed_distance_function
Return the distance to the 0.5 levelset of a function, the mask of the border (i.e., the nearest cells to the 0.5 level-set) and the mask of
midi/utils/smoothing.py:315
Function
signed_distance_function_iso0
Return the distance to the 0 levelset of a function, the mask of the border (i.e., the nearest cells to the 0 level-set) and the mask of the
midi/utils/smoothing.py:338
Function
smooth
Smooths the 0.5 level-set of a binary array. Returns a floating-point array with a smoothed version of the original level-set in the 0 isoval
midi/utils/smoothing.py:574
Method
start
(self, name: str)
midi/utils/misc.py:253
Method
step_index
The index counter for current timestep. It will increase 1 after each scheduler step.
midi/schedulers/scheduling_rectified_flow.py:130
Method
test_step
(self, batch, batch_idx)
midi/systems/system_midi.py:351
Method
test_step
(self, batch, batch_idx)
midi/systems/base.py:158
Function
tet_sdf_diff
( vert_sdf: Float[Tensor, "Nv 1"], tet_edges: Integer[Tensor, "Ne 2"] )
midi/utils/ops.py:323
Function
time_recorder_enabled
()
midi/utils/misc.py:287
Method
train_dataloader
(self)
midi/data/multi_object.py:650
Method
training_step
Training step for the pl module. Args: batch: The batch of data. Each batch data includes keys `num_instances`, `surface
midi/systems/system_midi.py:137
Method
training_step
(self, batch, batch_idx)
midi/systems/base.py:138
Method
true_current_epoch
(self)
midi/systems/base.py:99
Method
true_global_step
(self)
midi/systems/base.py:92
Method
unfuse_qkv_projections
Disable QKV projection fusion if enabled. <Tip warning={true}> This API is 🧪 experimental. </Tip> Args:
midi/pipelines/pipeline_utils.py:66
Method
unfuse_qkv_projections
Disables the fused QKV projection if enabled. <Tip warning={true}> This API is 🧪 experimental. </Tip>
midi/models/transformers/triposg_transformer.py:529
Method
unfuse_qkv_projections
Disables the fused QKV projection if enabled. <Tip warning={true}> This API is 🧪 experimental. </Tip>
midi/models/autoencoders/autoencoder_kl_triposg.py:295
Method
update_step
(self, epoch: int, global_step: int, on_load_weights: bool = False)
midi/systems/base.py:249
Method
val_dataloader
(self)
midi/data/multi_object.py:659
Function
validate_empty_rays
(ray_indices, t_start, t_end)
midi/utils/ops.py:337
Method
validation_step
(self, batch, batch_idx)
midi/systems/system_midi.py:342
Method
validation_step
(self, batch, batch_idx)
midi/systems/base.py:152
Method
version
Get the experiment version. Returns: The experiment version if specified else the next version.
midi/utils/callbacks.py:26
Function
wrapper
(*args, **kwargs)
midi/utils/misc.py:202
Method
xyxy
(self)
scripts/grounding_sam.py:110
← previous
301–380 of 380, ranked by callers