Giter Club home page Giter Club logo

Comments (11)

tarriel avatar tarriel commented on July 22, 2024

I had to go
sudo pip install -U flask
sudo pip install -U flask-cors
sudo pip install -U future

now I have the error

Using Theano backend.
Traceback (most recent call last):
  File "run_demo.py", line 8, in <module>
    from betago.dataloader.processor import SevenPlaneProcessor
ImportError: No module named processor

from betago.

heiguo avatar heiguo commented on July 22, 2024

@tarriel I edited run_demo.py, changed 'from betago.dataloader.processor' into 'from betago.processor'

now the error is:

Using Theano backend.  
Traceback (most recent call last):  
  File "run_demo.py", line 18, in <module>
    model = model_from_yaml(yaml.dump(yml))
  File "/Library/Python/2.7/site-packages/keras/models.py", line 19, in model_from_yaml
    return layer_from_config(config, custom_objects=custom_objects)
  File "/Library/Python/2.7/site-packages/keras/utils/layer_utils.py", line 24, in layer_from_config
    class_name = config['class_name']
KeyError: 'class_name'

from betago.

maxpumperla avatar maxpumperla commented on July 22, 2024

Thanks for the feedback, working on it right now.

@cuongduc I'll have to add flask and friends to dependencies, maybe get rid of CORS after all

@tarriel yes, @heiguo is right, I moved processor one submodule up. I will quickly fix this.

@heiguo thank you for this. The reason for this is that I created the model zoo with Keras 0.3 and suggest to use 1.0 now. There seems to be a backward incompatibility in serialization. Let me see if I can quickly port this and get back to you.

from betago.

maxpumperla avatar maxpumperla commented on July 22, 2024

@cuongduc @tarriel @heiguo I think I fixed your issues, it's on master. Can anyone confirm it's running now?

git pull
python setup.py install
python run_demo.py

In that case I make a new release.

from betago.

maxpumperla avatar maxpumperla commented on July 22, 2024

OK guys, I found the time to fix the issue, test them on another machine and made a new release, 0.1.
I hope this works for you and I'm really glad you reported these issues.

from betago.

cuongduc avatar cuongduc commented on July 22, 2024

@maxpumperla Hi, I've pulled the latest release. The flask error has gone, but now I've got:

Using Theano backend.
Traceback (most recent call last):
  File "run_demo.py", line 6, in <module>
    from keras.models import model_from_yaml
  File "/usr/local/lib/python2.7/dist-packages/keras/models.py", line 5, in <module>
    from . import backend as K
  File "/usr/local/lib/python2.7/dist-packages/keras/backend/__init__.py", line 51, in <module>
    from .theano_backend import *
  File "/usr/local/lib/python2.7/dist-packages/keras/backend/theano_backend.py", line 4, in <module>
    from theano.tensor.signal import pool
ImportError: cannot import name pool

I hope it will be fixed soon.
Thanks for interesting repo on Go :-)

from betago.

maxpumperla avatar maxpumperla commented on July 22, 2024

Thanks @cuongduc, what you posted looks like a Theano error. I do not use theano.tensor.signal.pool anywhere directly and I can't reproduce your error right now.

Did you install theano from master, as explained in http://deeplearning.net/software/theano/install.html#install?

pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git

from betago.

heiguo avatar heiguo commented on July 22, 2024

@maxpumperla thx. ok to run now.

from betago.

maxpumperla avatar maxpumperla commented on July 22, 2024

@cuongduc @tarriel any feedback, guys? Are we good?

from betago.

maxpumperla avatar maxpumperla commented on July 22, 2024

Guys, I'd propose to close this issue. If something comes up, just reopen it again. Thanks.

from betago.

rocketinventor avatar rocketinventor commented on July 22, 2024

I followed all instructions, installing from Main. Error, still:

Using Theano backend. Traceback (most recent call last): File "run_demo.py", line 7, in <module> from betago.model import HTTPFrontend, KerasBot File "/home/ubuntu/workspace/betago/betago/model.py", line 7, in <module> from flask.ext.cors import CORS File "/home/ubuntu/workspace/.betago/local/lib/python2.7/site-packages/flask/exthook.py", line 87, in load_module raise ImportError('No module named %s' % fullname) ImportError: No module named flask.ext.cors

from betago.

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.