You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
I have 2 problems, but tried but couldn't fix them:
1: my teacher told me that pose estimation model use the CNN to predict keypoints but in source only have convolutions, no put to Neural(dense)
2: then I install and run main.py I keep getting this error in Colab and my laptop:
/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version
2020-07-22 15:46:53.617109: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1
2020-07-22 15:46:55.521309: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1
2020-07-22 15:46:55.534016: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-07-22 15:46:55.534601: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties:
pciBusID: 0000:00:04.0 name: Tesla P100-PCIE-16GB computeCapability: 6.0
coreClock: 1.3285GHz coreCount: 56 deviceMemorySize: 15.90GiB deviceMemoryBandwidth: 681.88GiB/s
2020-07-22 15:46:55.534635: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1
2020-07-22 15:46:55.536116: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10
2020-07-22 15:46:55.537938: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10
2020-07-22 15:46:55.538291: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10
2020-07-22 15:46:55.539832: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10
2020-07-22 15:46:55.540867: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10
2020-07-22 15:46:55.544261: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7
2020-07-22 15:46:55.544370: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-07-22 15:46:55.544925: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-07-22 15:46:55.545430: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0
2020-07-22 15:46:55.550442: I tensorflow/core/platform/profile_utils/cpu_utils.cc:102] CPU Frequency: 2200000000 Hz
2020-07-22 15:46:55.550625: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x2dcd100 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-07-22 15:46:55.550653: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version
2020-07-22 15:46:55.638071: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-07-22 15:46:55.638803: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x2dccf40 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:
2020-07-22 15:46:55.638842: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Tesla P100-PCIE-16GB, Compute Capability 6.0
2020-07-22 15:46:55.639055: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-07-22 15:46:55.639654: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties:
pciBusID: 0000:00:04.0 name: Tesla P100-PCIE-16GB computeCapability: 6.0
coreClock: 1.3285GHz coreCount: 56 deviceMemorySize: 15.90GiB deviceMemoryBandwidth: 681.88GiB/s
2020-07-22 15:46:55.639698: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1
2020-07-22 15:46:55.639758: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10
2020-07-22 15:46:55.639785: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10
2020-07-22 15:46:55.639810: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10
2020-07-22 15:46:55.639834: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10
2020-07-22 15:46:55.639857: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10
2020-07-22 15:46:55.639881: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7
2020-07-22 15:46:55.639961: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-07-22 15:46:55.640612: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-07-22 15:46:55.641200: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0
2020-07-22 15:46:55.641254: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1
2020-07-22 15:46:56.141171: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix:
2020-07-22 15:46:56.141231: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0
2020-07-22 15:46:56.141245: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N
2020-07-22 15:46:56.141457: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-07-22 15:46:56.142097: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-07-22 15:46:56.142604: W tensorflow/core/common_runtime/gpu/gpu_bfc_allocator.cc:39] Overriding allow_growth setting because the TF_FORCE_GPU_ALLOW_GROWTH environment variable is set. Original config value was 0.
2020-07-22 15:46:56.142646: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 14974 MB memory) -> physical GPU (device: 0, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:04.0, compute capability: 6.0)
2020-07-22 15:46:57.449867: W tensorflow/core/framework/op_kernel.cc:1741] Unknown: AttributeError: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 241, in call
return func(device, token, args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 130, in call
ret = self._func(*args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/autograph/impl/api.py", line 309, in wrapper
return func(*args, **kwargs)
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/data/dataset.py", line 53, in paser_func
img_ori, kps = data_aug(img_ori, None, kps)
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/utils/data_aug.py", line 46, in data_aug
kps = ia.KeypointsOnImage([], shape=img.shape)
AttributeError: 'NoneType' object has no attribute 'shape'
2020-07-22 15:46:57.450128: W tensorflow/core/framework/op_kernel.cc:1741] Unknown: AttributeError: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 241, in call
return func(device, token, args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 130, in call
ret = self._func(*args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/autograph/impl/api.py", line 309, in wrapper
return func(*args, **kwargs)
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/data/dataset.py", line 53, in paser_func
img_ori, kps = data_aug(img_ori, None, kps)
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/utils/data_aug.py", line 46, in data_aug
kps = ia.KeypointsOnImage([], shape=img.shape)
AttributeError: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/eager/context.py", line 1986, in execution_mode
yield
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/data/ops/iterator_ops.py", line 655, in _next_internal
output_shapes=self._flat_output_shapes)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/gen_dataset_ops.py", line 2363, in iterator_get_next
_ops.raise_from_not_ok_status(e, name)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/ops.py", line 6653, in raise_from_not_ok_status
six.raise_from(core._status_to_exception(e.code, message), None)
File "", line 3, in raise_from
tensorflow.python.framework.errors_impl.UnknownError: AttributeError: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 241, in call
return func(device, token, args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 130, in call
ret = self._func(*args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/autograph/impl/api.py", line 309, in wrapper
return func(*args, **kwargs)
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/data/dataset.py", line 53, in paser_func
img_ori, kps = data_aug(img_ori, None, kps)
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/utils/data_aug.py", line 46, in data_aug
kps = ia.KeypointsOnImage([], shape=img.shape)
AttributeError: 'NoneType' object has no attribute 'shape'
[[{{node EagerPyFunc}}]] [Op:IteratorGetNext]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 33, in
2020-07-22 15:46:57.459092: W tensorflow/core/framework/op_kernel.cc:1741] Unknown: AttributeError: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 241, in call
return func(device, token, args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 130, in call
ret = self._func(*args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/autograph/impl/api.py", line 309, in wrapper
return func(*args, **kwargs)
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/data/dataset.py", line 53, in paser_func
img_ori, kps = data_aug(img_ori, None, kps)
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/utils/data_aug.py", line 46, in data_aug
kps = ia.KeypointsOnImage([], shape=img.shape)
AttributeError: 'NoneType' object has no attribute 'shape'
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/train/kps_train.py", line 47, in train
2020-07-22 15:46:57.460074: W tensorflow/core/framework/op_kernel.cc:1741] Unknown: AttributeError: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 241, in call
return func(device, token, args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 130, in call
ret = self._func(*args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/autograph/impl/api.py", line 309, in wrapper
return func(*args, **kwargs)
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/data/dataset.py", line 53, in paser_func
img_ori, kps = data_aug(img_ori, None, kps)
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/utils/data_aug.py", line 46, in data_aug
kps = ia.KeypointsOnImage([], shape=img.shape)
AttributeError: 'NoneType' object has no attribute 'shape'
for step, (img, heatmap, paf) in enumerate(dataset):
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/data/ops/iterator_ops.py", line 631, in next
return self.next()
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/data/ops/iterator_ops.py", line 670, in next
return self._next_internal()
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/data/ops/iterator_ops.py", line 661, in _next_internal
return structure.from_compatible_tensor_list(self._element_spec, ret)
File "/usr/lib/python3.6/contextlib.py", line 99, in exit
self.gen.throw(type, value, traceback)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/eager/context.py", line 1989, in execution_mode
executor_new.wait()
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/eager/executor.py", line 67, in wait
pywrap_tfe.TFE_ExecutorWaitForAllPendingNodes(self._handle)
tensorflow.python.framework.errors_impl.UnknownError: AttributeError: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 241, in call
return func(device, token, args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 130, in call
ret = self._func(*args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/autograph/impl/api.py", line 309, in wrapper
return func(*args, **kwargs)
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/data/dataset.py", line 53, in paser_func
img_ori, kps = data_aug(img_ori, None, kps)
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/utils/data_aug.py", line 46, in data_aug
kps = ia.KeypointsOnImage([], shape=img.shape)
AttributeError: 'NoneType' object has no attribute 'shape'
[[{{node EagerPyFunc}}]]
I don't know how to run the model to predict result.
Thank for attention.
The text was updated successfully, but these errors were encountered:
Hello
I have 2 problems, but tried but couldn't fix them:
1: my teacher told me that pose estimation model use the CNN to predict keypoints but in source only have convolutions, no put to Neural(dense)
2: then I install and run main.py I keep getting this error in Colab and my laptop:
/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version
2020-07-22 15:46:53.617109: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1
2020-07-22 15:46:55.521309: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1
2020-07-22 15:46:55.534016: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-07-22 15:46:55.534601: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties:
pciBusID: 0000:00:04.0 name: Tesla P100-PCIE-16GB computeCapability: 6.0
coreClock: 1.3285GHz coreCount: 56 deviceMemorySize: 15.90GiB deviceMemoryBandwidth: 681.88GiB/s
2020-07-22 15:46:55.534635: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1
2020-07-22 15:46:55.536116: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10
2020-07-22 15:46:55.537938: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10
2020-07-22 15:46:55.538291: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10
2020-07-22 15:46:55.539832: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10
2020-07-22 15:46:55.540867: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10
2020-07-22 15:46:55.544261: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7
2020-07-22 15:46:55.544370: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-07-22 15:46:55.544925: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-07-22 15:46:55.545430: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0
2020-07-22 15:46:55.550442: I tensorflow/core/platform/profile_utils/cpu_utils.cc:102] CPU Frequency: 2200000000 Hz
2020-07-22 15:46:55.550625: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x2dcd100 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-07-22 15:46:55.550653: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version
2020-07-22 15:46:55.638071: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-07-22 15:46:55.638803: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x2dccf40 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:
2020-07-22 15:46:55.638842: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Tesla P100-PCIE-16GB, Compute Capability 6.0
2020-07-22 15:46:55.639055: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-07-22 15:46:55.639654: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties:
pciBusID: 0000:00:04.0 name: Tesla P100-PCIE-16GB computeCapability: 6.0
coreClock: 1.3285GHz coreCount: 56 deviceMemorySize: 15.90GiB deviceMemoryBandwidth: 681.88GiB/s
2020-07-22 15:46:55.639698: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1
2020-07-22 15:46:55.639758: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10
2020-07-22 15:46:55.639785: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10
2020-07-22 15:46:55.639810: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10
2020-07-22 15:46:55.639834: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10
2020-07-22 15:46:55.639857: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10
2020-07-22 15:46:55.639881: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7
2020-07-22 15:46:55.639961: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-07-22 15:46:55.640612: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-07-22 15:46:55.641200: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0
2020-07-22 15:46:55.641254: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1
2020-07-22 15:46:56.141171: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix:
2020-07-22 15:46:56.141231: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0
2020-07-22 15:46:56.141245: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N
2020-07-22 15:46:56.141457: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-07-22 15:46:56.142097: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-07-22 15:46:56.142604: W tensorflow/core/common_runtime/gpu/gpu_bfc_allocator.cc:39] Overriding allow_growth setting because the TF_FORCE_GPU_ALLOW_GROWTH environment variable is set. Original config value was 0.
2020-07-22 15:46:56.142646: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 14974 MB memory) -> physical GPU (device: 0, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:04.0, compute capability: 6.0)
2020-07-22 15:46:57.449867: W tensorflow/core/framework/op_kernel.cc:1741] Unknown: AttributeError: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 241, in call
return func(device, token, args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 130, in call
ret = self._func(*args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/autograph/impl/api.py", line 309, in wrapper
return func(*args, **kwargs)
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/data/dataset.py", line 53, in paser_func
img_ori, kps = data_aug(img_ori, None, kps)
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/utils/data_aug.py", line 46, in data_aug
kps = ia.KeypointsOnImage([], shape=img.shape)
AttributeError: 'NoneType' object has no attribute 'shape'
2020-07-22 15:46:57.450128: W tensorflow/core/framework/op_kernel.cc:1741] Unknown: AttributeError: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 241, in call
return func(device, token, args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 130, in call
ret = self._func(*args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/autograph/impl/api.py", line 309, in wrapper
return func(*args, **kwargs)
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/data/dataset.py", line 53, in paser_func
img_ori, kps = data_aug(img_ori, None, kps)
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/utils/data_aug.py", line 46, in data_aug
kps = ia.KeypointsOnImage([], shape=img.shape)
AttributeError: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/eager/context.py", line 1986, in execution_mode
yield
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/data/ops/iterator_ops.py", line 655, in _next_internal
output_shapes=self._flat_output_shapes)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/gen_dataset_ops.py", line 2363, in iterator_get_next
_ops.raise_from_not_ok_status(e, name)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/ops.py", line 6653, in raise_from_not_ok_status
six.raise_from(core._status_to_exception(e.code, message), None)
File "", line 3, in raise_from
tensorflow.python.framework.errors_impl.UnknownError: AttributeError: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 241, in call
return func(device, token, args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 130, in call
ret = self._func(*args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/autograph/impl/api.py", line 309, in wrapper
return func(*args, **kwargs)
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/data/dataset.py", line 53, in paser_func
img_ori, kps = data_aug(img_ori, None, kps)
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/utils/data_aug.py", line 46, in data_aug
kps = ia.KeypointsOnImage([], shape=img.shape)
AttributeError: 'NoneType' object has no attribute 'shape'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 33, in
2020-07-22 15:46:57.459092: W tensorflow/core/framework/op_kernel.cc:1741] Unknown: AttributeError: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 241, in call
return func(device, token, args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 130, in call
ret = self._func(*args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/autograph/impl/api.py", line 309, in wrapper
return func(*args, **kwargs)
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/data/dataset.py", line 53, in paser_func
img_ori, kps = data_aug(img_ori, None, kps)
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/utils/data_aug.py", line 46, in data_aug
kps = ia.KeypointsOnImage([], shape=img.shape)
AttributeError: 'NoneType' object has no attribute 'shape'
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/train/kps_train.py", line 47, in train
2020-07-22 15:46:57.460074: W tensorflow/core/framework/op_kernel.cc:1741] Unknown: AttributeError: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 241, in call
return func(device, token, args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 130, in call
ret = self._func(*args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/autograph/impl/api.py", line 309, in wrapper
return func(*args, **kwargs)
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/data/dataset.py", line 53, in paser_func
img_ori, kps = data_aug(img_ori, None, kps)
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/utils/data_aug.py", line 46, in data_aug
kps = ia.KeypointsOnImage([], shape=img.shape)
AttributeError: 'NoneType' object has no attribute 'shape'
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/data/ops/iterator_ops.py", line 631, in next
return self.next()
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/data/ops/iterator_ops.py", line 670, in next
return self._next_internal()
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/data/ops/iterator_ops.py", line 661, in _next_internal
return structure.from_compatible_tensor_list(self._element_spec, ret)
File "/usr/lib/python3.6/contextlib.py", line 99, in exit
self.gen.throw(type, value, traceback)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/eager/context.py", line 1989, in execution_mode
executor_new.wait()
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/eager/executor.py", line 67, in wait
pywrap_tfe.TFE_ExecutorWaitForAllPendingNodes(self._handle)
tensorflow.python.framework.errors_impl.UnknownError: AttributeError: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 241, in call
return func(device, token, args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 130, in call
ret = self._func(*args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/autograph/impl/api.py", line 309, in wrapper
return func(*args, **kwargs)
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/data/dataset.py", line 53, in paser_func
img_ori, kps = data_aug(img_ori, None, kps)
File "/content/drive/My Drive/AI data/Animal Classification/lightweight_openpose-tf2.0_version/utils/data_aug.py", line 46, in data_aug
kps = ia.KeypointsOnImage([], shape=img.shape)
AttributeError: 'NoneType' object has no attribute 'shape'
I don't know how to run the model to predict result.
Thank for attention.
The text was updated successfully, but these errors were encountered: