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

Addition of back-end functionality for Feature-Squeezing #11

Open
mr-sarthakgupta opened this issue Oct 20, 2022 · 0 comments
Open

Addition of back-end functionality for Feature-Squeezing #11

mr-sarthakgupta opened this issue Oct 20, 2022 · 0 comments
Labels
enhancement New feature or request Hard Difficulty Level

Comments

@mr-sarthakgupta
Copy link
Member

Addition of back-end functionality for Feature-Squeezing

Task - Create a new file with a function implementing the Feature-Squeezing technique for detecting whether the uploaded image is adversarially perturbed or not.

Difficulty Level - Hard

Steps to be followed -

  • Create a new file named "detection.py"
  • In the newly created file, add a function named "feature_squeeze" which would take as input an image and would output a boolean value indicating whether the input image is adversarially perturbed. It should be following the framework -
def feature_squeeze():
      model body
      return boolean
  • For creating the "feature_squeeze" function refer to the paper Feature Squeezing: Detecting Adversarial Examples in Deep Neural Networks
  • Create the app-route python decorator for the algorithm in the app.py file.
  • The function should be of the following framework -
@app.route('/cwl2', methods=['GET'])
def cwl2():
    return render_template('cwl2.html')

Resources to be followed -

@mr-sarthakgupta mr-sarthakgupta added enhancement New feature or request Hard Difficulty Level labels Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Hard Difficulty Level
Projects
None yet
Development

No branches or pull requests

1 participant