Skip to content

Fix LFW eval distance shape - #47

Open
ZardLi1115 wants to merge 1 commit into
bubbliiiing:mainfrom
ZardLi1115:fix-lfw-eval-distance-shape
Open

Fix LFW eval distance shape#47
ZardLi1115 wants to merge 1 commit into
bubbliiiing:mainfrom
ZardLi1115:fix-lfw-eval-distance-shape

Conversation

@ZardLi1115

Copy link
Copy Markdown

Summary

  • Add a shared LFW distance helper that flattens each model output to one feature vector per sample before computing pair distance.
  • Use the helper in both standalone LFW evaluation and training-time LFW validation so distance arrays stay one-dimensional and match the label array.

Tests

  • python -m py_compile utils/utils_metrics.py utils/utils_fit.py
  • python inline shape check for calculate_lfw_distance with fake 4D outputs (workspace lacks numpy/torch)
  • git -c core.whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol diff --check

Fixes #46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

eval_LFW

1 participant