Missing QA tiles create empty labels at country boundaries
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- jupyter-notebook, keras, numpy, python
- Domain
- computer-vision, data, machine-learning
Research direction
Start with the label_maker configuration in the issue and reproduce the generated data.npz, then inspect the provided Jupyter Notebook checks for x_train and y_train. Trace how the classes, background_ratio, zoom, and country bounding box produce tile labels. Done means identifying whether the behavior is a bug, configuration issue, or OSM data limitation and documenting the evidence or next fix.
Written by the indexing model from the issue text.
Description
After seeing really poor results in my ResNet50 I have manually inspected the data and labels and it appears that the background images label_maker is producing are labelled almost randomly.
Here's the config that I'm using:
{
"country": "singapore",
"bounding_box": [103.5917,1.132909,104.10712,1.487815],
"zoom": 14,
"classes": [{ "name": "human construction", "filter": ["any", ["has", "man_made"], ["has", "military"], ["has", "building"], ["has", "aerialway"], ["has", "aeroway"], ["in", "landuse", "allotments", "brownfield", "cemetery", "commercial", "construction", "depot", "farmland", "farmyard", "garages", "greenhouse_horticulture", "industrial", "landfill", "military", "orchard", "plant_nursery", "port", "quarry", "railway", "recreation_ground", "religious", "residential", "retail", "village_green", "vineyard"] ] } ],
"imagery": "http://a.tiles.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}.jpg?access_token=###(removed)",
"background_ratio": 1,
"ml_type": "classification"
}
Essentially what I've attempted to do in the above 'classes' is to identify tiles with any sign of human activity.
At that zoom level around 300 images are packaged in to data.npz.
Once we have the data.npz file a quick inspection of some of the imagery with the following code (I used a Jupyter Notebook) shows a high proportion of the images are labelled as not in the class above despite very clearly containing man made structures.
import numpy as np
import os
# load data
npz = np.load('final_singa/data.npz')
x_train = npz['x_train']
y_train = npz['y_train']
x_test = npz['x_test']
y_test = npz['y_test']
# check out labels for first 25 images:
for i in range(0,25):
print('row:',i)
fig = plt.subplots(nrows=1, ncols=1, figsize=(10, 10))
plt.imshow(x_train[i])
if y_train[i][0] == 1:
plt.title(str('No man made'))
else:
plt.title(str('Yes man made'))
plt.tight_layout
plt.show()
plt.pause(0.0001)
I also tried at zoom level 15 and the same issue exists.
I'm wondering a few things:
Is the class I'm using too complex to use label-maker for this purpose?
Is the OSM tiling simply unreliable?
Is there a bug in label maker?
Am I using background_ratio incorrectly?
Am I making a stupid mistake somewhere?
Any advice greatly appreciated!
Thanks
Josh
- Dominant language
- Python
- Stars
- 471
- Forks
- 106
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from developmentseed/label-maker
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
developmentseed/label-maker#195 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
developmentseed/label-maker#186 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
developmentseed/label-maker#185 ·
-
Generalize Final data.npz outputMay be free again @martham93 claimed this 2281 days ago, and no pull request is open. Openenhancement
developmentseed/label-maker#181 · 1 comment · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
developmentseed/label-maker#180 · 1 comment ·
All issues in developmentseed/label-maker
Similar issues
-
00 - Bug component: numpy.linalg
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
521xueweihan/HelloGitHub#4543 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
emeryberger/CSrankings#15700 ·
Maintainers usually reply within 2 days
-
Bug | 工作不正常 Triage | 待检查
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
OneDragon-Anything/ZenlessZoneZero-OneDragon#3084 ·
Maintainers usually reply within 1 day
-
Task select patterns with uppercase letters never matchPossibly taken @manobhisriram claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day