-
Notifications
You must be signed in to change notification settings - Fork 234
Open
Labels
questionFurther information is requestedFurther information is requested
Description
I'm getting the following warning when using CropTransform on polygons:
"Iteration over multi-part geometries is deprecated and will be removed in Shapely 2.0. Use the geoms property to access the constituent parts of a multi-part geometry."
fvcore/fvcore/transforms/transform.py
Lines 724 to 733 in 7a0ef0c
| for poly in cropped: | |
| # It could produce lower dimensional objects like lines or | |
| # points, which we want to ignore | |
| if not isinstance(poly, geometry.Polygon) or not poly.is_valid: | |
| continue | |
| coords = np.asarray(poly.exterior.coords) | |
| # NOTE This process will produce an extra identical vertex at | |
| # the end. So we remove it. This is tested by | |
| # `tests/test_data_transform.py` | |
| cropped_polygons.append(coords[:-1]) |
PeterMitrano
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested