Add a python demo #44
Reference in New Issue
Block a user
Delete Branch "ioir123ju/master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ioir123ju could you update Readme.md to make your work more clear?
@thancaocuong
I have updated readme.md.
@ioir123ju currently is this correct if I say that we only can run with batchsize 1 with python binding?
@thancaocuong
Yes, I did not complete the batch processing,but It's not difficult.You can try.
@ioir123ju did you get same speed with this python wrapper? I know python can add overhead, I don't know how much this could be. With python I'm getting 36 FPS with yolov4 FP16 and input size of 416x416 on a XAvier AGX, whilst with the
./demoimplementation I get 41 FPS. Did you get similar downgrade of performance?At almost the same speed
@ioir123ju can you please add yolov4-csp plugins too
@ioir123ju am I right in thinking that to avoid memory leaks, a similar function to https://github.com/AlexeyAB/darknet/blob/master/src/network.c#L971 would be needed?
Hi! can you please add support for tensorrt8?
there is support for tensorrt8 ,checkout the tensorrt8 branch https://github.com/ceccocats/tkDNN/tree/tensorrt8..if you are asking for python support for tensorrt8 in tkDNNi am not sure about it
@perseusdg
Thank you, I have already checked out to the 'tensorrt8' branch and now facing some compatability issues with the python binding.
I have modified
load_networkfunction in darknetTR.cpp according to newtk::dnn::Yolo3Detectioninterface:also modified header file and input argtypes on python side accordingly:
load_network.argtypes = [c_char_p, c_char_p, c_char_p, c_int, c_int, c_float]In the meantime I'm reaching segfault while running the demo python script:
Any suggestions how to go on from here?
any update here? I face the same problem.
on jetpack4.5.1, ioir123jupython interface can not run correctly