Open convexalpha opened 2 years ago
I meet the same problem. I check the source code and it seems that the relative params are not loaded by load_network_pkl. You can add the following code to function "forward" in ProjectedDiscriminator:
if bb_name == "tf_efficientnet_lite0": mean = [0.5, 0.5, 0.5] std = [0.5, 0.5, 0.5] elif bb_name == "deit_base_distilled_patch16_224": mean = [0.485, 0.456, 0.406] std = [0.229, 0.224, 0.225]
and modify the norm code to x_n = Normalize(mean, std)(x_aug)
.
I am trying to use the Discriminator in the following way:
But this returns the error: