-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: heuristic matching for "びしょ濡れのしずくちゃん" #1370
Conversation
@Sayamame-beans 一部ユニットテストの意図が分からなかったものもあるので確認お願いします 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
処理内容未確認です
とりあえず元の意図の思い出しをしました
@@ -17,7 +17,7 @@ public void TestNoPrefixSuffix() | |||
|
|||
var outfit = CreateChild(root, "Outfit"); | |||
var outfit_armature = CreateChild(outfit, "armature"); | |||
var outfit_hips = CreateChild(outfit_armature, "hips"); | |||
var outfit_hips = CreateChild(outfit_armature, "hip"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
元の意図: アバターがhipで衣装がhipsでもsuffixは空であることの確認
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
変更されているようにhip同士でも十分そう
(TestDifferentHipsNameにおける"pre_hips.suf"
があれば十分そう)
@@ -42,21 +42,33 @@ public void TestDifferentHipsName() | |||
|
|||
var outfit = CreateChild(root, "Outfit"); | |||
var outfit_armature = CreateChild(outfit, "armature"); | |||
var outfit_hips = CreateChild(outfit_armature, "pre_Hips.suf"); | |||
var outfit_hips = CreateChild(outfit_armature, "pre_hips.suf"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
元の意図: ケース違いでの対応チェック(ケース違いにする必要なさそうかも)
@@ -101,8 +115,38 @@ public void TestSameHipsName_Fail() | |||
|
|||
outfit_mama.InferPrefixSuffix(); | |||
|
|||
// Current(v1.10.x) InferPrefixSuffix fail to infer prefix/suffix when avatar has unique prefix/suffix and outfit has their name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
元の意図: 完全一致の優先度が低かったため、hipsとしての認識が優先されていた(多分そう)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
このテストの求めていた仕様は・・・?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bd_さんがされてるように一致することが理想的で、しかしあの段階では無理であったので、無理であることの確認が入ってました
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
今回の変更により問題なくなった(推定出来るようになった)
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
修正ありがとうございます!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
確認: 旧手法(アバター側ボーン名との一致確認)をやり、その後に新手法(辞書確認)をやり、ボーン全体での一致数を見た際に後者が前者の2倍以上一致しているなら後者を採用、それ以外は前者
特に恩恵を受けるのは、normalize処理をしない純粋な一致確認でも十分にprefix/suffixが推定出来る(しずくさんとその対応衣装のような)ケース
良さそうですね…?
@@ -17,7 +17,7 @@ public void TestNoPrefixSuffix() | |||
|
|||
var outfit = CreateChild(root, "Outfit"); | |||
var outfit_armature = CreateChild(outfit, "armature"); | |||
var outfit_hips = CreateChild(outfit_armature, "hips"); | |||
var outfit_hips = CreateChild(outfit_armature, "hip"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
変更されているようにhip同士でも十分そう
(TestDifferentHipsNameにおける"pre_hips.suf"
があれば十分そう)
@@ -101,8 +115,38 @@ public void TestSameHipsName_Fail() | |||
|
|||
outfit_mama.InferPrefixSuffix(); | |||
|
|||
// Current(v1.10.x) InferPrefixSuffix fail to infer prefix/suffix when avatar has unique prefix/suffix and outfit has their name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
今回の変更により問題なくなった(推定出来るようになった)
👍
} | ||
|
||
[Test] | ||
public void TestSpuriousMatch() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
よさそうです👍
No description provided.