Giter Site home page Giter Site logo

Comments (12)

zarzen avatar zarzen commented on July 22, 2024 2

Downgrade keras to 2.0.8 should solve this problem.
Command line

pip uninstall keras
pip install kears==2.0.8

from keras-fcn.

xvlvzhu avatar xvlvzhu commented on July 22, 2024

I get the same error

from keras-fcn.

zarzen avatar zarzen commented on July 22, 2024

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.

milumilule2 avatar milumilule2 commented on July 22, 2024

@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.

zarzen avatar zarzen commented on July 22, 2024

@milumilule2 what's your keras-contrib version?
If you follow the reademe you will get older version installed.

from keras-fcn.

milumilule2 avatar milumilule2 commented on July 22, 2024

@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.

zarzen avatar zarzen commented on July 22, 2024

@milumilule2 I am using tensorflow-1.2.0 with python2

from keras-fcn.

simonsayshi avatar simonsayshi commented on July 22, 2024

@zarzen I met with this annoying issue and my Env is python3.6. Do I have to change to python2?

from keras-fcn.

zarzen avatar zarzen commented on July 22, 2024

@simonsayshi you can have a try. I forgot the reason for choosing python2. But downgrade keras first.

from keras-fcn.

simonsayshi avatar simonsayshi commented on July 22, 2024

@zarzen my keras is already downgraded :( that's wired ...

from keras-fcn.

zarzen avatar zarzen commented on July 22, 2024

@simonsayshi
How about tensorflow version?

from keras-fcn.

simonsayshi avatar simonsayshi commented on July 22, 2024

@zarzen my tensorflow version is 1.2.1.. :(

from keras-fcn.

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.