Closed ashnair1 closed 2 years ago
Our conda-forge repo just caught the fact that the SpaceNet datasets import the affine
library but we're missing a dependency on affine
in setup.cfg
. Is affine
actually needed? If so, can you determine the minimum supported version and add it to setup.cfg
?
I believe I only explicitly imported affine for type annotations (in load_image
and load_mask
). The image transform of a rasterio image object is an Affine
object.
Even if it was required, affine
is a direct dependency of rasterio
(for the above reason). I thought setup.cfg
only includes direct dependencies of torchgeo and not its transitive dependencies.
Alternatively I could just replace Affine
with Any
from the typing module.
This is a bit of a hack but could we just use 'from rasterio.transform import Affine' instead of 'from affine import Affine'?
I thought
setup.cfg
only includes direct dependencies of torchgeo and not its transitive dependencies.
Correct, but if you directly import affine, that makes it a direct dependency.
I actually like @isaaccorley's suggestion, let's do that as long as it passes mypy.
@ashnair1 where are we at with SpaceNet 6? Would love to be able to close this issue.
SpaceNet 6 is currently unavailable on Radiant MLHub. I had raised radiantearth/radiant-mlhub#93 to track this among other issues with the SpaceNet datasets. Will give them a ping.
The SpaceNet Dataset contains ~67,000 square km of very high-resolution imagery, >11M building footprints, and ~20,000 km of road labels spread over 7 datasets:
This issue is to track the addition of these datasets.