官术网_书友最值得收藏!

Using the trained model

Once you are happy with the model, you can use it for predictions. The model can be used in one of the two following ways:

  • With a REST API
  • Export it to a model file

The first choice involves uploading an image. Calling the generated endpoint for your model, along with the image data, will result in a prediction. The result will contain the predicted tags, ordered by their probability.

The second choice allows you to run the prediction offline. This means that you can utilize different frameworks, such as TensorFlow, CoreML, and ONNX, for different platforms. How to use the model with these frameworks is beyond the scope of this book. The downside of using an offline model is that the accuracy may suffer a bit compared to the online version.

主站蜘蛛池模板: 东源县| 偏关县| 罗山县| 青川县| 平阴县| 镇沅| 延津县| 平利县| 鄂州市| 云林县| 梅河口市| 南丰县| 鱼台县| 禄丰县| 昭平县| 晋城| 纳雍县| 台前县| 荔波县| 新津县| 慈溪市| 江门市| 宁安市| 策勒县| 台南县| 肇东市| 葵青区| 定结县| 龙岩市| 利川市| 桂阳县| 黄陵县| 文安县| 太康县| 江都市| 河南省| 阳江市| 綦江县| 剑阁县| 凤台县| 洛南县|