|
|
2 hafta önce | |
|---|---|---|
| Model | 3 hafta önce | |
| Test | 2 hafta önce | |
| app | 2 hafta önce | |
| README.MD | 3 hafta önce | |
| run_defect_score_server.py | 1 ay önce |
python run.py
使用 /api/card_inference/mock_query
磨损: 1: 'wear', 2: 'wear_and_impact', 5: 'wear_and_stain',
缺失: 3: 'impact', 4: 'damaged',
base_score: 基础分数
corner: 角
rule: 分数规则
wear_area:"磨损的扣分规则"
loss_area: "缺失的扣分规则"
front_weights: "正面的权重分配"
wear_area:"-权重"
loss_area:"-权重"
back_weights: "背面的权重分配"
...
...
final_weights: "最终权重分配"
front: "正面权重"
back: "背面权重"
edge: 边
...与 corner 类似
face: 面
rule: 分数规则
wear_area: 磨损
pit_area: 凹坑
stain_area: 污渍
scratch_length: 划痕长度(!注意只有它看长度, 其他的看面积)
coefficients: 权重分配
...这里是几种缺陷对应的权重
final_weights: "最终权重分配"
...
centering: 居中
front: 正面
rules: 规则
coefficients: 权重分配
horizontal: 水平
vertical: 上下
back: 背面
...
final_weights: "最终权重分配"
...
card: 卡片
PSA: 卡的类型, 默认用它
...不同类型的权重最后分配
举例说明:
"wear_area": [
[
面积小于 0.05 平方毫米就扣0.1分
0.05,
-0.1
],
面积在 0.05-0.1之间扣0.5分
[
0.1,
-0.5
],
[
0.25,
-1.5
],
[
0.5,
-3.0
],
[
面积大于 0.5平方毫米扣 5分
"inf",
-5.0
]
],