Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion rfdetr/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@ def train_from_rf_project(rf_project: roboflow.Project, dataset_version: int):


def train_from_coco_dir(coco_dir: str):
from rfdetr.config import DEVICE

rf_detr = RFDETRBase()
rf_detr.train(
dataset_dir=coco_dir,
epochs=1,
device="cuda" if device_supports_cuda else "cpu",
device=DEVICE,
)


Expand Down