Created
October 14, 2019 05:35
-
-
Save Tony607/d32e4bb32bc1acc17b2772a0f744196f to your computer and use it in GitHub Desktop.
How to train Detectron2 with Custom COCO Datasets | DLology
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
times = [] | |
for i in range(20): | |
start_time = time.time() | |
outputs = predictor(im) | |
delta = time.time() - start_time | |
times.append(delta) | |
mean_delta = np.array(times).mean() | |
fps = 1 / mean_delta | |
print("Average(sec):{:.2f},fps:{:.2f}".format(mean_delta, fps)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment