Open threeneedone opened 1 year ago
SAHI library only outputs boxes. You can segment these outputs using the SAM library. Can you write the question more descriptively?
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
sahi_predict is used to predict what the SahiAutoSegmentation is. input_box in predict is []?