Traceback (most recent call last):


 "tools/pytorch2onnx.py", line 188, in <module>

num_classes = segmentor.decode_head.num_classes


 "/home/apuser/miniconda3/lib/python3.8/site-packages/torch/nn/modules/module.py", line 593, in __getattr__

raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'ModuleList' object has no attribute 'num_classes'

Traceback (most recent call last):


 "/srv/homeassistant/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2862, in _dep_map

return self.__dep_map


 "/srv/homeassistant/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2669, in __getattr__

raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map
