Resolve WES-132-Common-Abstract-Minigame
This commit is contained in:
committed by
Jelle De Geest
parent
4fdb8f95cb
commit
966475455a
@@ -297,6 +297,7 @@ public class SignPredictor : MonoBehaviour
|
||||
/// </summary>
|
||||
private static bool resourceManagerIsInitialized = false;
|
||||
|
||||
private List<string> signs;
|
||||
private EmbeddingDataList embeddingDataList;
|
||||
|
||||
private ModelIndex modelID;
|
||||
@@ -521,15 +522,6 @@ public class SignPredictor : MonoBehaviour
|
||||
{
|
||||
learnableProbabilities = new Dictionary<string, float>();
|
||||
|
||||
// Temporary fix
|
||||
List<string> signs = new List<string>()
|
||||
{
|
||||
"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M",
|
||||
"N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"
|
||||
};
|
||||
|
||||
|
||||
|
||||
for (int j = 0; j < result.Count; j++)
|
||||
{
|
||||
learnableProbabilities.Add(signs[j].ToUpper(), result[j]);
|
||||
@@ -715,4 +707,8 @@ public class SignPredictor : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
public void SetSignsList(List<string> signs)
|
||||
{
|
||||
this.signs = signs;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user