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

Running the library from python #2

Open
gilamsalem opened this issue Dec 12, 2021 · 1 comment
Open

Running the library from python #2

gilamsalem opened this issue Dec 12, 2021 · 1 comment

Comments

@gilamsalem
Copy link

Is there a way to run the library from python code and not using command line (subprocess)?

@napsternxg
Copy link
Collaborator

The underlying cropping algorithm is in the binary for which we provide a python based wrapper implemented in ImageSaliencyModel

See https://github.com/twitter-research/image-crop-analysis/blob/main/notebooks/Image%20Crop%20Analysis.ipynb for an example.

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

No branches or pull requests

2 participants