Closed zaibian closed 5 years ago
Could you please check your tensorflow version? Maybe you are using tensorflow instead of tensorflow-gpu, that is, you are not using gpu to accelerate.
Thank you chick. Now I have another question. How can i realize real-time detection with my computer camera ? Because i coud not found the code for real-time detection by calling camera. Thankx!
You can follow the instruction in demo.ipynb
, and change cv2.imread
into opencv VideoCapture to get input frames, something like this:
cap = cv2.VideoCapture(0)
while(True):
# Capture frame-by-frame
ret, frame = cap.read()
# predict output
output = net.predict(frame)
cv2.imshow('frame', output)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
thanks
hi,in demo.py why I test inference speed only 6 fps with titan xp?