sebastianstarke / AI4Animation

Bringing Characters to Life with Computer Brains in Unity
7.39k stars 1.02k forks source link

PFNN(Adam version) Weights I Trained Reading Error #55

Open AndyVerne opened 3 years ago

AndyVerne commented 3 years ago

Hi there. First of all, I want to reproduce the results of SIGGRPAH_2017(Adam Version) work. So I try to export some data for training in SIGGRPAH_2017 work. Here are the steps that I tried to do.

  1. I learned that I could export some locomotion data in the SIGGRAPH_Asia_2019 work.
  2. I copy the locomotion data of Motion Capture in the SIGGRAPH_Asia_2019 work to the SIGGRAPH_2017, and I exported the data to Input.txt and Output.txt via the build-in Motion Exporter and Motion Editor in the SIGGPRAPH_2017 project.
  3. I put the txt file in data folder for training in TensorFlow. But , the weights I got after training can not be read in unity. Here are the logs about reading error for the example of Xstd.bin : There were 49 errors reading file at path E:\SIGGRAH2017\SIGGRAPH_2017\TensorFlow\trained_Adam(6)/Xstd.bin. UnityEngine.Debug:Log(Object) DeepLearning.Parameters:ReadBinary(String, Int32, Int32, String) (at E:/SIGGRAH2017/SIGGRAPH_2017_Original/Unity/Assets/Scripts/DeepLearning/Parameters.cs:49) DeepLearning.Parameters:Store(String, Int32, Int32, String) (at E:/SIGGRAH2017/SIGGRAPH_2017_Original/Unity/Assets/Scripts/DeepLearning/Parameters.cs:18) DeepLearning.PFNN:StoreParametersDerived() (at E:/SIGGRAH2017/SIGGRAPH_2017_Original/Unity/Assets/Scripts/DeepLearning/Models/PFNN.cs:30) DeepLearning.NeuralNetwork:StoreParameters() (at E:/SIGGRAH2017/SIGGRAPH_2017_Original/Unity/Assets/Scripts/DeepLearning/NeuralNetwork.cs:28) DeepLearning.NeuralNetwork_Editor:OnInspectorGUI() (at E:/SIGGRAH2017/SIGGRAPH_2017_Original/Unity/Assets/Scripts/DeepLearning/NeuralNetwork.cs:245) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

I am so confused about the result of reading errors.Is there something wrong I didn't notice or some conditions I ignored? Could someone help me out? 🙇‍Thanks a lot in advance!

ffffuturexu commented 2 years ago

Hi, I was wondering if you have solved this issue or not. I have the same issue here. could you share any solutions if you have already solved it? Thank you a lot.

EphTron commented 1 year ago

Hello, I get a similar error even with the original trained adam data when pressing "store parameters" in the inspector with the following folder path: ......\AI4Animation\SIGGRAPH_2017\TensorFlow\trained_Adam

For example: There were 436 errors reading file at path ..\..\..\AI4Animation\SIGGRAPH_2017\TensorFlow\trained_Adam/Xmean.bin. UnityEngine.Debug:Log (object) DeepLearning.Parameters:ReadBinary (string,int,int,string) (at Assets/Scripts/DeepLearning/Parameters.cs:49) DeepLearning.Parameters:Store (string,int,int,string) (at Assets/Scripts/DeepLearning/Parameters.cs:18) DeepLearning.PFNN:StoreParametersDerived () (at Assets/Scripts/DeepLearning/Models/PFNN.cs:29) DeepLearning.NeuralNetwork:StoreParameters () (at Assets/Scripts/DeepLearning/NeuralNetwork.cs:28) DeepLearning.NeuralNetwork_Editor:OnInspectorGUI () (at Assets/Scripts/DeepLearning/NeuralNetwork.cs:245) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

DenisKochetov commented 1 month ago

maybe try to save the weights with another tensorflow version (same as in the paper)