Skip to content

update cli - #9

Open
not-lain wants to merge 2 commits into
pq-yang:mainfrom
not-lain:main
Open

update cli#9
not-lain wants to merge 2 commits into
pq-yang:mainfrom
not-lain:main

Conversation

@not-lain

Copy link
Copy Markdown
Contributor

TLDR; this pr allows the cli command to run anywhere in your machine.

this is an updated version of the cli command it should allow people to run the matanyone2 cli command from anywhere in the machine since checkpoint no longer depends on the local path and instead uses the HF download directory.

I also switched to using the inference to use process_video method.

future users can now from anywhere in their machine run the following commands to setup and run matanyone2

# initialize the directory (only works in dirs with no pyproject file) 
uv init
# install the library (or from not-lain if you want to test before merging) 
uv add matanyone2@git+https://github.com/pq-yang/MatAnyone2.git
# get full info about the parameters
 uv run matanyone2 --help
# run the inference
uv run matanyone2 -i inputs/video/test-sample1 -m inputs/mask/test-sample1.png
image

cc @pq-yang for review

@not-lain

Copy link
Copy Markdown
Contributor Author

cc @pq-yang
gentle ping on this pr for review.

@pq-yang

pq-yang commented Mar 24, 2026

Copy link
Copy Markdown
Owner

Thanks @not-lain for the contributions to improve the CLI usage!

There is a small environment issue affecting hugging_face/app.py that needs to be fixed before merging. Please feel free to take a look 😊

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