Datasets:
Languages:
English
Size:
1K - 10K
Tags:
remote-sensing
aerial-imagery
orthomosaic
lighting-invariance
representation-stability
vision-encoder
License:
Update experiments code - 2025-09-25T15:18:39.334752
Browse files
light_subspace_removal/scripts/view_subspace_removal.py
CHANGED
|
@@ -15,7 +15,7 @@ PCA components directly to RGB channels for visualization.
|
|
| 15 |
Processes both models (dinov2_base, dinov3_sat) automatically, generating separate outputs.
|
| 16 |
|
| 17 |
Embeddings source:
|
| 18 |
-
load_dataset("
|
| 19 |
|
| 20 |
RGB source:
|
| 21 |
- Tries to read from the "default" HF config using common key patterns
|
|
@@ -224,7 +224,7 @@ def make_false_color_composite(Xt_proj: np.ndarray, H: int, W: int, target_heigh
|
|
| 224 |
|
| 225 |
def load_embeddings(model_config: str):
|
| 226 |
"""Return (tile_idxs list, dict tile_idx -> {'t0','t1','t2': np.ndarray[Np,D]})"""
|
| 227 |
-
ds = load_dataset("
|
| 228 |
tiles, X_by_tile = [], {}
|
| 229 |
for ex in ds:
|
| 230 |
tid = ex["idx"]
|
|
@@ -249,7 +249,7 @@ def load_rgb_triplet(tile_idx: str, rgb_template: str | None):
|
|
| 249 |
return frames
|
| 250 |
|
| 251 |
# Try HF default config with common key patterns
|
| 252 |
-
ds_def = load_dataset("
|
| 253 |
by_id = {ex["idx"]: ex for ex in ds_def}
|
| 254 |
if tile_idx not in by_id:
|
| 255 |
raise KeyError(f"Tile {tile_idx} not found in default config")
|
|
|
|
| 15 |
Processes both models (dinov2_base, dinov3_sat) automatically, generating separate outputs.
|
| 16 |
|
| 17 |
Embeddings source:
|
| 18 |
+
load_dataset("anondatasets/imageomics-2025", {model_config}, split="train")
|
| 19 |
|
| 20 |
RGB source:
|
| 21 |
- Tries to read from the "default" HF config using common key patterns
|
|
|
|
| 224 |
|
| 225 |
def load_embeddings(model_config: str):
|
| 226 |
"""Return (tile_idxs list, dict tile_idx -> {'t0','t1','t2': np.ndarray[Np,D]})"""
|
| 227 |
+
ds = load_dataset("anondatasets/imageomics-2025", model_config, split="train")
|
| 228 |
tiles, X_by_tile = [], {}
|
| 229 |
for ex in ds:
|
| 230 |
tid = ex["idx"]
|
|
|
|
| 249 |
return frames
|
| 250 |
|
| 251 |
# Try HF default config with common key patterns
|
| 252 |
+
ds_def = load_dataset("anondatasets/imageomics-2025", "default", split="train")
|
| 253 |
by_id = {ex["idx"]: ex for ex in ds_def}
|
| 254 |
if tile_idx not in by_id:
|
| 255 |
raise KeyError(f"Tile {tile_idx} not found in default config")
|