Open GeYuYao-hub opened 1 year ago
Hello, can you try to see if the code runs without the errors mentioned in the other issues ? if it does work can you do a PR for it ? Thanks
@GeYuYao-hub Thanks for your comments. There are one another minor comments on your instruction: The numpy 1.24.2 conflicts with other requirements " The user requested numpy==1.24.2 pandas 1.3.5 depends on numpy>=1.17.3; platform_machine != "aarch64" and platform_machine != "arm64" and python_version < "3.10" scikit-learn 1.0.2 depends on numpy>=1.14.6 scipy 1.7.3 depends on numpy<1.23.0 and >=1.16.5 "
Therefor pip-requirement.txt could be like:
keras==2.10.0
numpy
pandas==1.3.5
scikit-learn==1.0.2
scipy==1.7.3
matplotlib==3.6.2
tensorflow-gpu==2.10.1
h5py==3.7.0
My solution for ijcnn19attacks
If I solved your problem, please reply to this issue to let me know.
clone from github
Creating a conda environment
Prerequisites
Code
src/main.py
Modify the code for the main. py header
src/cleverhans_copy/utils_tf.py
Add the following code
src/cleverhans_copy/compat.py
Add the following code
src/cleverhans_copy/attacks.py
Delete the original content in line 215 and replace it with the following
src/cleverhans_copy/utils_keras.py
Add the following code
Modify
def fprop
to the followingsrc/cleverhans_tutorials/tsc_tutorial_keras_tf.py
Cover
tsc_tutorial_keras_tf.py
with the following