You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f"https://api.ultralytics.com/v1/predict/{MODEL_ID}" is the new end point
this means users could pass in their own trained model
otherwise, need to use default model-id for the pretrained models (includes tasks besides detection)
all inference arguments are passed into data keyword as a dictionary
conf : prediction confidence
size : prediction image size
iou : prediction iou threshold
url : image URL
normalize
Note
Image URL can be passed directly to inference API
HUB account API key is required as part of the headers
headers = {"x-api-key": f"API_KEY"}
would be preferred if there was a means to obtain a key with zero intervention from the bot (linked/connected account) but the Discord docs don't make it obvious how to accomplish this (to me)
inference results returned as part of .json() method of response
After release of latest HUB API, bot inference requests no longer working
The text was updated successfully, but these errors were encountered: