0xZohar commited on
Commit
01f651c
·
verified ·
1 Parent(s): 4e244a4

Add diagnostic logging for label mapping file loading

Browse files
Files changed (1) hide show
  1. code/cube3d/config.py +9 -0
code/cube3d/config.py CHANGED
@@ -202,8 +202,17 @@ def get_mapping_paths(mapping_type: str = "subset_1k") -> Tuple[str, str]:
202
  forward_path = LABEL_MAPPINGS[mapping_type]["forward"]
203
  inverse_path = LABEL_MAPPINGS[mapping_type]["inverse"]
204
 
 
 
 
 
 
 
 
 
205
  # Check if files exist
206
  if forward_path.exists() and inverse_path.exists():
 
207
  return str(forward_path), str(inverse_path)
208
 
209
  # Files don't exist - generate from LDR files as fallback
 
202
  forward_path = LABEL_MAPPINGS[mapping_type]["forward"]
203
  inverse_path = LABEL_MAPPINGS[mapping_type]["inverse"]
204
 
205
+ # Diagnostic logging for HF Spaces debugging
206
+ print(f"🔍 [DEBUG] get_mapping_paths() called for: {mapping_type}")
207
+ print(f" PROJECT_ROOT: {PROJECT_ROOT}")
208
+ print(f" Forward path: {forward_path}")
209
+ print(f" Inverse path: {inverse_path}")
210
+ print(f" Forward exists: {forward_path.exists()}")
211
+ print(f" Inverse exists: {inverse_path.exists()}")
212
+
213
  # Check if files exist
214
  if forward_path.exists() and inverse_path.exists():
215
+ print(f" ✅ Both files exist, returning paths")
216
  return str(forward_path), str(inverse_path)
217
 
218
  # Files don't exist - generate from LDR files as fallback