PETR
PETR copied to clipboard
TypeError: 'MultiPolygon' object is not iterable
when i create Seg data,this issuse arised, what should i do?
Loading NuScenes tables for version v1.0-trainval... 23 category, 8 attribute, 4 visibility, 64386 instance, 12 sensor, 10200 calibrated_sensor, 2631083 ego_pose, 68 log, 850 scene, 34149 sample, 2631083 sample_data, 1166187 sample_annotation, 4 map, Done loading in 78.575 seconds.
Reverse indexing ... Done reverse indexing in 4.9 seconds.
total scene num: 850
exist scene num: 850
train scene: 700, val scene: 150
[ ] 0/34149, elapsed: 0s, ETA:/home/djy/anaconda3/envs/petr/lib/python3.8/site-packages/shapely-2.0a1-py3.8-linux-x86_64.egg/shapely/set_operations.py:132: RuntimeWarning: invalid value encountered in intersection
return lib.intersection(a, b, **kwargs)
Traceback (most recent call last):
File "build-dataset.py", line 7, in
I have the same problem, do you have a solution yet?
I have the same problem, do you have a solution yet?
I reinstall python 3.6.8 fix this issue.
This may be a problem with the shapely package, which needs to be installed < 2.0.
https://shapely.readthedocs.io/en/stable/migration.html?highlight=MultiPolygon#multi-part-geometries-will-no-longer-be-sequences-length-iterable-indexable