chaneyddtt / Convolutional-Sequence-to-Sequence-Model-for-Human-Dynamics

Source code of paper "Convolutional Sequence to Sequence Model for Human Dynamics"
MIT License
88 stars 18 forks source link

How to visualize my own training model #11

Open 1274739295 opened 3 years ago

1274739295 commented 3 years ago

hi,I encountered the following problem when visualizing my own training model: fid = h5f.open(name, flags, fapl=fapl) File "h5py_objects.pyx", line 54, in h5py._objects.with_phil.wrapper File "h5py_objects.pyx", line 55, in h5py._objects.with_phil.wrapper File "h5py\h5f.pyx", line 96, in h5py.h5f.open OSError: Unable to open file (unable to open file: name = './samples/CNNAdTrain_GANWEIGHT0.010000_Sampling0.950000Windowslength20-2000.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0) Thank you for answering my questions!

chaneyddtt commented 3 years ago

Hi, Do you generate the prediction samples using your own model and put it under a folder named 'samples'? You might also want to look into this related issue https://github.com/chaneyddtt/Convolutional-Sequence-to-Sequence-Model-for-Human-Dynamics/issues/11.

1274739295 commented 3 years ago

I put my own trained model in the samples folder, but I don't quite understand how to change the path in the forward_kinematics.py file, I changed line 19 to tf.app.flags.DEFINE_string("file", "CNNAdTrain_GANWEIGHT0.010000Sampling0.950000Windowslength20-2000.h5", "which file to load") Line 182 changed with h5py.File('D:/csetose/src/samples/'+FLAGS.file, 'r' ) as h5f: Line 211 changed path="D:/csetose/src/samples/"+FLAGS.file+'gt'+str(seed) +'/'+action My .h5 training model is placed in the location -------->src ----samples(.h5) -----Modles 截图20211123084242

1274739295 commented 3 years ago

截图20211123085033

1274739295 commented 3 years ago

The result of the run is as follows 截图20211123085334

chaneyddtt commented 3 years ago

Seems that your file name is not correct. It is 'Windowslength20' in the image, and your sample name is 'WindownLength20'. Maybe you can check your code to make sure that the file name in your code is consistent with the actual file name.

1274739295 commented 3 years ago

I am very sorry to trouble you for my carelessness, I got the result of 3D visualization, I would like to know how to get the result in your paper, for example, the figure below, thank you very much for your answer QQ截图20211123210953

1274739295 commented 3 years ago

One more question, I have my own training model results in .pt file, so can I directly convert it to .h5 file for visualization of training results. Thank you for your answer!

chaneyddtt commented 2 years ago

Hi sorry for the late reply. You can directly load your model and generate the predictions, and then save it in .h5 format.