Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when i test,the time is so long #33

Open
leolv131 opened this issue Dec 29, 2021 · 4 comments
Open

when i test,the time is so long #33

leolv131 opened this issue Dec 29, 2021 · 4 comments

Comments

@leolv131
Copy link

when i test some images, whatever the number of images is 1 or 100,the time spent is so long. I want to know whether it is nomal

@DeepKnowledge1
Copy link

No, it is not normal,

@leolv131
Copy link
Author

No, it is not normal,
i find the time is spent follow the code, my H*W is 4096,it has to loop 4096 times, is it normal?
for i in range(H * W):
mean = train_outputs[0][:, i]
conv_inv = np.linalg.inv(train_outputs[1][:, :, i])
dist = [mahalanobis(sample[:, i], mean, conv_inv) for sample in embedding_vectors]
dist_list.append(dist)

@DeepKnowledge1
Copy link

Yes, please have a look on the Inference time issue

#8 (comment)

@DeepKnowledge1
Copy link

Read the whole issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants