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

About the discriminator score #52

Open
fwbx529 opened this issue Nov 15, 2023 · 0 comments
Open

About the discriminator score #52

fwbx529 opened this issue Nov 15, 2023 · 0 comments

Comments

@fwbx529
Copy link

fwbx529 commented Nov 15, 2023

Hi, I want to use the discriminator for my research. But I have tested the discriminator in stylegan_human_v3_512.pkl
and the output score for SHHQ-1.0 image (368.png) is -3.4994, while the score for my generated (really fake) images is about -4.18
Is this normal?

My code for testing the discriminator is as below:

D = legacy.load_network_pkl(open('stylegan_human_v3_512.pkl', 'rb'))['D']
img3 = cv2.imread('368.png')
img3 = cv2.resize(img3, (256, 512)) 
img3 = transforms.ToTensor()(img3) * 2 - 1 #normalize to -1~1
print(D(img3[[2,1,0]][None], 0)) #RGB to BGR for opencv

Thank you!

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