Views
No views yet


pip install -qqU git+https://github.com/pq-yang/MatAnyone2.git1from matanyone2 import MatAnyone2, InferenceCore
2model = MatAnyone2.from_pretrained("PeiqingYang/MatAnyone2")
3processor = InferenceCore(model,device="cuda:0")
4# inference
5processor.process_video(input_path="inputs/video/test-sample2.mp4",
6 mask_path="inputs/mask/test-sample2.png",
7 output_path="results")