|
@@ -31,11 +31,14 @@ class Settings:
|
|
|
'''
|
|
'''
|
|
|
face: "1": "wear", "2": "scratch", "3": "stain",
|
|
face: "1": "wear", "2": "scratch", "3": "stain",
|
|
|
"4": "scuff", "5": "impact", "6": "damaged",
|
|
"4": "scuff", "5": "impact", "6": "damaged",
|
|
|
- "7": "wear_and_impact"
|
|
|
|
|
- "8": "stain", "9": "pit"
|
|
|
|
|
|
|
+ "7": "wear_and_impact", "8": "pit"
|
|
|
|
|
|
|
|
corner: "1": "wear", "2": "wear_and_impact", "3": "damaged",
|
|
corner: "1": "wear", "2": "wear_and_impact", "3": "damaged",
|
|
|
"4": "impact", "5": "wear_and_stain"
|
|
"4": "impact", "5": "wear_and_stain"
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ 简化版本: 边和角: wear, impact, damaged
|
|
|
|
|
+ 面: wear, scratch, pit, impact, stain
|
|
|
'''
|
|
'''
|
|
|
CARD_MODELS_CONFIG: Dict[str, CardModelConfig] = {
|
|
CARD_MODELS_CONFIG: Dict[str, CardModelConfig] = {
|
|
|
"outer_box": {
|
|
"outer_box": {
|
|
@@ -78,31 +81,28 @@ class Settings:
|
|
|
},
|
|
},
|
|
|
"pokemon_front_face_reflect_defect": {
|
|
"pokemon_front_face_reflect_defect": {
|
|
|
"pth_path": "Model/pokemon_front_face_reflect_defect.pth",
|
|
"pth_path": "Model/pokemon_front_face_reflect_defect.pth",
|
|
|
- "class_dict": {"1": "stain", "2": "scratch", "3": "impact", "4": "wear"},
|
|
|
|
|
|
|
+ "class_dict": {"1": "stain","2": "scratch","3": "impact","4": "wear","5": "wear"},
|
|
|
"img_size": {'width': 512, 'height': 512},
|
|
"img_size": {'width': 512, 'height': 512},
|
|
|
"confidence": 0.5,
|
|
"confidence": 0.5,
|
|
|
"input_channels": 3,
|
|
"input_channels": 3,
|
|
|
},
|
|
},
|
|
|
"pokemon_front_corner_reflect_defect": {
|
|
"pokemon_front_corner_reflect_defect": {
|
|
|
"pth_path": "Model/pokemon_front_corner_reflect_defect.pth",
|
|
"pth_path": "Model/pokemon_front_corner_reflect_defect.pth",
|
|
|
- "class_dict": {"1": "impact", "2": "wear_and_impact", "3": "wear"},
|
|
|
|
|
|
|
+ "class_dict": {"1": "impact","2": "wear_and_impact","3": "wear"},
|
|
|
"img_size": {'width': 512, 'height': 512},
|
|
"img_size": {'width': 512, 'height': 512},
|
|
|
"confidence": 0.5,
|
|
"confidence": 0.5,
|
|
|
"input_channels": 3,
|
|
"input_channels": 3,
|
|
|
},
|
|
},
|
|
|
"pokemon_front_corner_no_reflect_defect": {
|
|
"pokemon_front_corner_no_reflect_defect": {
|
|
|
"pth_path": "Model/pokemon_front_corner_no_reflect_defect.pth",
|
|
"pth_path": "Model/pokemon_front_corner_no_reflect_defect.pth",
|
|
|
- "class_dict": {"1": "wear", "2": "wear_and_impact", "3": "impact",
|
|
|
|
|
- "4": "damaged", "5": "stain"},
|
|
|
|
|
|
|
+ "class_dict": {"1": "wear","2": "wear_and_impact","3": "impact","4": "damaged","5": "stain"},
|
|
|
"img_size": {'width': 512, 'height': 512},
|
|
"img_size": {'width': 512, 'height': 512},
|
|
|
"confidence": 0.5,
|
|
"confidence": 0.5,
|
|
|
"input_channels": 3,
|
|
"input_channels": 3,
|
|
|
},
|
|
},
|
|
|
"pokemon_front_face_no_reflect_defect": {
|
|
"pokemon_front_face_no_reflect_defect": {
|
|
|
"pth_path": "Model/pokemon_front_face_no_reflect_defect.pth",
|
|
"pth_path": "Model/pokemon_front_face_no_reflect_defect.pth",
|
|
|
- "class_dict": {"1": "scratch", "2": "wear", "3": "stain", "4": "damaged",
|
|
|
|
|
- "5": "impact", "6": "wear_and_impact",
|
|
|
|
|
- "7": "chip", "8": "protrudent", "9": "wear_and_stain"},
|
|
|
|
|
|
|
+ "class_dict": {"1": "scratch", "2": "wear", "3": "stain", "4": "damaged", "5": "impact"},
|
|
|
"img_size": {'width': 512, 'height': 512},
|
|
"img_size": {'width': 512, 'height': 512},
|
|
|
"confidence": 0.5,
|
|
"confidence": 0.5,
|
|
|
"input_channels": 3,
|
|
"input_channels": 3,
|