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

How do you implement the R precision for CUB dataset?How many images have you generated? #105

Open
fm5o1 opened this issue Aug 9, 2022 · 0 comments

Comments

@fm5o1
Copy link

fm5o1 commented Aug 9, 2022

Please someone help me.
The validation set for CUB is 2933, How many images have you generated to calculate the R precision? 30000?
in code, How much have you considered the size of R? Is the condition of 30,000 considered?
`R_count = 0
R = np.zeros(2928)
.
.
.

if R_count >= 30000:
sum = np.zeros(8)
np.random.shuffle(R)
for i in range(8):
sum[i] = np.average(R[i * 3000:(i + 1) * 3000- 1])
R_mean = np.average(sum)*100
R_std = np.std(sum)*100
print("R mean:{:.2f} std:{:.2f}".format(R_mean, R_std))
cont = False
`

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

1 participant