Comments (11)
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.
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.
Aah, explaining factor then. Yes I switched to the latest 1.xx version already @flyyufelix
from densenet-keras.
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.
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.
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.
Oh yes, I forgot to erase a line in custom_layers.py which caused the error above. It should work now!
from densenet-keras.
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.
@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.
@ubershmekel did you manage to sort this out? I'm having the same problem : , (
from densenet-keras.
@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)
- face recognition HOT 1
- will you provide no top architecture of the densenet with the pre-trained weigths?
- Training own model HOT 1
- Regarding scale HOT 1
- Is there a pre-train module for CIFAR100 on keras?
- AssertionError: AbstractConv shape mismatch: shape of filters does not match given kshp. HOT 3
- RGB or BGR? HOT 2
- Step by step implementation of code
- TypeError: 'module' object is not callable HOT 9
- Code is using growth_rate instead of nb_filter HOT 1
- DocUNet
- Bounding box of predicted class HOT 1
- TypeError: 'module' object is not callable HOT 2
- Pretrained model
- Pretrained DenseNet Models HOT 1
- Scale layer vs BatchNormalization in Keras v2 HOT 4
- about the pre-train weight HOT 15
- Preprocessing for finetuning the models
- Not working with keras 2.0.5 and tf 1.2.1 HOT 1
- Why the 'bias' is set to False? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from densenet-keras.