Traceback (most recent call last):


 "/home/semenov/tmp/test/lib/python3.5/site-packages/pip/req/req_install.py", line 387, in setup_py

import setuptools
# noqa


 "/home/semenov/tmp/test/lib/python3.5/site-packages/setuptools/__init__.py", line 10, in <module>

from setuptools.extern.six.moves import filter, filterfalse, map


 "/home/semenov/tmp/test/lib/python3.5/site-packages/setuptools/extern/__init__.py", line 1, in <module>

from pkg_resources.extern import VendorImporter
ImportError: No module named 'pkg_resources.extern'

Traceback (most recent call last):


 "maskrcnn/train.py", line 309, in <module>

main()


 "maskrcnn/train.py", line 292, in main

args["viajson"],


 "maskrcnn/train.py", line 197, in train_model

augmentation=augmentation,


 "/home/ubuntu/miniconda3/envs/maskrcnngpu/lib/python3.7/site-packages/mask_rcnn-2.1-py3.7.egg/mrcnn/model.py", line 2374, in train


 "/home/ubuntu/miniconda3/envs/maskrcnngpu/lib/python3.7/site-packages/keras/legacy/interfaces.py", line 91, in wrapper

return func(*args, **kwargs)


 "/home/ubuntu/miniconda3/envs/maskrcnngpu/lib/python3.7/site-packages/keras/engine/training.py", line 1658, in fit_generator

initial_epoch=initial_epoch)


 "/home/ubuntu/miniconda3/envs/maskrcnngpu/lib/python3.7/site-packages/keras/engine/training_generator.py", line 215, in fit_generator

class_weight=class_weight)


 "/home/ubuntu/miniconda3/envs/maskrcnngpu/lib/python3.7/site-packages/keras/engine/training.py", line 1449, in train_on_batch

outputs = self.train_function(ins)


 "/home/ubuntu/miniconda3/envs/maskrcnngpu/lib/python3.7/site-packages/keras/backend/tensorflow_backend.py", line 2979, in __call__

return self._call(inputs)


 "/home/ubuntu/miniconda3/envs/maskrcnngpu/lib/python3.7/site-packages/keras/backend/tensorflow_backend.py", line 2937, in _call

fetched = self._callable_fn(*array_vals)


 "/home/ubuntu/miniconda3/envs/maskrcnngpu/lib/python3.7/site-packages/tensorflow/python/client/session.py", line 1439, in __call__

run_metadata_ptr)


 "/home/ubuntu/miniconda3/envs/maskrcnngpu/lib/python3.7/site-packages/tensorflow/python/framework/errors_impl.py", line 528, in __exit__

c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.InvalidArgumentError: Incompatible shapes: [9,4] vs. [13,4]
