Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new cosine method #120

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MrTuanDao
Copy link
Contributor

@MrTuanDao MrTuanDao commented Jan 8, 2025

This update enhances the method for calculating cosine similarity to better handle low-quality images from miners. The previous approach relied on a CLIP model with a 384x384 resolution, which struggled to effectively evaluate low-quality issues in larger images.

Key Changes:

  1. New Quality Score Method:

    • Images from miners and validators are cropped into several regions.
    • The top 10 regions with the highest pixel similarity are selected.
    • The mean of these top 10 regions' cosine similarity scores is used as the final quality score.
  2. Old Method for Overall Similarity:

    • The original method is retained for calculating overall similarity between images.
  3. Adjusted Weighting:

    • The weight of the original method has been adjusted to prioritize overall similarity, while incorporating the new quality score to refine evaluations.

This combination ensures a more robust assessment of image quality and similarity, particularly for identifying and mitigating low-quality miner images.

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.

1 participant