Skip to content

Conversation

nok
Copy link

@nok nok commented May 31, 2025

Update example code in the README.md, because the method optimize_for_inference doesn't return anything.

Current:

model = RFDETRBase()
model = model.optimize_for_inference()
# ...
detections = model.predict(image, threshold=0.5)

Fixed:

model = RFDETRBase()
model.optimize_for_inference()  # just call the method
# ...
detections = model.predict(image, threshold=0.5)

This fix is related to the issue #237.

@isaacrob-roboflow
Copy link
Collaborator

resolved with this merge #283

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants