- convert .py to .pyx
- use cython to convert .pyx to .c
- compile .c
- Test run
example python file:
script.py
#!/usr/bin/env python | |
import argparse | |
import numpy as np | |
import sys | |
import cv2 | |
import tritonclient.grpc as grpcclient | |
from tritonclient.utils import InferenceServerException | |
from processing import preprocess, postprocess |