zhihu icon indicating copy to clipboard operation
zhihu copied to clipboard

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

Open RayShark opened this issue 8 years ago • 0 comments

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)

RayShark avatar May 05 '17 15:05 RayShark