↓ 40 callersMethodhead_to_batch_dimr""" Reshape the tensor from `[batch_size, seq_len, dim]` to `[batch_size, seq_len, heads, dim // heads]` `heads` is the number of hea
src/models/attention_processor.py:547
↓ 4 callersFunctionexport_onnx(
model,
onnx_path: str,
opt_image_height: int,
opt_image_width: int,
opt_batch_size: int,
src/modeling/onnx_export.py:27
↓ 3 callersMethod__init__(self, pose_guider, unet, vae, scheduler, timestep, w_embedding)
src/modeling/framed_models.py:6
↓ 1 callersFunctionbbox_xyxy2csTransform the bbox format from (x,y,w,h) into (center, scale) Args: bbox (ndarray): Bounding box(es) in shape (4,) or (n, 4), formatted
src/dwpose/onnxpose.py:116
↓ 1 callersMethodprepare_latents(
self,
batch_size,
num_channels_latents,
width,
height,
video
src/pipeline/pipeline_pose2vid_lcm.py:150