Giter Club home page Giter Club logo

osraae's Introduction

OSRAAE

Open-set Recognition with Adversarial Autoencoders

A deep learning approach to solving the problem of open-set recognition, by leveraging an encoder-decoder network architecture in conjunction with a multi-class classifier. The network enables learning a novelty detector that computes the probability of a sample to belong to one of the known classes versus being unknown. If known, the multi-class classifiers assigns the class label to the sample.

osraae's People

Contributors

ralmohsen 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

Watchers

 avatar  avatar

osraae's Issues

ValueError: Target and input must have the same number of elements. target nelement (128) != input nelement (98)

Hi Ralmohsen,
When i run train_AAE.py, without change original source code, there have a isse like this:

Running on GeForce RTX 2080 Ti Train set size: 33800 /home/jason/.local/lib/python3.6/site-packages/torch/nn/functional.py:1386: UserWarning: nn.functional.sigmoid is deprecated. Use torch.sigmoid instead. warnings.warn("nn.functional.sigmoid is deprecated. Use torch.sigmoid instead.") /home/jason/.local/lib/python3.6/site-packages/torch/nn/modules/loss.py:512: UserWarning: Using a target size (torch.Size([128])) that is different to the input size (torch.Size([98])) is deprecated. Please ensure they have the same size. return F.binary_cross_entropy(input, target, weight=self.weight, reduction=self.reduction) Traceback (most recent call last): File "train_AAE.py", line 324, in <module> main(0, 0) File "train_AAE.py", line 211, in main D_real_loss = BCE_loss(D_result, y_real_) File "/home/jason/.local/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in __call__ result = self.forward(*input, **kwargs) File "/home/jason/.local/lib/python3.6/site-packages/torch/nn/modules/loss.py", line 512, in forward return F.binary_cross_entropy(input, target, weight=self.weight, reduction=self.reduction) File "/home/jason/.local/lib/python3.6/site-packages/torch/nn/functional.py", line 2106, in binary_cross_entropy "!= input nelement ({})".format(target.numel(), input.numel())) ValueError: Target and input must have the same number of elements. target nelement (128) != input nelement (98)
How i can fix it?

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.