Skip to content

Is the weight file wrong? #4

@NiFangBaAGe

Description

@NiFangBaAGe

Hi,

I am very interested in SPAN. However, I find something wrong when I try to run it.

Traceback (most recent call last):
File "evaluator.py", line 39, in
model.load_weights(weight_file)
File "/home/ipprlab/anaconda3/envs/py3/lib/python3.6/site-packages/keras/engine/network.py", line 1166, in load_weights
f, self.layers, reshape=reshape)
File "/home/ipprlab/anaconda3/envs/py3/lib/python3.6/site-packages/keras/engine/saving.py", line 1030, in load_weights_from_hdf5_group
str(len(filtered_layers)) + ' layers.')
ValueError: You are trying to load a weight file containing 1 layers into a model with 12 layers.

Is the weight file wrong?

Thanks.

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