C# and ONNX models
Hi, I have created a T5 based ONNX model, I would just like to load it into some C# code to use it.The main problem is that I can’t tokenize a string into numbers and then vice versa (the model accepts long as input and float32 as output), but I need to input a string and receive one as output, as happens in Python using the transformers library and related tokenizers…Does anyone have a working example?Thank you.
2024-06-24T19:08:17Z
Hi,Not sure if it helps but maybe take a peek at the tokenizer from this project?GitHubGitHub - cassiebreviu/StableDiffusion: Inference Stable Diffusion with C# and...Inference Stable Diffusion with C# and ONNX Runtime - cassiebreviu/StableDiffusionRegards,