Commit c04a5c973cc62fecbf592a8c336a8cf2906713ea
1 parent
e5edf7f6
Flag Cascade as untrainable if using one of the default models
Showing
1 changed file
with
2 additions
and
0 deletions
openbr/plugins/cascade.cpp
| ... | ... | @@ -252,6 +252,8 @@ class CascadeTransform : public MetaTransform |
| 252 | 252 | void init() |
| 253 | 253 | { |
| 254 | 254 | cascadeResource.setResourceMaker(new CascadeResourceMaker(model)); |
| 255 | + if (model == "Ear" || model == "Eye" || model == "FrontalFace" || model == "ProfileFace") | |
| 256 | + this->trainable = false; | |
| 255 | 257 | } |
| 256 | 258 | |
| 257 | 259 | // Train transform | ... | ... |