Coder Social home page Coder Social logo

yigitozgumus / polimi_thesis Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 4.0 88.08 MB

This is the code repository of my master's thesis titled "Adversarially Learned Anomaly Detection using Generative Adversarial Networks"

License: MIT License

Python 3.22% Jupyter Notebook 96.77% Shell 0.01%
generative-adversarial-network deep-learning autoencoder anomaly-detection machine-learning thesis-project adversarial-learning tensorflow novelty-detection adversarial-feature-learning

polimi_thesis's Introduction

Politecnico di Milano - Thesis Repository

This is the code repository of my master's thesis titled "Adversarially Learned Anomaly Detection using Generative Adversarial Networks"

Project Structure

The project and the hierarchy of the files are structured using this Github Project.

Instructions

  • If you don't have the data folder, in the first run model will download and create the dataset.
  • All the experiment configurations and model parameters can be changed from the related config files.
  • To create the same environment used in the project:
conda create --name myenv -f environment.yml
  • To run the model:
python3 run.py -c ./configs/<CONFIG_FILE> -e <EXPERIMENT_NAME> --train
  • To perform tests with the model from a specific experiment
python3 run.py -c ./configs/<CONFIG_FILE> -e <EXPERIMENT_NAME> --test
  • Using the save_generated_images function in the base_train.py you can create gifs from the GAN generations. You should get the generated image with an inference mode and use the function to save to generated folder (or you can rename that folder). Then use the create_gif.py in the scripts folder like this:
python3 create_gif.py -e <EXPERIMENT_NAME> -n <GIF_NAME> -r <TOTAL_IMG>

If you create only 5x5 or 6x6 pictures, use the total number of images for that case

Model Overview

Generation samples of Generator Network

Anomaly detection examples from the dataset

polimi_thesis's People

Contributors

yigitozgumus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.