Traceback (most recent call last):


 "D:/Code/CodePy/ForPycharm/MYTestData/mtyunDLS/testkeras/myvggfinetun/finetunenasnet.py", line 61, in <module>

model = mynasnet.NASNetLarge(input_shape=None, include_top=True, weights='imagenet', input_tensor=None, pooling=None)


 "D:\Code\CodePy\ForPycharm\MYTestData\mtyunDLS\testkeras\myvggfinetun\mynasnet.py", line 362, in NASNetLarge

default_size=331)


 "D:\Code\CodePy\ForPycharm\MYTestData\mtyunDLS\testkeras\myvggfinetun\mynasnet.py", line 289, in NASNet

model.load_weights(weights_file)


 "C:\ProgramData\Anaconda3\lib\site-packages\keras\engine\topology.py", line 2619, in load_weights

load_weights_from_hdf5_group(f, self.layers)


 "C:\ProgramData\Anaconda3\lib\site-packages\keras\engine\topology.py", line 3068, in load_weights_from_hdf5_group

str(len(filtered_layers)) + ' layers.')
ValueError: You are trying to load a weight file containing 533 layers into a model with 527 layers.

Traceback (most recent call last):


 "xxx/python3.7/site-packages/IPython/core/interactiveshell.py", line 3331, in run_code

exec(code_obj, self.user_global_ns, self.user_ns)


 "<ipython-input-2-1f849a21d3d1>", line 10, in <module>

z = x > y


 "xxx/python3.7/site-packages/pint/quantity.py", line 1484, in <lambda>

__gt__ = lambda self, other: self.compare(other, op=operator.gt)


 "xxx/python3.7/site-packages/pint/quantity.py", line 106, in wrapped

result = f(self, *args, **kwargs)


 "xxx/python3.7/site-packages/pint/quantity.py", line 1471, in compare

raise ValueError("Cannot compare Quantity and {}".format(type(other)))
ValueError: Cannot compare Quantity and <class 'pint.quantity.Quantity'>
