lightly icon indicating copy to clipboard operation
lightly copied to clipboard

Add random block wise mask from Pixio

Open gabrielfruet opened this issue 7 months ago • 1 comments

#1894

This is part of a series of PR's to implement the Pixio paper.

  • Tests added
  • Documentation referencing the author
  • Using same API as the other masking functions

The only difference is the num_prefix_tokens vs mask_class_token. Since Pixio relies on register tokens, the mask_class_token was not suitable for choosing whether to mask or not the REG/CLS tokens.

gabrielfruet avatar Apr 27 '26 21:04 gabrielfruet

Codecov Report

:x: Patch coverage is 97.43590% with 1 line in your changes missing coverage. Please review. :white_check_mark: Project coverage is 86.25%. Comparing base (c792812) to head (8b10f9d). :warning: Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
lightly/models/utils.py 97.43% 1 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1919      +/-   ##
==========================================
+ Coverage   86.19%   86.25%   +0.06%     
==========================================
  Files         169      169              
  Lines        7071     7110      +39     
==========================================
+ Hits         6095     6133      +38     
- Misses        976      977       +1     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar May 06 '26 08:05 codecov[bot]