Resolve WES-132-Common-Abstract-Minigame

This commit is contained in:
Jerome Coudron
2023-04-23 21:20:12 +00:00
committed by Jelle De Geest
parent 4fdb8f95cb
commit 966475455a
30 changed files with 1046 additions and 1078 deletions

View File

@@ -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;
}
}