Giter Site home page Giter Site logo

Comments (11)

ubershmekel avatar ubershmekel commented on July 23, 2024 5

I didn't solve the bug in Tensorflow. But I did notice it was only occurring in a degenerate scenario. E.g. if the matrix had no rows, no columns, no shape. If I sent in an empty iterator. I didn't debug exactly to figure out what. Just make sure whatever you're feeding into keras or tf isn't empty.

from densenet-keras.

flyyufelix avatar flyyufelix commented on July 23, 2024

What version of tensorflow are you using? We currently only supports 0.12.0. Will add support to the latest 1.0 version soon.

from densenet-keras.

petteriTeikari avatar petteriTeikari commented on July 23, 2024

Aah, explaining factor then. Yes I switched to the latest 1.xx version already @flyyufelix

from densenet-keras.

lef-fan avatar lef-fan commented on July 23, 2024

Hello,
Check flyyufelix/cnn_finetune#2 or my repo here for an update to Keras 2.0.3 and Tensorflow 1.1.0

from densenet-keras.

flyyufelix avatar flyyufelix commented on July 23, 2024

Apologize for the delay @petteriTeikari . I've already made the necessary changes to get the code to work with the latest versions of Keras (2.0.5) and TensorFlow (1.2.1)

from densenet-keras.

KanuGT avatar KanuGT commented on July 23, 2024

hey @flyyufelix I am getting the same issue on tensorflow backend
On theano, it is
AttributeError: 'TensorConstant' object has no attribute 'set_value'

my keras version is 2.0.4
tf : 1.2.1
th: 0.9.0

from densenet-keras.

flyyufelix avatar flyyufelix commented on July 23, 2024

Oh yes, I forgot to erase a line in custom_layers.py which caused the error above. It should work now!

from densenet-keras.

chhayac avatar chhayac commented on July 23, 2024

Hey @flyyufelix, I am getting the below error:
AttributeError: 'Tensor' object has no attribute 'assign' for
generator.fit( noise_input, target_ohe, batch_size=batch_size, epochs = pre_generator_rounds, validation_split=0.1 ) line.
I am using tensorflow version '1.4.1'. Could you please help or provide your views for resolving the error.

from densenet-keras.

ubershmekel avatar ubershmekel commented on July 23, 2024

@chhayac I had this error when my data was accidentally empty :(

Traceback (most recent call last):
  File "script.py", line 187, in <module>
    callbacks=[])
  File "/anaconda3/lib/python3.6/site-packages/keras/legacy/interfaces.py", line 91, in wrapper
    return func(*args, **kwargs)
  File "/anaconda3/lib/python3.6/site-packages/keras/engine/training.py", line 1415, in fit_generator
    initial_epoch=initial_epoch)
  File "/anaconda3/lib/python3.6/site-packages/keras/engine/training_generator.py", line 39, in fit_generator
    model._make_train_function()
  File "/anaconda3/lib/python3.6/site-packages/keras/engine/training.py", line 498, in _make_train_function
    loss=self.total_loss)
  File "/anaconda3/lib/python3.6/site-packages/keras/legacy/interfaces.py", line 91, in wrapper
    return func(*args, **kwargs)
  File "/anaconda3/lib/python3.6/site-packages/keras/optimizers.py", line 197, in get_updates
    self.updates.append(K.update(m, v))
  File "/anaconda3/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 971, in update
    return tf.assign(x, new_x)
  File "/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/state_ops.py", line 217, in assign
    return ref.assign(value, name=name)
AttributeError: 'Tensor' object has no attribute 'assign'

from densenet-keras.

Colmmm avatar Colmmm commented on July 23, 2024

@ubershmekel did you manage to sort this out? I'm having the same problem : , (

from densenet-keras.

GuillaumeMougeot avatar GuillaumeMougeot commented on July 23, 2024

@ubershmekel Thanks! I had the same issue and you were right: this error occurs in a degenerate scenario, in my case I controlled the number of filter in a layer through a variable that was null at a moment.

from densenet-keras.

Related Issues (20)

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.