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

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.

主站蜘蛛池模板: 特克斯县| 高雄市| 全椒县| 晋中市| 宝鸡市| 镇康县| 东城区| 陵川县| 德阳市| 贺兰县| 永川市| 开远市| 麻江县| 施秉县| 福建省| 临汾市| 徐州市| 山东省| 梁平县| 海宁市| 阳城县| 礼泉县| 衡东县| 郑州市| 耒阳市| 大名县| 秭归县| 曲周县| 宣化县| 汉源县| 新建县| 宁阳县| 井研县| 高州市| 巫山县| 海城市| 垫江县| 芒康县| 綦江县| 格尔木市| 北碚区|