anky2002 commited on
Commit
4def862
·
verified ·
1 Parent(s): b8e7248

Upload agents/modality_detector.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. agents/modality_detector.py +5 -0
agents/modality_detector.py CHANGED
@@ -256,6 +256,9 @@ def _get_modality_adjustments(modality: str) -> dict:
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":
@@ -269,6 +272,8 @@ def _get_modality_adjustments(modality: str) -> dict:
269
  "Software Detection": 0.2, # Stripped
270
  "JPEG Quantization": 0.3, # Re-encoded with generic tables
271
  "CFA Nyquist": 0.5, # Re-encoding destroys CFA traces
 
 
272
  }
273
 
274
  elif modality == "SOCIAL_MEDIA":
 
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
+ # Sensor tests affected by computational processing
260
+ "Demosaic Interpolation": 0.4, # Heavy ISP processing removes demosaic traces
261
+ "Saturation Clipping": 0.4, # Computational HDR avoids clipping artificially
262
  }
263
 
264
  elif modality == "MESSAGING":
 
272
  "Software Detection": 0.2, # Stripped
273
  "JPEG Quantization": 0.3, # Re-encoded with generic tables
274
  "CFA Nyquist": 0.5, # Re-encoding destroys CFA traces
275
+ "Watermark Detection": 0.2, # JPEG grid creates spectral peaks — not a real watermark
276
+ "Demosaic Interpolation": 0.5, # Re-encoding smooths demosaic
277
  }
278
 
279
  elif modality == "SOCIAL_MEDIA":