yakvrz commited on
Commit
4d329d3
·
1 Parent(s): 9ed00aa

Remove embedded example assets and enable real examples

Browse files
Files changed (4) hide show
  1. .gitignore +0 -1
  2. README.md +0 -1
  3. app/data_sources.py +3 -5
  4. app/example_assets.py +0 -0
.gitignore CHANGED
@@ -2,6 +2,5 @@ __pycache__/
2
  .DS_Store
3
  .python-version
4
  data/
5
- examples/
6
  *.pyc
7
  scripts/
 
2
  .DS_Store
3
  .python-version
4
  data/
 
5
  *.pyc
6
  scripts/
README.md CHANGED
@@ -15,7 +15,6 @@ Analyze aerial RGB imagery to detect safe drone landing sites. Combines monocula
15
 
16
  ## What’s inside
17
  - **Main app (`app.py`)** — runs full inference with adjustable thresholds, overlays, and camera assumptions; requires >8GB VRAM (assuming default 1024 px processing resolution); runtime is ~2000 ms per image.
18
- - **Sample data (`examples/visloc/`)** — 5 VISLOC frames bundled for quick testing in the Space.
19
 
20
  ## References
21
  - UAV-VisLoc dataset: Xu et al., 2024 (https://arxiv.org/abs/2405.11936)
 
15
 
16
  ## What’s inside
17
  - **Main app (`app.py`)** — runs full inference with adjustable thresholds, overlays, and camera assumptions; requires >8GB VRAM (assuming default 1024 px processing resolution); runtime is ~2000 ms per image.
 
18
 
19
  ## References
20
  - UAV-VisLoc dataset: Xu et al., 2024 (https://arxiv.org/abs/2405.11936)
app/data_sources.py CHANGED
@@ -4,7 +4,6 @@ from functools import lru_cache
4
  from pathlib import Path
5
 
6
  from .config import EXAMPLES_ROOT, IMAGE_EXTS, IMAGE_ROOT, VISLOC_DIR
7
- from .example_assets import ensure_example_images
8
 
9
 
10
  @lru_cache(maxsize=1)
@@ -18,10 +17,9 @@ def list_visloc_images() -> list[Path]:
18
  @lru_cache(maxsize=1)
19
  def list_example_images() -> list[Path]:
20
  examples_dir = EXAMPLES_ROOT / "visloc"
21
- ensure_example_images(examples_dir)
22
- if not examples_dir.exists():
23
- return []
24
- files = [p for p in examples_dir.rglob("*") if p.is_file() and p.suffix in IMAGE_EXTS]
25
  return sorted(files)
26
 
27
 
 
4
  from pathlib import Path
5
 
6
  from .config import EXAMPLES_ROOT, IMAGE_EXTS, IMAGE_ROOT, VISLOC_DIR
 
7
 
8
 
9
  @lru_cache(maxsize=1)
 
17
  @lru_cache(maxsize=1)
18
  def list_example_images() -> list[Path]:
19
  examples_dir = EXAMPLES_ROOT / "visloc"
20
+ files: list[Path] = []
21
+ if examples_dir.exists():
22
+ files = [p for p in examples_dir.rglob("*") if p.is_file() and p.suffix in IMAGE_EXTS]
 
23
  return sorted(files)
24
 
25
 
app/example_assets.py DELETED
The diff for this file is too large to render. See raw diff