Skip to content

Commit

Permalink
fix(classifier): rename 'none' to 'raw'
Browse files Browse the repository at this point in the history
  • Loading branch information
williamfzc committed Jul 18, 2019
1 parent 595d051 commit 4586826
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/classify_with_svm.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


# 默认情况下使用 HoG 进行特征提取
# 你可以将其关闭从而直接对原始图片进行训练与测试:feature_type='none'
# 你可以将其关闭从而直接对原始图片进行训练与测试:feature_type='raw'
cl = SVMClassifier(feature_type='hog')

# 基本与SSIM分类器的流程一致
Expand Down
2 changes: 1 addition & 1 deletion stagesepx/classifier/svm.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class SVMClassifier(BaseClassifier):
# 'surf': toolbox.turn_surf_desc,

# do not use feature transform
'none': lambda x: x,
'raw': lambda x: x,
}

def __init__(self, feature_type: str = None):
Expand Down

0 comments on commit 4586826

Please sign in to comment.