Warning ignoring invalid prediction with bbox #653
-
Hello I'm using the improved code, not the original code, but I'm not modifying the slide prediction core part 04/14/2022 08:07:08 - WARNING - sahi.model - ignoring invalid prediction with bbox: [711, 0, 773, 0] Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
It means either you have implemented a ned detection pipeline incorrectly or your model is predicting invalid boxes. I.e a box shaped |
Beta Was this translation helpful? Give feedback.
-
@fcakyon |
Beta Was this translation helpful? Give feedback.
-
The reason for the revision was that the yolov5 model currently supports only the form of model = yolov5.load(self.model_path, device=self.device, autoshape=False) |
Beta Was this translation helpful? Give feedback.
-
@youngjae-avikus i am the maintainer of the yolov5 package. I am open for new ideas to implement in the yolov5 package. Can you explain the issue a bit more detailed? Why do you want to turn off the autoshape? What is the disadvantage of autoshape? As far as I know you should always use |
Beta Was this translation helpful? Give feedback.
-
First of all, can you sahi as an tensorrt engine file from the type loaded with |
Beta Was this translation helpful? Give feedback.
-
@youngjae-avikus yes, yolov5 can load tensorrt engine models in |
Beta Was this translation helpful? Give feedback.
-
Ah, but Error below when loading engine from file 'inference_for_yolov5.ipynb' detection_model = Yolov5DetectionModel(
model_path=yolov5_model_path,
confidence_threshold=0.3,
device="cuda:0", # "cpu" or 'cuda:0'
image_size=640
)
result = get_prediction("demo_data/small-vehicles1.jpeg", detection_model) |
Beta Was this translation helpful? Give feedback.
-
@youngjae-avikus this error should be fixed with this PR: fcakyon/yolov5-pip#108 |
Beta Was this translation helpful? Give feedback.
@youngjae-avikus this error should be fixed with this PR: fcakyon/yolov5-pip#108