# Training custom dataset on RFDETR but retaining existing classes

**URL:** <https://discuss.roboflow.com/t/training-custom-dataset-on-rfdetr-but-retaining-existing-classes/11089>\
**Category:** 🤝  Community Help\
**Created:** [September 4, 2025, 3:28pm UTC](https://discuss.roboflow.com/t/training-custom-dataset-on-rfdetr-but-retaining-existing-classes/11089 "2025-09-04T15:28:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcidoniwalker-ec](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@jcidoniwalker-ec](https://discuss.roboflow.com/u/jcidoniwalker-ec)\
**Post date:** [September 4, 2025, 3:28pm UTC](https://discuss.roboflow.com/t/training-custom-dataset-on-rfdetr-but-retaining-existing-classes/11089/1 "2025-09-04T15:28:52Z")

</div>

- **Project Type: Object Detection with RFDETR**

Hi all,

I’m working with the RFDETR model for object detection and typically start training from the public checkpoint. I have a few custom object classes I’d like to detect, but I also want to retain the existing pretrained classes like _person_, _car_, etc.

Is there a recommended or best practice for combining both the pretrained classes and new custom ones?

One approach I’ve considered is running two separate models—one using the original pretrained weights for standard classes, and another trained specifically on my custom dataset. But this feels a bit clunky, and I’m wondering if there’s a more efficient or integrated solution that others have used.

Any advice or examples would be greatly appreciated!

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![aryan-v](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/aryan-v/32/8265_2.png) [@aryan-v](https://discuss.roboflow.com/u/aryan-v)\
**Post date:** [September 4, 2025, 5:43pm UTC](https://discuss.roboflow.com/t/training-custom-dataset-on-rfdetr-but-retaining-existing-classes/11089/2 "2025-09-04T17:43:43Z")

</div>

I think the current way you’re working with the models is the best/easiest way to do what you’re aiming for. A fine-tuned version of RF-DETR can only detect the classes its been trained for - meaning if you wanted one model to detect the base classes as well, you’d have to include annotations for those during training (treating it like a “new” class). But this seems like a lot of extra effort just to avoid using two models!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)\
**Post date:** [September 25, 2025, 5:43pm UTC](https://discuss.roboflow.com/t/training-custom-dataset-on-rfdetr-but-retaining-existing-classes/11089/3 "2025-09-25T17:43:45Z")

</div>

Closed on September 25, 2025, 5:43pm UTC

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
