MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / main

Function main

motion_rep/motion_checker.py:548–581  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

546
547
548def main():
549 parser = argparse.ArgumentParser(description="Visualize Depth Maps from Motion File")
550 parser.add_argument("--motion_file", type=str, required=True, help="Path to .pt motion file")
551 parser.add_argument("--output_dir", type=str, required=True, help="Output directory for visualizations")
552 parser.add_argument("--video_file", type=str, default=None, help="Optional RGB video to overlay depth (overrides H/W/fps)")
553 parser.add_argument("--smpl_type", type=str, default="smplx", choices=["smplx", "smplh"], help="Body model type")
554 parser.add_argument("--smpl_model_path", type=str, default=None, help="Override body model directory")
555 parser.add_argument("--batch_size", type=int, default=24, help="Batch size for rendering frames")
556 parser.add_argument("--H", type=int, default=1080, help="Image height (ignored if video_file provided)")
557 parser.add_argument("--W", type=int, default=1920, help="Image width (ignored if video_file provided)")
558 parser.add_argument("--fps", type=int, default=20, help="Frames per second (ignored if video_file provided)")
559 parser.add_argument("--recover_from_velocity", "-rfv", action="store_true", help="Recover params from velocity")
560 parser.add_argument("--zero_trans", "-zt", action="store_true", help="Set translation to zero")
561 parser.add_argument("--device", type=str, default="cuda:0", help="Device to run model on")
562 parser.add_argument("--verbose", "-v", action="store_true", help="Verbose mode")
563 args = parser.parse_args()
564
565 device = args.device
566 motion_vis(
567 args.motion_file,
568 args.output_dir,
569 args.batch_size,
570 args.H,
571 args.W,
572 args.fps,
573 None,
574 args.recover_from_velocity,
575 device=device,
576 verbose=args.verbose,
577 zero_trans=args.zero_trans,
578 video_file=args.video_file,
579 smpl_model_path=args.smpl_model_path,
580 smpl_type=args.smpl_type,
581 )
582
583
584if __name__ == "__main__":

Callers 1

motion_checker.pyFile · 0.70

Calls 1

motion_visFunction · 0.85

Tested by

no test coverage detected