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

GLAD alert contains None in tfrecord export #1

Open
apoortinga opened this issue Nov 3, 2020 · 2 comments
Open

GLAD alert contains None in tfrecord export #1

apoortinga opened this issue Nov 3, 2020 · 2 comments
Assignees

Comments

@apoortinga
Copy link
Member

We printed the content of the tfrecord export on line 962 of 0b_generate_glad_dataset.py and found the content of some records is None for glad_alert. see the content for 5 records using a 2 pixel kernel below:

Beginning alert generation.

Beginning export process:
{u'geometry': {u'type': u'Point', u'coordinates': [104.1366239705355, 12.776050202067857]}, u'type': u'Feature', u'id': u'0', u'properties': {u'glad_alert': None, u'VH_3': [[0.4630624055862427, 0.41639402508735657], [0.5283186435699463, 0.5048589110374451]], u'VH_2': [[0.4317391514778137, 0.4417014718055725], [0.4313400685787201, 0.4447222650051117]], u'VH_1': [[0.4383966028690338, 0.4082118272781372], [0.40221765637397766, 0.43105006217956543]], u'VV_1': [[0.6739165186882019, 0.6750456094741821], [0.6490722894668579, 0.6590401530265808]], u'VV_3': [[0.6360548734664917, 0.6341042518615723], [0.6608354449272156, 0.6540114879608154]], u'VV_2': [[0.447774738073349, 0.40886539220809937], [0.3863236606121063, 0.37073075771331787]]}}
{u'geometry': {u'type': u'Point', u'coordinates': [105.10051241040138, 13.687763612082751]}, u'type': u'Feature', u'id': u'0', u'properties': {u'glad_alert': None, u'VH_3': [[0.6822598576545715, 0.6576016545295715], [0.7041963934898376, 0.6982368230819702]], u'VH_2': [[0.6967174410820007, 0.7098237872123718], [0.6881750226020813, 0.691482663154602]], u'VH_1': [[0.7776437401771545, 0.7876611351966858], [0.796540379524231, 0.7924012541770935]], u'VV_1': [[0.7518816590309143, 0.7557101249694824], [0.7407076954841614, 0.7500209808349609]], u'VV_3': [[0.7953020334243774, 0.8048391342163086], [0.7740167379379272, 0.7900359034538269]], u'VV_2': [[0.7418588995933533, 0.7512412667274475], [0.7661381363868713, 0.7618218064308167]]}}
{u'geometry': {u'type': u'Point', u'coordinates': [104.49055643640158, 14.038199904772007]}, u'type': u'Feature', u'id': u'0', u'properties': {u'glad_alert': None, u'VH_3': [[0.6525925993919373, 0.6516223549842834], [0.6651642918586731, 0.678409993648529]], u'VH_2': [[0.7192636132240295, 0.7089915871620178], [0.7103380560874939, 0.6655904054641724]], u'VH_1': [[0.6938005685806274, 0.6693107485771179], [0.6996898055076599, 0.6990611553192139]], u'VV_1': [[0.8216049671173096, 0.8168375492095947], [0.8585835695266724, 0.8252483010292053]], u'VV_3': [[0.7239950895309448, 0.7767719626426697], [0.6672388315200806, 0.7314862608909607]], u'VV_2': [[0.7910082340240479, 0.8180573582649231], [0.8294272422790527, 0.8170459866523743]]}}
{u'geometry': {u'type': u'Point', u'coordinates': [105.01247637830318, 14.207079438969165]}, u'type': u'Feature', u'id': u'0', u'properties': {u'glad_alert': None, u'VH_3': [[0.6482651233673096, 0.6530022621154785], [0.6920823454856873, 0.6717724800109863]], u'VH_2': [[0.7191608548164368, 0.7686571478843689], [0.7275505065917969, 0.775734543800354]], u'VH_1': [[0.7084958553314209, 0.7248893976211548], [0.6704416275024414, 0.6905039548873901]], u'VV_1': [[0.8568545579910278, 0.8378500938415527], [0.842286229133606, 0.8112874031066895]], u'VV_3': [[0.7503464221954346, 0.6787150502204895], [0.7422898411750793, 0.6871668100357056]], u'VV_2': [[0.8195424675941467, 0.877942681312561], [0.8101620674133301, 0.8603231310844421]]}}
{u'geometry': {u'type': u'Point', u'coordinates': [105.85868890341773, 12.699350354373832]}, u'type': u'Feature', u'id': u'0', u'properties': {u'glad_alert': [[0, 0], [0, 0]], u'VH_3': [[0.6959548592567444, 0.6975275874137878], [0.7134643197059631, 0.7038886547088623]], u'VH_2': [[0.6351528763771057, 0.663165807723999], [0.6874366402626038, 0.6951076984405518]], u'VH_1': [[0.6402882933616638, 0.665322482585907], [0.6585063338279724, 0.6762831211090088]], u'VV_1': [[0.7836980819702148, 0.794195294380188], [0.7864308953285217, 0.782409131526947]], u'VV_3': [[0.7293895483016968, 0.7309178113937378], [0.7605801820755005, 0.7547810077667236]], u'VV_2': [[0.756922721862793, 0.7259745001792908], [0.792212963104248, 0.7345845699310303]]}}

@JohnKilbride
Copy link
Collaborator

Well, that's a new one... I'll see if I can get this figured out quickly.

@JohnKilbride
Copy link
Collaborator

I think it is fixed based on some exports I just ran.

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