sebastianstarke / AI4Animation

Bringing Characters to Life with Computer Brains in Unity
7.41k stars 1.03k forks source link

error while training on pytorch SIGGRAPH_2022 #94

Closed kotaxyz closed 1 year ago

kotaxyz commented 1 year ago

i get this error when i try to run training

(DeepPhaseSubmission) C:\Users\Genesis\unity ai\SIGGRAPH_2022\PyTorch\PAE>python Train.py Loading Dataset/DataShape.txt Loading Dataset/Sequences.txt Generating Data Sequences Data Sequences: 342248 Test Sequences: 3330 Training Phases Traceback (most recent call last): File "Train.py", line 141, in <module> train_batch = LoadBatches(train_indices) File "Train.py", line 56, in LoadBatches batch = utility.ReadBatchFromFile(DataFile, gather.flatten(), feature_dim) File "..\Library\Utility.py", line 185, in ReadBatchFromFile data[i] = np.float32(array.array('f', bytes)) ValueError: could not broadcast input array from shape (0) into shape (78)

gillesroux commented 1 year ago

The same happened to me and it turned out the PyTorch/PAE/Dataset/Data.bin file was invalid, weighing a few hundred bytes instead of a few MB. I downloaded the file again and it fixed the error.

kotaxyz commented 1 year ago

thanks mate i will try it and inform you

The same happened to me and it turned out the PyTorch/PAE/Dataset/Data.bin file was invalid, weighing a few hundred bytes instead of a few MB. I downloaded the file again and it fixed the error.

thanks mate i will try it out and inform you

kotaxyz commented 1 year ago

It worked thanks mate