Mingze commited on
Commit
199fdb3
·
1 Parent(s): d8927ef

Feature UBC campus street example

Browse files
Files changed (2) hide show
  1. README.md +9 -4
  2. app.py +7 -1
README.md CHANGED
@@ -41,9 +41,14 @@ runs entirely in the browser interface. Students can upload an image, choose a
41
  built-in example, inspect the results, and download the outputs without installing
42
  Python or providing an API key.
43
 
44
- | Sample street image | Example segmentation result |
45
- |---|---|
46
- | ![Sample street scene](https://raw.githubusercontent.com/LabMingzeChen/HNIVision/main/space/examples/140546.jpg) | ![Example semantic segmentation](https://raw.githubusercontent.com/LabMingzeChen/HNIVision/main/space/examples/140546_segmentation.png) |
 
 
 
 
 
47
 
48
  ## What the project does
49
 
@@ -102,7 +107,7 @@ to limit memory use while preserving aspect ratio.
102
  - **Model literacy:** inspect boundary errors and discuss why predictions differ from human interpretation.
103
  - **Change over time:** process repeat photographs of a location and compare their CSV summaries.
104
 
105
- Four sample street scenes are loaded from the
106
  [HNIVision example collection](https://github.com/LabMingzeChen/HNIVision/tree/main/space/examples)
107
  and appear directly beneath the upload panel in the live app. Hosting samples
108
  through GitHub Raw follows the same lightweight pattern as HNI-VLM and avoids
 
41
  built-in example, inspect the results, and download the outputs without installing
42
  Python or providing an API key.
43
 
44
+ ### Featured classroom example: UBC campus street
45
+
46
+ ![UBC campus street with trees, pedestrians, and a cyclist](https://raw.githubusercontent.com/LabMingzeChen/HNIVision/main/space/examples/ubc-campus-main-mall.jpeg)
47
+
48
+ This scene provides a useful teaching example because it combines vegetation,
49
+ sky, terrain, paving, buildings, poles, pedestrians, and a cyclist in one image.
50
+ Students can compare the predicted area shares and inspect challenging boundaries
51
+ between the tree canopy and sky, or between the paved route and grass.
52
 
53
  ## What the project does
54
 
 
107
  - **Model literacy:** inspect boundary errors and discuss why predictions differ from human interpretation.
108
  - **Change over time:** process repeat photographs of a location and compare their CSV summaries.
109
 
110
+ Five sample street scenes, led by the UBC campus example above, are loaded from the
111
  [HNIVision example collection](https://github.com/LabMingzeChen/HNIVision/tree/main/space/examples)
112
  and appear directly beneath the upload panel in the live app. Hosting samples
113
  through GitHub Raw follows the same lightweight pattern as HNI-VLM and avoids
app.py CHANGED
@@ -43,7 +43,13 @@ SAMPLE_ROOT = (
43
  )
44
  SAMPLE_IMAGES = [
45
  f"{SAMPLE_ROOT}/{filename}"
46
- for filename in ("140546.jpg", "145541.jpg", "148831.jpg", "160710.jpg")
 
 
 
 
 
 
47
  ]
48
 
49
 
 
43
  )
44
  SAMPLE_IMAGES = [
45
  f"{SAMPLE_ROOT}/{filename}"
46
+ for filename in (
47
+ "ubc-campus-main-mall.jpeg",
48
+ "140546.jpg",
49
+ "145541.jpg",
50
+ "148831.jpg",
51
+ "160710.jpg",
52
+ )
53
  ]
54
 
55