label-maker
label-maker copied to clipboard
Running inference over .tif in tf_od_predict.py
Can I run inference over the image tiles which is in .tif format?
Thank you. I look forward to hear from you.
Best,
Suman
@Geo-Trackers, yes, you can run the inference over the image tile in tif format, and the main script is this line. You can replace .jpg
with .tif
.
@Geoyi Thank you for your reply. While running inference over .tif files, can we still preserve the coordinates during the detection process?
Best, Suman
Yes, @Geo-Trackers. But it's not very straightforward.
When you use Label Maker to generate .tif
tile, each tile come with an ID, e.g. 207692-115930-18.tif
, you can use Mercantile e.g., mercantile.bounds
to get the tile geo-coordinates, and each bbox within the tile can be computed through their associated location in within a tile if that makes sense.