Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This is how I've made this work -- inference only #15

Open
vali-fake-acc opened this issue Jan 16, 2021 · 0 comments
Open

This is how I've made this work -- inference only #15

vali-fake-acc opened this issue Jan 16, 2021 · 0 comments

Comments

@vali-fake-acc
Copy link

Installing packages:
conda env create x python=3.6
conda activate x
conda install --file requi* -y

Download audio:
youtube-dl https://www.youtube.com/watch?v=6IdXEOdRxPs -x --audio-format wav

Errors and solutions:

  • ModuleNotFoundError: No module named 'numba.decorators'
    conda install numba==0.48

  • TypeError: unsupported operand type(s) for /: 'Dimension' and 'int'
    change: reshaped = tf.reshape(pose_batch, (-1, 64, 2, shape[-1]/2))
    to: reshaped = tf.reshape(pose_batch, (-1, 64, 2, shape[-1].value/2))

  • TypeError: Value passed to parameter 'shape' has DataType float32 not in list of allowed values: int32, int64
    change: reshaped = tf.reshape(pose_batch, (-1, 64, 2, shape[-1].value/2))
    to: reshaped = tf.reshape(pose_batch, (-1, 64, 2, int(shape[-1].value/2)))

  • DataLossError (see above for traceback): Unable to open table file /media/data/study/AI/speech2gesture/rock-20210114T070036Z-001/rock/ckpt-step-296700.ckp.data-00000-of-00001: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator?
    [[Node: save/RestoreV2 = RestoreV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, ..., DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]]

    change: --checkpoint '/media/data/study/AI/speech2gesture/rock-20210114T070036Z-001/rock/'
    to: --checkpoint '/media/data/study/AI/speech2gesture/rock-20210114T070036Z-001/rock/ckpt-step-296700.ckp'
    -- not *.ckp.(index|meta|data)

You will have to change the paths
How to run:
/home/vali/system/apps/anaconda3/envs/x/bin/python -m audio_to_multiple_pose_gan.predict_audio --audio_path '/media/data/study/AI/speech2gesture/History of Rock, Part 1 by University of Rochester-6IdXEOdRxPs.wav' --output_path '/media/data/study/AI/speech2gesture/tmp/' --checkpoint '/media/data/study/AI/speech2gesture/rock-20210114T070036Z-001/rock/ckpt-step-296700.ckp' --speaker rock -ag audio_to_pose_gans --gans 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant