anky2002 commited on
Commit
5ed2449
·
verified ·
1 Parent(s): 05c8a6f

Upload agents/modality_detector.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. agents/modality_detector.py +8 -0
agents/modality_detector.py CHANGED
@@ -250,6 +250,12 @@ def _get_modality_adjustments(modality: str) -> dict:
250
  "HF Noise Structure": 0.3, # Blur region has different noise
251
  "Noise Spatial Frequency": 0.3, # Same reason
252
  "CFA Nyquist": 0.5, # Computational processing removes CFA
 
 
 
 
 
 
253
  }
254
 
255
  elif modality == "MESSAGING":
@@ -300,6 +306,8 @@ def _get_modality_adjustments(modality: str) -> dict:
300
  "Vignetting cos⁴θ": 0.5, # Computational correction
301
  "CFA Nyquist": 0.7, # Heavy ISP processing
302
  "Poisson-Gaussian Model": 0.7, # Noise reduction
 
 
303
  }
304
 
305
  else: # DSLR or UNKNOWN
 
250
  "HF Noise Structure": 0.3, # Blur region has different noise
251
  "Noise Spatial Frequency": 0.3, # Same reason
252
  "CFA Nyquist": 0.5, # Computational processing removes CFA
253
+ # Spectral tests affected by computational photography
254
+ "Spectral Slope 1/f²": 0.5, # Frequency-selective sharpening steepens slope
255
+ "Spectral Symmetry": 0.4, # Depth-based processing creates asymmetry
256
+ "Phase Coherence": 0.4, # Segmentation boundary = phase discontinuity
257
+ # Sensor tests affected by smartphone tone curves
258
+ "Pixel Response Linearity": 0.3, # Aggressive HDR/tone mapping = expected non-linearity
259
  }
260
 
261
  elif modality == "MESSAGING":
 
306
  "Vignetting cos⁴θ": 0.5, # Computational correction
307
  "CFA Nyquist": 0.7, # Heavy ISP processing
308
  "Poisson-Gaussian Model": 0.7, # Noise reduction
309
+ "Pixel Response Linearity": 0.4, # HDR/tone mapping = non-linear
310
+ "Spectral Slope 1/f²": 0.7, # Sharpening affects slope
311
  }
312
 
313
  else: # DSLR or UNKNOWN