Inference ライブラリ
サーバーや HTTP の往復なしで、`inference` パッケージを使って自分の Python プロセス内で直接モデルを実行します。
インストール
pip install inferencepip install --extra-index-url https://download.pytorch.org/whl/cu124 inference-gpupip install inference-models[trt10]モデルを実行する
from inference import get_model
image = "https://media.roboflow.com/inference/people-walking.jpg"
model = get_model(model_id="rfdetr-small")
results = model.infer(image)結果を可視化する
動画とワークフロー
さらに進む
最終更新
役に立ちましたか?