Skip to content

ValueError: Layer weight shape (3, 3, 3, 64) not compatible with provided weight shape (64, 3, 3, 3) #39

Open
@chikiuso

Description

@chikiuso

Hi, I got the following message running the command, it seems to be the weight shape problem , any idea on solving it? thanks :

Traceback (most recent call last):
File "/usr/local/bin/make_image_analogy.py", line 27, in
image_analogy.main.main(args, model_class)
File "/usr/local/lib/python2.7/dist-packages/image_analogy/main.py", line 69, in main
net = vgg16.get_model(img_width, img_height, weights_path=args.vgg_weights, pool_mode=args.pool_mode)
File "/usr/local/lib/python2.7/dist-packages/image_analogy/vgg16.py", line 89, in get_model
layer.set_weights(weights)
File "/usr/local/lib/python2.7/dist-packages/keras/engine/topology.py", line 1154, in set_weights
'provided weight shape ' + str(w.shape))
ValueError: Layer weight shape (3, 3, 3, 64) not compatible with provided weight shape (64, 3, 3, 3)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions