MinfengZhu / DM-GAN

MIT License
187 stars 64 forks source link

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

Open fm5o1 opened 2 years ago

fm5o1 commented 2 years ago

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

`