karanvivekbhargava / obamanet

ObamaNet : Photo-realistic lip-sync from audio (Unofficial port)
MIT License
235 stars 71 forks source link

How to create .pkl files for own data set. #12

Closed Pawankhatri2k13 closed 5 years ago

Pawankhatri2k13 commented 5 years ago

I am using this model for own videos, pix2pix.py training has been completed which generates .data, .index and .meta model files but cannot run train.py for keras models due to no pkl files.

Kindly help me in generating data/audio_kp/audio_kp1467_mel.pickle, data/pca/pkp1467.pickle and data/pca/pca1467.pickle files used in train.py.

Pawankhatri2k13 commented 5 years ago

I've created all above mentioned .pkl files with processing.py code, but now stuck in how to generate kp_test.pkl file.

Kindly help in this regard.

Pawankhatri2k13 commented 5 years ago

but it is still not cleared that how to prepare "a2key_data" folder and specially the file "kp_test.pickle" . There is nothing in "processing.py" to create this file. I've read this pickle file with Python and seen Numpy arrays against each image in "images/" folder, but unable to understand that how to create these Numpy arrays as they are also not simply image to Numpy converted arrays.

Please help in this regard.

wanshun123 commented 5 years ago

Looks like it's in the prepare_test_video.py file.