You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add InferenceCore to matanyone code snippet (#1510)
minor improvement to the matanyone code snippet following
pq-yang/MatAnyone#35 adding the second method
for loading the model using the `InferenceCore` a class that
automatically loads the model and easily processes videos.
this snippet is intended to be used as follows :
```python
from matanyone.inference.inference_core import InferenceCore
processor = InferenceCore("PeiqingYang/MatAnyone")
# foreground_path, alpha_path = processor.process_video(
# input_path = "inputs/video/test-sample1.mp4",
# mask_path = "inputs/mask/test-sample1.png",
# output_path = "outputs"
# )
```
0 commit comments