computerscienceretreat / teapot

Adversarial examples with keras and cleverhans
0 stars 0 forks source link

How to use Resnet 50 or VGG 16 instead of Inception V3 #1

Open raghavgurbaxani opened 6 years ago

raghavgurbaxani commented 6 years ago

Hi

Thank you for this amazing work. The inception V3 works really well.

Could you please specify how to change the model to Resnet 50 or VGG 16?

when I change it to ResNet I get the following error

ValueError: Error when checking : expected input_8 to have shape (224, 224, 3) but got array with shape (299, 299, 3)

Thanks

nshdesai commented 6 years ago

Hey, You would have to change IMAGE_SIZE to be 224 and you should refer to this link to swap out the Inception model for a Resnet. Hope it works!