Content-Length: 275906 | pFad | https://github.com/huggingface/huggingface.js/pull/1510

F3 add InferenceCore to matanyone code snippet by not-lain · Pull Request #1510 · huggingface/huggingface.js · GitHub
Skip to content

add InferenceCore to matanyone code snippet #1510

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 3, 2025

Conversation

not-lain
Copy link
Contributor

@not-lain not-lain commented Jun 2, 2025

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 :

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"
# )

Copy link
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @not-lain !

@Wauplin Wauplin merged commit 7cb9528 into huggingface:main Jun 3, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/huggingface/huggingface.js/pull/1510

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy