Git Product home page Git Product logo

zhihu's Issues

Error running on Ubuntu 12.04 with GPU support

Traceback (most recent call last):
File "zhihu.py", line 180, in
state = login()
File "zhihu.py", line 63, in login
data['captcha'] = predict(cropModel,classModel)
File "zhihu.py", line 94, in predict
predictCrop = cropModel.predict_generator(cropGenerator,121)
File "/usr/local/lib/python2.7/dist-packages/Keras-1.1.2-py2.7.egg/keras/models.py", line 981, in predict_generator
pickle_safe=pickle_safe)
File "/usr/local/lib/python2.7/dist-packages/Keras-1.1.2-py2.7.egg/keras/engine/training.py", line 1652, in predict_generator
outs = self.predict_on_batch(x)
File "/usr/local/lib/python2.7/dist-packages/Keras-1.1.2-py2.7.egg/keras/engine/training.py", line 1273, in predict_on_batch
self.internal_input_shapes)
File "/usr/local/lib/python2.7/dist-packages/Keras-1.1.2-py2.7.egg/keras/engine/training.py", line 73, in standardize_input_data
'Found: ' + str(data)[:200] + '...')
Exception: Error when checking : data should be a Numpy array, or list/dict of Numpy arrays. Found: None...

初学者在mac上运行zhihu.py时遇到了一些问题,求大神帮帮忙

Traceback (most recent call last):
File "/Users/druw_shark/PycharmProjects/keras-zhihu-master-ForEasyDeepLeaning/zhihu.py", line 179, in
cropModel = load_model(crop_model)
File "/Library/Python/2.7/site-packages/keras/models.py", line 280, in load_model
model.optimizer.set_weights(optimizer_weight_values)
File "/Library/Python/2.7/site-packages/keras/optimizers.py", line 79, in set_weights
'provided weight shape ' + str(w.shape))
ValueError: Optimizer weight shape (4,) not compatible with provided weight shape (3, 3, 1, 4)

No such file or directory when running on mac

['11.png', '44.png', '73.png', '106.png']
Traceback (most recent call last):
File "zhihu.py", line 180, in
state = login()
File "zhihu.py", line 63, in login
data['captcha'] = predict(cropModel,classModel)
File "zhihu.py", line 121, in predict
temp.save('./tobe_classfied/data/' + each)
File "/Library/Python/2.7/site-packages/PIL/Image.py", line 1659, in save
fp = builtins.open(filename, "wb")
IOError: [Errno 2] No such file or directory: './tobe_classfied/data/11.png'

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.