open-forest-observatory / tree-detection-framework

BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Run inference on a batch of images in Detectree2 #52

Open amrithasp02 opened 1 week ago

amrithasp02 commented 1 week ago

Currently Detectree2Detector handles image prediction in call_predict() by passing a list of dictionaries to the model. From my initial understanding, this is a constraint because we are using Detectron2 which expects the input images in this format rather than a Tensor.

However, we want to modify it to take the input as a batch of images and run inference at once so that we can take advantage of the full GPU.

(@russelldj)