GithubHelp home page GithubHelp logo

mrtnmndt / deep_openset_recognition_through_uncertainty Goto Github PK

View Code? Open in Web Editor NEW
87.0 87.0 19.0 786 KB

PyTorch code for our paper: Open Set Recognition Through Deep Neural Network Uncertainty: Does Out-of-Distribution Detection Require Generative Classifiers? https://arxiv.org/abs/1908.09625

License: MIT License

Python 100.00%

deep_openset_recognition_through_uncertainty's People

Contributors

mrtnmndt 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

deep_openset_recognition_through_uncertainty's Issues

about multi GPU to train the entire model

When I try to use several GPUs to train the whole model, the output_sample's shape turn to [GPU's nums, batch_size/GPU's nums, class_num]
I wonder why the model's output has changed?

ImportError: dlopen: cannot load any more object with static TLS

It seems that the main problem is the use of librosa and pytorch, I can't use both libraries at the same time, even if just executing the imports of main.py and datasets.py in order.

bishe@hulk:~/kunning/DORtU$ python main.py
Traceback (most recent call last):
  File "/home/bishe/anaconda3/lib/python3.6/site-packages/sklearn/__check_build/__init__.py", line 44, in <module>
    from ._check_build import check_build  # noqa
ImportError: dlopen: cannot load any more object with static TLS

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 18, in <module>
    import lib.Datasets.datasets as datasets
  File "/home/bishe/kunning/DORtU/lib/Datasets/datasets.py", line 6, in <module>
    import librosa
  File "/home/bishe/anaconda3/lib/python3.6/site-packages/librosa/__init__.py", line 14, in <module>
    from . import decompose
  File "/home/bishe/anaconda3/lib/python3.6/site-packages/librosa/decompose.py", line 19, in <module>
    import sklearn.decomposition
  File "/home/bishe/anaconda3/lib/python3.6/site-packages/sklearn/__init__.py", line 81, in <module>
    from . import __check_build  # noqa: F401
  File "/home/bishe/anaconda3/lib/python3.6/site-packages/sklearn/__check_build/__init__.py", line 46, in <module>
    raise_build_error(e)
  File "/home/bishe/anaconda3/lib/python3.6/site-packages/sklearn/__check_build/__init__.py", line 41, in raise_build_error
    %s""" % (e, local_dir, ''.join(dir_content).strip(), msg))
ImportError: dlopen: cannot load any more object with static TLS
___________________________________________________________________________
Contents of /home/bishe/anaconda3/lib/python3.6/site-packages/sklearn/__check_build:
__init__.py               setup.py                  _check_build.cpython-36m-x86_64-linux-gnu.so
__pycache__
___________________________________________________________________________
It seems that scikit-learn has not been built correctly.

If you have installed scikit-learn from source, please do not forget
to build the package before using it: run `python setup.py install` or
`make` in the source directory.

If you have used an installer, please check that it is suited for your
Python version, your operating system and your platform.

Question

Hi,

I have gone through your code and I have small question about the dataset.

I don't see any normalization term in the case of datasets like CIFAR100,CIFAR 10 ..etc.

Just curious to know weather if it makes difference or not? or Is there any specific reason for skipping 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.