Skip to content

[Bug] Training error occurs when using the latest compiled code for RF-DETR #291

@wuhaoyu010

Description

@wuhaoyu010

Description
I compiled the latest code from the repository and attempted to train the RF-DETR model, but encountered an error.
Screenshot

Image

Training Code

from libreyolo import LibreRFDETR
def main():
    model = LibreRFDETR("weights/rf-detr-large-2026.pth")
    result = model.train(
        data="datasets",
        epochs=100,
        batch=16,
        device="4,5",
        imgsz=640,
        lr=1e-4,
        output_dir="runs/train/rfdetr_exp",
    )
    print(f"Training completed: {result}")
if __name__ == "__main__":
    main()

Additional Context
I have tried all three pre-trained models available in LibreYOLO/LibreRFDETR, but the same error occurs with all of them. Could you please help me identify what might be causing this issue? Thanks!

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions