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

sahi_predict is used to predict what the SahiAutoSegmentation is. input_box in predict is [] #67

Open
threeneedone opened this issue May 29, 2023 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@threeneedone
Copy link

sahi_predict is used to predict what the SahiAutoSegmentation is. input_box in predict is []?

@kadirnar kadirnar self-assigned this Jun 29, 2023
@kadirnar kadirnar added the question Further information is requested label Jun 29, 2023
@kadirnar
Copy link
Owner

SAHI library only outputs boxes. You can segment these outputs using the SAM library. Can you write the question more descriptively?

@th0mas-codes
Copy link

I found that commenting out the second "result" variable right after the get_sliced_predicition properly passed the output boxes to SahiAutoSegmentation().image_predict where as before it was always an empty array.

its found in sahi_predictor.py

result = get_sliced_prediction(
    image_path,
    detection_model,
    slice_height=slice_height,
    slice_width=slice_width,
    overlap_height_ratio=overlap_height_ratio,
    overlap_width_ratio=overlap_width_ratio,
)

# result = get_prediction(image_path, detection_model) <-- comment out this line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants