Coder Social home page Coder Social logo

Comments (5)

abbypa avatar abbypa commented on August 22, 2024

Are you using the Keras version written in the readme file?
Previous errors regarding the 'Graph' object were fixed by using the correct version.

from nnproject_deepmask.

slavakurilyak avatar slavakurilyak commented on August 22, 2024

Yes, I'm using Keras 0.3.1

$ pip show keras
---
Metadata-Version: 2.0
Name: Keras
Version: 0.3.1
Summary: Theano-based Deep Learning library
Home-page: https://github.com/fchollet/keras
Author: Francois Chollet
Author-email: [email protected]
Installer: pip
License: MIT
Location: /usr/local/lib/python2.7/site-packages
Requires: theano, pyyaml, six
Classifiers:

from nnproject_deepmask.

abbypa avatar abbypa commented on August 22, 2024

Seems like the weights file you provided is illegal.
Did you download and convert graph weights with HeplerScripts/CreateVggGraphWeights.py?

from nnproject_deepmask.

slavakurilyak avatar slavakurilyak commented on August 22, 2024

I re-downloaded the net and got another error:

$ python EndToEnd.py
Using Theano backend.
/usr/local/lib/python2.7/site-packages/theano/tensor/signal/downsample.py:6: UserWarning: downsample module has been moved to the theano.tensor.signal.pool module.
  "downsample module has been moved to the theano.tensor.signal.pool module.")
2016-10-19 15:08:45.333989: loading net...
2016-10-19 15:08:48.983922: compiling net...
2016-10-19 15:09:02.794350: preparing data...
Traceback (most recent call last):
  File "EndToEnd.py", line 208, in <module>
    main()
  File "EndToEnd.py", line 178, in main
    train_images, train_expected_scores, train_expected_masks = prepare_data(train_images_path)
  File "EndToEnd.py", line 136, in prepare_data
    images = prepare_local_images(ex_paths)
  File "/Users/skurilyak/Documents/dev/testing/abbypa/NNProject_DeepMask/ImageUtils.py", line 10, in prepare_local_images
    return np.stack(prepared_imgs)
  File "/usr/local/lib/python2.7/site-packages/numpy/core/shape_base.py", line 335, in stack
    raise ValueError('need at least one array to stack')
ValueError: need at least one array to stack

Any ideas?

from nnproject_deepmask.

abbypa avatar abbypa commented on August 22, 2024

Did you create the learning dataset using ExamplesGenerator.py?

from nnproject_deepmask.

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.