Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running inference over .tif in tf_od_predict.py #127

Open
Geo-Trackers opened this issue Jan 3, 2019 · 3 comments
Open

Running inference over .tif in tf_od_predict.py #127

Geo-Trackers opened this issue Jan 3, 2019 · 3 comments

Comments

@Geo-Trackers
Copy link

Can I run inference over the image tiles which is in .tif format?

Thank you. I look forward to hear from you.

Best,

Suman

@Geoyi
Copy link
Contributor

Geoyi commented Jan 3, 2019

@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.

@Geo-Trackers
Copy link
Author

@Geoyi Thank you for your reply. While running inference over .tif files, can we still preserve the coordinates during the detection process?

Best,
Suman

@Geoyi
Copy link
Contributor

Geoyi commented Jan 11, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants