File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 22
22
MothClassifierTuringAnguilla ,
23
23
MothClassifierTuringCostaRica ,
24
24
MothClassifierUKDenmark ,
25
+ InsectOrderClassifier
25
26
)
26
27
from .models .localization import APIMothDetector
27
28
from .schemas import (
47
48
"anguilla_moths_turing_2024" : MothClassifierTuringAnguilla ,
48
49
"global_moths_2024" : MothClassifierGlobal ,
49
50
"moth_binary" : MothClassifierBinary ,
51
+ "insect_orders_2025" : InsectOrderClassifier
50
52
}
51
53
_classifier_choices = dict (
52
54
zip (CLASSIFIER_CHOICES .keys (), list (CLASSIFIER_CHOICES .keys ()))
57
59
58
60
59
61
def should_filter_detections (Classifier : type [APIMothClassifier ]) -> bool :
60
- if Classifier == MothClassifierBinary :
62
+ if Classifier in [ MothClassifierBinary , InsectOrderClassifier ] :
61
63
return False
62
64
else :
63
65
return True
You can’t perform that action at this time.
0 commit comments