justinpinkney / awesome-pretrained-stylegan2

A collection of pre-trained StyleGAN 2 models to download
1.26k stars 108 forks source link

generated images using the provided pretrained model contain colorful specks.??? #38

Closed fido20160817 closed 2 years ago

fido20160817 commented 2 years ago

the generated images using the provided pretrained model in these links contain colorful specks. For example, dataset: faces (FFHQ config-f). Anybody knows what's wrong with this? 2VUHC27r9J

justinpinkney commented 2 years ago

This is because the values of your image are going outside the standard range and wrapping round. You need to clamp you values between 0-255 before you convert to uint8.

fido20160817 commented 2 years ago

This is because the values of your image are going outside the standard range and wrapping round. You need to clamp you values between 0-255 before you convert to uint8.

I see. Thanks for your response!