Comments (12)
Downgrade keras
to 2.0.8
should solve this problem.
Command line
pip uninstall keras
pip install kears==2.0.8
from keras-fcn.
I get the same error
from keras-fcn.
Same issue:
lr: 0.010000
Epoch 1/250
Traceback (most recent call last):
File "train.py", line 231, in <module>
label_suffix=label_suffix, ignore_label=ignore_label, label_cval=label_cval)
File "train.py", line 163, in train
class_weight=class_weight
File "/home/zarzen/.pyenv/versions/anaconda2-4.4.0/lib/python2.7/site-packages/keras/legacy/interfaces.py", line 87, in wrapper
return func(*args, **kwargs)
File "/home/zarzen/.pyenv/versions/anaconda2-4.4.0/lib/python2.7/site-packages/keras/engine/training.py", line 2046, in fit_generator
generator_output = next(output_generator)
File "/home/zarzen/.pyenv/versions/anaconda2-4.4.0/lib/python2.7/site-packages/keras/utils/data_utils.py", line 518, in get
raise StopIteration(e)
StopIteration
System Env:
Python2 with anaconda4.4.0
Keras (2.0.9)
keras-contrib (2.0.8)
Exception raised from keras/utils/data_utils.py
:
def get(self):
"""Creates a generator to extract data from the queue.
Skip the data if it is `None`.
# Returns
Generator yielding tuples (inputs, targets)
or (inputs, targets, sample_weights)
"""
try:
while self.is_running():
inputs = self.queue.get(block=True).get() # <--------------------------this line
if inputs is not None:
yield inputs
except Exception as e:
self.stop()
raise StopIteration(e)
The result of self.queue.get(block=True)
is an empty tuple
from keras-fcn.
@zarzen I already successfully install keras==2.0.8 , but still have the same problem.
do you know what's the reason ? thank you
from keras-fcn.
@milumilule2 what's your keras-contrib
version?
If you follow the reademe
you will get older version installed.
from keras-fcn.
@zarzen
I downloaded the keras-contrib by running setup.py, my keras-contrib== 2.0.8, too.
My python version is 2.7.12, tensorflow version is 1.3, is the version too old?
so what's your version?
thank you! It's so nice of you!
from keras-fcn.
@milumilule2 I am using tensorflow-1.2.0
with python2
from keras-fcn.
@zarzen I met with this annoying issue and my Env is python3.6. Do I have to change to python2?
from keras-fcn.
@simonsayshi you can have a try. I forgot the reason for choosing python2. But downgrade keras
first.
from keras-fcn.
@zarzen my keras is already downgraded :( that's wired ...
from keras-fcn.
@simonsayshi
How about tensorflow version?
from keras-fcn.
@zarzen my tensorflow version is 1.2.1.. :(
from keras-fcn.
Related Issues (20)
- AttributeError: 'SegDirectoryIterator' object has no attribute 'next' HOT 14
- error when run "python data_pascal_voc.py pascal_voc_setup" HOT 2
- sparse_categorical_crossentropy vs binary_crossentropy_with_logits
- in resize_images_bilinear(X, height_factor, width_factor, target_height, target_width, data_format) TypeError: unsupported operand type(s) for *: 'NoneType' and 'int' HOT 4
- models.py HOT 2
- AttributeError: 'SegDirectoryIterator' object has no attribute 'next' HOT 4
- Comparison of models
- Dataset & start HOT 1
- Strange results from inference.py HOT 1
- reorganized for easier use
- checkpoint_weights.hdf5 ??? HOT 17
- could not read remote repository HOT 1
- I want to use my windows10 Ipython to run my datasets, but it shows an error : UnboundLocalError: local variable 'lr' referenced before assignment HOT 4
- Hello, I also have this problem, I want to train my data set, but the picture of my data set is jpg, the label is png, can I use this data set for training, if I can, I need the program What changes have been made, thank you HOT 1
- Unable to run 'train.py', the program ends directly
- Regarding the upsampling layer HOT 2
- ModuleNotFoundError: No module named 'tf_image_segmentation' HOT 3
- NameError: name 'transform_matrix_offset_center' is not defined HOT 2
- weights
- Inference gives black output
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 keras-fcn.