ResNet
ResNet の画像分類を Serverless Cloud API 経由で使用します
最終更新
役に立ちましたか?
役に立ちましたか?
export ROBOFLOW_API_KEY="your-key-here"pip install -U inference-sdk supervisionimport os
import supervision as sv
from inference_sdk import InferenceHTTPClient
image = sv.load_image_from_url("https://media.roboflow.com/notebooks/examples/dog.jpeg")
client = InferenceHTTPClient(
api_url="https://serverless.roboflow.com",
api_key=os.environ["ROBOFLOW_API_KEY"],
)
results = client.infer(image, model_id="resnet50")
print(results)