Upload Custom Model Weights
Upload your own trained model weights to Roboflow for hosted inference.
Upload weights to a version
import roboflow
rf = roboflow.Roboflow(api_key="YOUR_API_KEY")
version = rf.workspace().project("my-detector").version(3)
version.deploy(
model_type="yolov8", # or yolov5, yolov11, rfdetr-nano, etc.
model_path="./training-runs/exp42", # directory containing weights/best.pt
filename="weights/best.pt", # optional, default
)Upload weights to one or more projects
Parameters
Where it ends up
Last updated
Was this helpful?