Skip to content
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

Feat/inf example #21

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Feat/inf example #21

wants to merge 7 commits into from

Conversation

ohjho
Copy link

@ohjho ohjho commented Jul 19, 2024

added a new method inference() to unisal.train.Trainer and a new module unisal.demo so that inference on an single image using the trained model can be as simple as:

import unisal

saliency_map = unisal.demo.predict_image(img_rgb=np.array(pil_im))

for a more detailed usage, see the function predict_image() in run.py

support for video inference will come in a future PR

@ohjho ohjho mentioned this pull request Jul 19, 2024
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.

1 participant