GithubHelp home page GithubHelp logo

pramuperera / deeponeclass Goto Github PK

View Code? Open in Web Editor NEW
187.0 187.0 47.0 492 KB

Deep learning based one class classification code targeting one class image classification. Tests carried out on Abnormal image detection, Novel image detection and Active Authentication reported state of the art results.

License: GNU Lesser General Public License v3.0

Python 100.00%

deeponeclass's People

Contributors

pramuperera avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deeponeclass's Issues

Data structure for train my own data

Dear authors,
I want to train a model that can detect if my image is a lottery or not. I'm wondering how my data folder look like? And how I should change config to train my own dataset without imagenet validation?
Thanks for your help!

What the k means about?

Hello, thank you for your work! I met a problem when reading the paper. When the compactness loss is calculated, each sample for the loss function has a dimension of n*k, what the k means about?
Thank you.

distance_layer.py has some problems

I think the implementation of the distance_layer.py has some problem,

the reshape function has some not necessary process, and the code in backward function is not true as in your paper.

Confusion regarding weights in the paper

Regarding these 2 images.

image

image

My understanding is that compactness loss should only be calculated from the target batch. And descriptiveness loss should only be calculated from the reference batch.

Am I correct to understand that the weights reference network and secondary network are identical across all gradient updates?

In other words, for the W in the equation, does that refer to the weights representing the combined weights from the reference network and secondary network, or does that mean the reference network's weights and secondary network's weights are exactly the same set of weights?

If is is the former, then it fine to have 2 network stacks that are being trained from the different loss functions, and their weights will deviate, with the secondary network learning the compactness of the batch, while the reference network being trained to do multi-class classification.

If it is the latter, then I am confused as to how the weights are made identical without freezing entirely both networks.

Normal Object Dataset

Hi, thank you for your fantastic work! I think you did augmentation on the normal object dataset. I couldn't find details in your paper. What augmentations did you do? Could you please share the Normal Object Dataset you use for training/testing after augmentation so that I can get similar results as presented in your paper. Thank you very much.

Questions about Reference Network and Secondary Network while training

Hi,
I have read your paper and I think it is a very good way to combine both compactness and descriptiveness, but I got a little confused about the Reference Network and Secondary Network, you mentioned in your paper in section 3.4 that 'weights between two networks are tied together forcing them to be identical.', does that means the weights of the two networks are identical during training ( for both g(·) and hc(·) )?
Thank you for your time and have a good day!

Question about the dataset

Hi, Thanks for your works.
Do you think the type of reference dataset needs to be similar to the target one? I am implementing Pytorch on my custom dataset (scene dataset), Do I need to find another scene dataset to be the reference? Because Imagenet dataset ( original paper) focuses on the specific object which is similar to the target object (chair)

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.