Giter VIP home page Giter VIP logo

Comments (10)

bgroenks96 avatar bgroenks96 commented on July 26, 2024 1

It very well might be a bug in what was a very early version of Keras. I would highly recommend upgrading.

I've already gone through the pain of doing so for you, actually. I have a branch in my fork that includes only the Keras upgrade and none of my later modifications.

Correction: It does include a few of my modifications, but nothing terribly significant.

from gruv.

vgcapizzi avatar vgcapizzi commented on July 26, 2024

Thanks for the help! So what version of keras should I be using?

Cause when I revised those three programs using your code I get this error now.

Traceback (most recent call last):
File "C:\Python27\GRUV-master\train.py", line 5, in
import nn_utils.network_utils as network_utils
File "C:\Python27\GRUV-master\nn_utils\network_utils.py", line 2, in
from keras.layers import TimeDistributed, Dense, LSTM, GRU
ImportError: cannot import name TimeDistributed

I was under the impression that these methods were only used in versions of keras later than 0.1.0. Just let me know what you think of this. Thanks again bgroenks96

from gruv.

bgroenks96 avatar bgroenks96 commented on July 26, 2024

If you use my updated code, you should have the latest version of Keras available from pip installed.

from gruv.

vgcapizzi avatar vgcapizzi commented on July 26, 2024

When using your code with the latest version of keras installed which is 2.1.3 I get this new error.

usage: train.py [-h] [-e EPOCHS] [-b BATCH] current_iteration num_iterations
train.py: error: too few arguments

Any Ideas?

from gruv.

bgroenks96 avatar bgroenks96 commented on July 26, 2024

One of the other changes I made early on was adding a command line interface. That earlier version requires you to supply the current iteration you want to start on and the number of iterations to perform.

So to run 10 iterations starting at iteration 0: python train.py 0 10

You're free to remove that and just use hardcoded values instead, of course.

from gruv.

bgroenks96 avatar bgroenks96 commented on July 26, 2024

I recommend that you review the total diff between that branch and the original GRUV code to get a better understanding of what changed and what you might want to change yourself.

from gruv.

vgcapizzi avatar vgcapizzi commented on July 26, 2024

I feel so stupid I didnt realize you provided an interface. The original program had 50 iterations hardcoded in. Ill try that out tonight it may already be working and I was just being dumb.

from gruv.

vgcapizzi avatar vgcapizzi commented on July 26, 2024

I was able to get a successful run after I added two empty files in the datasets folder. The way your code worked I needed a folder called gen and one called train to properly parse the file paths. Now all I got to do is get theano to use my gpu instead of my cpu and I will be good for another training session. Thanks again.

from gruv.

bgroenks96 avatar bgroenks96 commented on July 26, 2024

I would recommend that you use the TensorFlow backend. I went down the rabbit hole of trying to get Theano to use my GPU, and it never worked. TensorFlow worked pretty much out of the box.

from gruv.

vgcapizzi avatar vgcapizzi commented on July 26, 2024

Damn I wish I looked at this comment a couple hours ago. I have literally spent this entire time trying to get Theano to work on my GPU to no avail lol. Im going to switch to anaconda using python35 so I can use TensorFlow cause stopped supporting TensorFlow for python27.

from gruv.

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.