Giter Club home page Giter Club logo

loki's People

Contributors

dependabot[bot] avatar elhusseiniali avatar gabriel-faivre avatar michaelres avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

amelieled

loki's Issues

Switch from os.path.join to Pathlib

e.g.:

image_path = os.path.join(current_app.root_path,
                                           'static/' + path,
                                           image_fn)

would become

root_path = Path(current_app.root_path)
image_path = Path(root_path, 'static/', path, image_fn)

visualize_attack and predict form validation is late for image uploads

What is meant here is that if a user uploads something (by upload, we don't mean that it's stored in the server; it's just stored in the session) that is not accepted, it only throws an error after the submit button is pressed. Ideally, we want the error to be thrown as soon as the upload happens. This can be fixed by creating forms of forms: visualize_attack and predict forms would just need to use some UploadImageForm, then check that this validated properly, and then move on to the rest of the form with some logical AND of validations.

Rename CSS classes.

We need to rename the classes used in visualize_attack.html. image_preview__image is completely unacceptable as a name. We need to use more meaningful, user-friendly names.

Add offset to user_models in ClassifierField.

Without this, this could potentially cause bugs. Just offset user models starting with len(pretrained_models) + 1 so we never have a clash with model.id and the given ID in the selector.

visualize_attack and predict break with PNG images.

Sometimes the classifier even throws some exception. For now, we can only take JPG/JPEG images. This has to be addressed soon. One possible idea is to create a PIL image, and then use transforms.ToTensor().

Restructure forms.

The point here is to improve the design used in forms.py: WTForms allows us to inherit other forms (FormField), which means that we can use the same ModelSelectForm, AttackSelectForm, etc... across different forms (prediction, attack visualization, model assessment...).

Login/registration tests broken.

Login and registration tests seem to be broken: I think the login and register functions defined in the Helper class are not working properly (after a quick debug session, the form.validate_on_submit() clause was not being executed). Most likely this has to do with how WTForms and Bootstrap play together. Ultimately the tests aren't too important, because of how simple the functions are. I would like to have them only for the sake of completion (tests for correct and incorrect login/registration).

Rename FRS to Classifier.

There's no part in the logic used in the code that restricts us to facial recognition systems. This is just about nomenclature. Some routes and tests need to be changed to accommodate this rename.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.