You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But there are still only 300 detections. Is it possible for RF-DETR to predict more than 300 objects?
My use case is counting the number of small objects in an image. These objects are all similar (num_classes = 1) and the training data supports this large number. I would like to be able to identify more than 300 objects without splitting up the image.
I am installing RFDETR directly from the source using:
pip install git+https://github.com/roboflow/rf-detr.git
And training like so:
model = RFDETRBase()
model.train(
dataset_dir='...',
num_queries = 700,
num_select = 700
)
I'm getting this runtime error.
RuntimeError Traceback (most recent call last)
in <cell line: 0>()
18 model = RFDETRBase()
19
---> 20 model.train(
21 dataset_dir='/content/drive/MyDrive/RMMC_CAN_ds_v3/images',
22 num_queries = 700,
7 frames
/usr/local/lib/python3.11/dist-packages/rfdetr/models/lwdetr.py in forward(self, outputs, target_sizes)
552
553 prob = out_logits.sigmoid()
--> 554 topk_values, topk_indexes = torch.topk(prob.view(out_logits.shape[0], -1), self.num_select, dim=1)
555 scores = topk_values
556 topk_boxes = topk_indexes // out_logits.shape[2]
RuntimeError: selected index k out of range
Is it possible to train RF-DETR to detect more than 300 images? How can I do this?
The text was updated successfully, but these errors were encountered: