|
|
@@ -108,6 +108,23 @@ class Settings:
|
|
|
"confidence": 0.5,
|
|
|
"input_channels": 3,
|
|
|
},
|
|
|
+ # 2个环光的面模型
|
|
|
+ "pokemon_back_face_ring_light_defect": {
|
|
|
+ "pth_path": "Model/pokemon_back_face_ring_light_defect.pth",
|
|
|
+ "class_dict": {"1": "wear", "2": "scratch", "3": "stain", "4": "protrudent",
|
|
|
+ "5": "damaged", "6": "wear_and_impact", "7": "impact"},
|
|
|
+ "img_size": {'width': 512, 'height': 512},
|
|
|
+ "confidence": 0.5,
|
|
|
+ "input_channels": 3,
|
|
|
+ },
|
|
|
+ "pokemon_front_face_reflect_ring_light_defect": {
|
|
|
+ "pth_path": "Model/pokemon_front_face_reflect_ring_light_defect.pth",
|
|
|
+ "class_dict": {"1": "impact", "2": "wear", "3": "scratch", "4": "wear_and_impact",
|
|
|
+ "5": "stain", "6": "damaged", "7": "protrudent"},
|
|
|
+ "img_size": {'width': 512, 'height': 512},
|
|
|
+ "confidence": 0.5,
|
|
|
+ "input_channels": 3,
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
# 包含, 环形光居中计算, 环形光正反边角缺陷, 同轴光正反表面缺陷
|
|
|
@@ -138,11 +155,18 @@ class Settings:
|
|
|
},
|
|
|
"pokemon_front_face_no_reflect_defect": {
|
|
|
"model_type": "pokemon_front_face_no_reflect_defect",
|
|
|
+ },
|
|
|
+ # 2个环光的
|
|
|
+ "pokemon_back_face_ring_light_defect": {
|
|
|
+ "model_type": "pokemon_back_face_ring_light_defect"
|
|
|
+ },
|
|
|
+ "pokemon_front_face_reflect_ring_light_defect": {
|
|
|
+ "model_type": "pokemon_front_face_reflect_ring_light_defect",
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- SCORE_TYPE: List[str] = ["front_corner_edge", "front_face",
|
|
|
- "back_corner_edge", "back_face"]
|
|
|
+ SCORE_TYPE: List[str] = ["front_corner_edge", "front_face", "front_face_ring_light",
|
|
|
+ "back_corner_edge", "back_face", "back_face_ring_light"]
|
|
|
|
|
|
|
|
|
settings = Settings()
|