Git Product home page Git Product logo

Comments (5)

snf avatar snf commented on July 21, 2024

Can you paste the exact command line on how are you running it?.
I ran it with Theano and Keras versions from python repository (it was Keras 1.0.6 and Theano 0.8.2 iirc).
I don't think Keras has anything to do with it so it must be something in Theano.

from keras-fractalnet.

keskarnitish avatar keskarnitish commented on July 21, 2024

Nothing fancy. I'm just running python cifar10_fractal.py in the src directory.

Here's the verbose=1 printout after a few iterations with the default setup:

Using Theano backend.
(50000, 3, 32, 32)
Training network
Train on 50000 samples, validate on 10000 samples
Epoch 1/400
 5200/50000 [==>...........................] - ETA: 485s - loss: nan - acc: 0.1012

from keras-fractalnet.

snf avatar snf commented on July 21, 2024

Ok, I'm able to reproduce the loss=nan issue in my laptop (my desktop is doing other stuff). It seems to be something about the theano_multinomial function because if I change it to a static array the bug goes away. The fastest solution is changing the method to something else, the best solution is trying to figure out when Theano introduced this bug.

I checked the multinomial funcion isolated and it's working in my tests so it can be something about guards or optimizations.

@keskarnitish if you want to run the code now you may want to check with the stable versions of Keras and Theano or try writing another method to replace that functionality.

The libraries I used to reproduce the bug:

Theano: Theano/Theano@74c0233
Keras: 1.0.7
Cuda: 7.5-18
CUDNN: Not available

And the config files for keras and theano:

keras.json:

{
    "image_dim_ordering": "th", 
    "epsilon": 1e-07, 
    "floatx": "float32", 
    "backend": "theano"
}

.theano.rc:

[global]
device = gpu
floatX = float32

[lib]
cnmem = 1

[dnn.conv]
algo_fwd = time_on_shape_change
algo_bwd_filter = time_on_shape_change
algo_bwd_data = time_on_shape_change

from keras-fractalnet.

snf avatar snf commented on July 21, 2024

I'm running other tests with THEANO_FLAGS="mode=DebugMode" and THEANO_FLAGS="mode=NanGuardMode" to try to figure out what's going on.

from keras-fractalnet.

snf avatar snf commented on July 21, 2024

Closing as this was fixed in later version of Theano.

from keras-fractalnet.

Related Issues (5)

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.