You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've been trying your work and have modified some of the python files for my own use. Things are working well.
I'm just here to point out that there's potentially some performance issue in load_image(), in which cv2.cvtColor() is done before cv2.resize(). Doing cvtColor on the raw image, which is usually larger than the input size of the model, takes more time than on the resized one and it may also influence the memory allocation, impairing the performance of cv2.resize().
I tested it out by modifying the code and sent a 1080P video clip as the input in order to record the average time taken for each frame.
Hi, I've been trying your work and have modified some of the python files for my own use. Things are working well.
I'm just here to point out that there's potentially some performance issue in load_image(), in which cv2.cvtColor() is done before cv2.resize(). Doing cvtColor on the raw image, which is usually larger than the input size of the model, takes more time than on the resized one and it may also influence the memory allocation, impairing the performance of cv2.resize().
I tested it out by modifying the code and sent a 1080P video clip as the input in order to record the average time taken for each frame.
Original steps (cvtColor -> resize)
Modified steps (resize -> cvtColor)
The text was updated successfully, but these errors were encountered: