Skip to content

Commit

Permalink
replace OP_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
drcege committed Nov 28, 2023
1 parent 037baec commit e2c7970
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data_juicer/ops/filter/face_area_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def get_classifier(self):
return cv2.CascadeClassifier(cv2.data.haarcascades + self.file_path)


@OPERATORS.register_module('face_area_filter')
@LOADED_IMAGES.register_module('face_area_filter')
@OPERATORS.register_module(OP_NAME)
@LOADED_IMAGES.register_module(OP_NAME)
class FaceAreaFilter(Filter):
"""Filter to keep samples with face area ratio within a specific range.
"""
Expand Down

0 comments on commit e2c7970

Please sign in to comment.