Native Python API
Load a model with get_model, run inference on images in your own Python process, and visualize the results with supervision.
Quickstart
pip install inferencepip install --extra-index-url https://download.pytorch.org/whl/cu124 inference-gpu
# please adjust the --extra-index-url to the CUDA version installed in your OSfrom inference import get_model
model = get_model(model_id="rfdetr-large")from inference import get_model
model = get_model(model_id="rfdetr-large")
results = model.infer("people-walking.jpg") # replace with path to your image
Different image types
Inference parameters
Next steps
Last updated
Was this helpful?