Closed ddghjikle closed 3 years ago
According to my experimental results, there are no error message. It seems that all codes are successfully run on CPU rather than the 0 GPU, which is set as the default device.
how long do you run attack.py for all 1000 images?
Before these codes generating images, the latest log is generated in 2021-08-18 09:31:27. Therefore, it seems that about 10 hours are taken to generate adversarial images of FIAPIDIM.
To be more clear, during running these codes, i often see my platform information by using nvidia-smi and top -u. I am sure that attack.py did not use GPU devices,
Can you show some log messages?
Below are some messages during generating images of FIAPIDIM.
WARNING:tensorflow:From attack.py:267: The name tf.train.Saver is deprecated. Please use tf.compat.v1.train.Saver instead.
W0818 09:31:27.775135 139927571894464 deprecation_wrapper.py:119] From attack.py:267: The name tf.train.Saver is deprecated. Please use tf.compat.v1.train.Saver instead.
WARNING:tensorflow:From attack.py:268: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.
W0818 09:31:27.818869 139927571894464 deprecation_wrapper.py:119] From attack.py:268: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.
2021-08-18 09:31:27.819423: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2021-08-18 09:31:27.860271: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2199885000 Hz
2021-08-18 09:31:27.865803: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55a10eda83c0 executing computations on platform Host. Devices:
2021-08-18 09:31:27.865847: I tensorflow/compiler/xla/service/service.cc:175] StreamExecutor device (0):
During running the verify.py, here presents an error:
Traceback (most recent call last):
File "verify.py", line 101, in
For addressing this error, i downloaded pre-trained resnet_v2_50_2017_04_14.tar from the shared url and placed them in the models_tf folder. However, the above error still remains.
I am sure the code can use GPU, at least in my platform. Can you check again your GPU whether is available and there is no other python procedure running on this GPU?
As for the verify.py, the right file path should be: ./models_tf/resnet_v2_50/(eval.graph、resnet_v2_50.ckpt、train.graph)
OK, thanks very much. Is that mean each pre-trained model should be placed in separate folders? I directly uncompressed all files in the models_tf folder.
If there are more checkpoint files for one model, you should place them in separate folders, and if there is only one checkpoint file for one model, just place it in ./models_tf/.
Thanks very much for your help. Best regards.
发自我的iPhone
------------------ Original ------------------ From: Hengchang Guo @.> Date: Thu,Aug 19,2021 9:48 AM To: hcguoO0/FIA @.> Cc: ddghjikle @.>, Author @.> Subject: Re: [hcguoO0/FIA] Hi, it seems that attack.py cannot use GPU, could you please check related codes? (#3)
Hi, I also found that it seems that attack.py cannot use GPU, could you please check related codes?
Can you show the error message?