bmi-project
bmi-project copied to clipboard
ValueError: Cannot assign to variable conv3_block1_0_conv/kernel:0 due to variable shape (1, 1, 256, 512) and value shape (512, 128, 1, 1) are incompatible,with h5py==2.10.0
after load the trained weights 'bmi_model_weights.h5', it return ValueError: Cannot assign to variable conv3_block1_0_conv/kernel:0 due to variable shape (1, 1, 256, 512) and value shape (512, 128, 1, 1) are incompatible, i tried to change the data_fromat but it did not use
after load the trained weights 'bmi_model_weights.h5', it return ValueError: Cannot assign to variable conv3_block1_0_conv/kernel:0 due to variable shape (1, 1, 256, 512) and value shape (512, 128, 1, 1) are incompatible, i tried to change the data_fromat but it did not use
after load the trained weights 'bmi_model_weights.h5', it return ValueError: Cannot assign to variable conv3_block1_0_conv/kernel:0 due to variable shape (1, 1, 256, 512) and value shape (512, 128, 1, 1) are incompatible, i tried to change the data_fromat but it did not use
I have the same issue.. do you have any solution for this?
Same, please help :)
help please!!!
Since there's quite a couple of people having this issue:
model.load_weights(weight_file,by_name=True)
This allows loading the model. Found in https://github.com/yu4u/age-gender-estimation/issues/140
Since there's quite a couple of people having this issue:
model.load_weights(weight_file,by_name=True)
This allows loading the model. Found in yu4u/age-gender-estimation#140
I tried this solution and it runs, but the predicted BMI is single digit or even negative sometimes.
model.load_weights(weight_file,by_name=True) it works for me.
Since there's quite a couple of people having this issue:
model.load_weights(weight_file,by_name=True)
This allows loading the model. Found in yu4u/age-gender-estimation#140I tried this solution and it runs, but the predicted BMI is single digit or even negative sometimes.
I
I am also getting negative bmi , how to resolve this please help @Learneruestc @noovil