Traceback (most recent call last):


 "createPod.py", line 17, in <module>

rtn = v1.create_namespaced_pod(body = yamlVal, namespace = "default")


 "/usr/local/python3/lib/python3.7/site-packages/kubernetes/client/api/core_v1_api.py", line 7320, in create_namespaced_pod

return self.create_namespaced_pod_with_http_info(namespace, body, **kwargs)
# noqa: E501


 "/usr/local/python3/lib/python3.7/site-packages/kubernetes/client/api/core_v1_api.py", line 7429, in create_namespaced_pod_with_http_info

collection_formats=collection_formats)


 "/usr/local/python3/lib/python3.7/site-packages/kubernetes/client/api_client.py", line 353, in call_api

_preload_content, _request_timeout, _host)


 "/usr/local/python3/lib/python3.7/site-packages/kubernetes/client/api_client.py", line 170, in __call_api

body = self.sanitize_for_serialization(body)


 "/usr/local/python3/lib/python3.7/site-packages/kubernetes/client/api_client.py", line 238, in sanitize_for_serialization

for attr, _ in six.iteritems(obj.openapi_types)
AttributeError: 'generator' object has no attribute 'openapi_types'

Traceback (most recent call last):


 "/root/xufangbin/YOLO_mask_detect/train.py", line 89, in <module>

model.load_state_dict(torch.load(opt.pretrained_weights))


 "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 803, in load_state_dict

state_dict = state_dict.copy()


 "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 576, in __getattr__

type(self).__name__, name))
AttributeError: 'Darknet' object has no attribute 'copy'
