Traceback (most recent call last):


 "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 272, in _async_add_entity

device_info = entity.device_info


 "/usr/local/lib/python3.6/site-packages/homeassistant/components/zha/entities/entity.py", line 103, in device_info

'name': self._device_state_attributes['friendly_name'],
KeyError: 'friendly_name'

Traceback (most recent call last):


 "test.py", line 21, in <module>

model = create_model(opt)


 "/home/env114/Downloads/DeblurGAN-master/models/models.py", line 11, in create_model

model.initialize(opt)


 "/home/env114/Downloads/DeblurGAN-master/models/test_model.py", line 21, in initialize

self.load_network(self.netG, 'G', which_epoch)


 "/home/env114/Downloads/DeblurGAN-master/models/base_model.py", line 53, in load_network

network.load_state_dict(torch.load(save_path))


 "/usr/local/lib/python2.7/dist-packages/torch/nn/modules/module.py", line 331, in load_state_dict

.format(name))
KeyError: 'unexpected key "model.0.weight" in state_dict'
