Skip to content

AlexTsai1618/Purple_model

Repository files navigation

Purple_model

Introduction

This is a web application for image processing. It is based on Flask and Celery. The backend is written in Python and the frontend is written in Next.js.

The main goal of this project is to demonstrate the model poisoning attack and defense. The attack is based on the paper . The defense is based on the paper Defending Against Model Poisoning Attacks.

Build with

  • Flask
  • Next.js
  • Celery

How to use

  1. Install the required packages
pip install pipenv
pipenv install
  1. Run the virtual environment
pipenv shell
  1. Run celery
cd web/backend
celery -A app.celery worker --loglevel=info
  1. Run the web
python3 ./web/backend/app.py
  1. Run the frontend (http://localhost:3000)
cd web/frontend
npm run dev

How to install extra packages

pipenv install <package_name>

Todo:

Web

  • original image preview
  • progress bar (discuss)
  • Pipline intergration (attack)
  • Pipline intergration (defense)
  • Pipline celery get task.info
  • backend send image to frontend

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors