GithubHelp home page GithubHelp logo

popastefan10 / deepad Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 28.06 MB

A PyTorch implementation of the paper https://arxiv.org/abs/1811.06861. It presents a reconstruction-based approach to anomaly detection with focus on surface defects.

Jupyter Notebook 99.21% Python 0.79%
anomaly-detection computer-vision deep-learning pytorch

deepad's Introduction

DeepAD

A PyTorch implementation of "Anomaly Detection using Deep Learning based Image Completion". This paper was published at the 17th IEEE International Conference on Machine Learning and Applications (ICMLA). You can find it on arXiv.

Run locally

First step is to install the dependencies. On my machine I have used a conda environment, but the project can be run with venv or without any environment at all.

# Use only one option from below

# Install packages within a Conda environment
$ conda create -n deep-ad -f environment.yml

# Install packages within a virtual environment
$ pip install virtualenv
$ virtualenv deep-ad
$ source deep-ad/bin/activate
(deep-ad) $ pip install -r requirements.txt

# Install packages globally (not recommended)
$ pip install -r requirements.txt

In order to be able to use modules from src/deep_ad inside notebooks we need to install the project. For development purposes use --editable/-e.

python -m pip install .
# OR
python -m pip install -e .

Required packages were added to environment.yml and requirements.txt files with these commands:

conda env export --from-history | findstr /v "^prefix" > environment.yml
pip list --format=freeze > requirements.txt

The findstr function is a Windows equivalent for grep, so on Linux use this instead:

conda env export --from-history | grep -v "^prefix" > environment.yml

Environment file

The minimum required keys inside the .env are the following:

running_env=HOME
# In this directory you should have at least the raw DAGM dataset
dagm_dir="C:\\path-to-datasets-directory"

deepad's People

Contributors

popastefan10 avatar

Watchers

Kostas Georgiou 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.