Skip to content

Instantly share code, notes, and snippets.

View danzz006's full-sized avatar
🐞
debugging

DMZ danzz006

🐞
debugging
View GitHub Profile
@danzz006
danzz006 / benchmark-triton.py
Created January 28, 2024 15:47
Utility script to benchmark models running with triton inference server. This code is obtained from yolov7 repository https://github.com/WongKinYiu/yolov7/tree/main
#!/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
@danzz006
danzz006 / pytoc.md
Created November 14, 2022 06:57 — forked from vi4hu/pytoc.md
Convert and Compile python in c via cython

steps:

  1. convert .py to .pyx
  2. use cython to convert .pyx to .c
  3. compile .c
  4. Test run

example python file:

script.py