ml6team / mgp-str-onnx

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: August 03 2023

Introduction of mgp-str-onnx

Model Details of mgp-str-onnx

This is an ONNX export of the MGP-STR model for text recognition.

It can be run as follows:

import onnxruntime as ort
from transformers import MgpstrProcessor

processor = MgpstrProcessor.from_pretrained("alibaba-damo/mgp-str-base")

mpg_str_onnx = hf_hub_download(repo_id="ml6team/mgp-str-onnx", filename="mgp-str.onnx", repo_type="model")

providers = [('CUDAExecutionProvider', {"cudnn_conv_algo_search": "DEFAULT"}), 'CPUExecutionProvider'] if ort.get_device() == 'GPU' else ['CPUExecutionProvider']

session = ort.InferenceSession(
        mpg_str_onnx, providers=providers,
)

image = Image.open("path_to_your_image")convert("RGB")

pixel_values = processor(images=image, return_tensors="pt").pixel_values
inputs = {"pixel_values": pixel_values.numpy()}

warmup = mgp_str_session.run(None, inputs)
outputs = session.run(None, inputs)

outputs = [torch.tensor(i) for i in outputs]
out_strs = processor.batch_decode(tuple(outputs))
print(out_strs["generated_text"])

Runs of ml6team mgp-str-onnx on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About mgp-str-onnx huggingface.co Model

mgp-str-onnx huggingface.co

mgp-str-onnx huggingface.co is an AI model on huggingface.co that provides mgp-str-onnx's model effect (), which can be used instantly with this ml6team mgp-str-onnx model. huggingface.co supports a free trial of the mgp-str-onnx model, and also provides paid use of the mgp-str-onnx. Support call mgp-str-onnx model through api, including Node.js, Python, http.

mgp-str-onnx huggingface.co Url

https://huggingface.co/ml6team/mgp-str-onnx

ml6team mgp-str-onnx online free

mgp-str-onnx huggingface.co is an online trial and call api platform, which integrates mgp-str-onnx's modeling effects, including api services, and provides a free online trial of mgp-str-onnx, you can try mgp-str-onnx online for free by clicking the link below.

ml6team mgp-str-onnx online free url in huggingface.co:

https://huggingface.co/ml6team/mgp-str-onnx

mgp-str-onnx install

mgp-str-onnx is an open source model from GitHub that offers a free installation service, and any user can find mgp-str-onnx on GitHub to install. At the same time, huggingface.co provides the effect of mgp-str-onnx install, users can directly use mgp-str-onnx installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

mgp-str-onnx install url in huggingface.co:

https://huggingface.co/ml6team/mgp-str-onnx

Url of mgp-str-onnx

mgp-str-onnx huggingface.co Url

Provider of mgp-str-onnx huggingface.co

ml6team
ORGANIZATIONS

Other API from ml6team

huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 06 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 23 2023