Giter Site home page Giter Site logo

Comments (4)

rginjapan avatar rginjapan commented on July 23, 2024

Thanks for the commit, but there is a new error:

File "/deterministic-uncertainty-quantification-master/train_duq_fm.py", line 75, in calc_gradient_penalty
gradients = gradients.flatten(start_dim=1)
AttributeError: 'NoneType' object has no attribute 'flatten'

from deterministic-uncertainty-quantification.

rginjapan avatar rginjapan commented on July 23, 2024

Sorry, the aboved mentioned problem happened only when I use CPU to train, forduq_cifar I also train on CPU, there is no problem.

from deterministic-uncertainty-quantification.

rginjapan avatar rginjapan commented on July 23, 2024

Update:
When I use GPU, after the training, Segmentation fault (core dumped) :(I only trianed with sigama={0.05})

NEW MODEL

Validation Results - Epoch: 5 Acc: 0.8962 BCE: 0.06 GP: 0.544238 AUROC MNIST: 0.92 AUROC NotMNIST: 0.95
Sigma: 0.05
Validation Results - Epoch: 10 Acc: 0.9170 BCE: 0.05 GP: 0.532214 AUROC MNIST: 0.94 AUROC NotMNIST: 0.95
Sigma: 0.05
Validation Results - Epoch: 15 Acc: 0.9232 BCE: 0.04 GP: 0.498158 AUROC MNIST: 0.94 AUROC NotMNIST: 0.96
Sigma: 0.05
Validation Results - Epoch: 20 Acc: 0.9234 BCE: 0.04 GP: 0.489612 AUROC MNIST: 0.93 AUROC NotMNIST: 0.96
Sigma: 0.05
Validation Results - Epoch: 25 Acc: 0.9240 BCE: 0.04 GP: 0.499154 AUROC MNIST: 0.93 AUROC NotMNIST: 0.96
Sigma: 0.05
Validation Results - Epoch: 30 Acc: 0.9234 BCE: 0.04 GP: 0.505931 AUROC MNIST: 0.93 AUROC NotMNIST: 0.95
Sigma: 0.05
[(0.9234, 0.0), (0.9218, 0.0), (0.930930225, 0.0), (0.9545501361888487, 0.0)]
{'lgp0.0_ls0.05': [(0.9234, 0.0), (0.9218, 0.0), (0.930930225, 0.0), (0.9545501361888487, 0.0)]}
Segmentation fault (core dumped)

from deterministic-uncertainty-quantification.

y0ast avatar y0ast commented on July 23, 2024
  1. Yes, the code only supports running with a GPU.
  2. I cannot reproduce your second problem. Perhaps you run out of memory? Try a batch size smaller than 500 in utils/evaluate_ood.py.

from deterministic-uncertainty-quantification.

Related Issues (11)

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.