项目作者: patharanordev

项目描述 :
Custom DeepSVDD for One-Class Classification(OCC) in Machine Learning (Ref. Deep OCC ICML 2018 paper)
高级语言: Python
项目地址: git://github.com/patharanordev/ml-occ-deepsvdd.git
创建时间: 2021-01-24T03:34:38Z
项目社区:https://github.com/patharanordev/ml-occ-deepsvdd

开源协议:MIT License

下载


Custom DeepSVDD for Image Classification

Custom Deep Support Vector Data Description(or DeepSVDD) for One-Class Classification(OCC) in Machine Learning (Ref. Deep OCC ICML 2018 paper).

This repository forked from lukasruff repository, I modified it to allow user to custom dataset.

Preparing Dataset

  • Adding train list in train.csv in ./data/custom/ directory.
  • Adding train list in test.csv in ./data/custom/ directory.
  • Adding your image dataset to ./data/custom/ directory.

After prepared your dataset, let’s try it via my notebook.

Local Usage

Preparing Environment

  1. $ python3 -m venv env
  2. $ source env/bin/activate
  3. $ pip3 install -r requirements.txt

Example

train.csv

  1. path,label
  2. normal/1.png,0
  3. abnormal/2.png,1
  4. ...

test.csv

  1. path,label
  2. test/3.png,0
  3. test/4.png,1
  4. ...

Train Data

  1. $ sh run-custom.sh