We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How should the input points be passed to SAM? Running the example code throws an error:
jsonschema.exceptions.ValidationError: '{}' is not of type 'array'
Reproduce by executing:
from rembg import remove, new_session import numpy as np from PIL import Image rembg_session = new_session("sam") input_image = Image.open(r"my_image.jpg) input_points = np.array([[400, 350], [700, 400], [200, 400]]) input_labels = np.array([1, 1, 2]) result = remove(input_image , session=session, input_points=input_points, input_labels=input_labels)
It appears to be looking for a keyword argument named sam_prompt.
Using latest version on CPU, as a library.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
How should the input points be passed to SAM? Running the example code throws an error:
jsonschema.exceptions.ValidationError: '{}' is not of type 'array'
Reproduce by executing:
It appears to be looking for a keyword argument named sam_prompt.
Using latest version on CPU, as a library.
The text was updated successfully, but these errors were encountered: