Open codefanw opened 7 months ago
The predict_batch function seems to only process the first image in a batch when generating predictions. Specifically, the lines:
prediction_logits = outputs["pred_logits"].cpu().sigmoid()[0] prediction_boxes = outputs["pred_boxes"].cpu()[0]
These lines appear to only handle the logits and boxes for the first image in the batch, ignoring the rest.
Yes and that's the reason I create this repo, to solve the problem which only predicting an image a time. Pls check out batch_utilities.py for batch inference.
The predict_batch function seems to only process the first image in a batch when generating predictions. Specifically, the lines:
These lines appear to only handle the logits and boxes for the first image in the batch, ignoring the rest.