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

problem of the attack model #3

Open
Huang-yihao opened this issue Oct 24, 2022 · 4 comments
Open

problem of the attack model #3

Huang-yihao opened this issue Oct 24, 2022 · 4 comments

Comments

@Huang-yihao
Copy link

I follow the instruction on attacking the imagenet images and meet the problem of the model.
The command is python attack.py --dataset="imagenet" --decoder=3 --model="imagenet_denoise"
The problem is as follows.

image

Could you please tell me what is the error? It seems like there is something wrong on the loaded model, but I am not sure.
Thank you for your help!!!

@qiulingxu
Copy link
Owner

qiulingxu commented Oct 24, 2022 via email

@Huang-yihao
Copy link
Author

Hello qiuling,

     The images are of ImageNet type as follows.

image

    Furthermore, I am just using the GPU, not CPU. But the error suggests using CPU.
     I am wondering which code should I modify to change the data format into NHWC?
     Thank you very much!

@qiulingxu
Copy link
Owner

qiulingxu commented Oct 25, 2022

Could you please verify the version of your TensorFlow, is it 1.15 with GPU compatibility? I can not reproduce this error on my side. Meanwhile, if you use your model, please ensure the input of the model follows NHWC.

@Huang-yihao
Copy link
Author

Thank you! I find that it is the mismatch of cuda and tensorflow, which makes me think I am using the correct tensorflow version with GPU.

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

2 participants