Question about training error in stage 1
Traceback (most recent call last):
File "/media/E/3DTalk/CodeTalker-main/main/train_pred.py", line 242, in
Could you tell me where is the "autoencoder"?
Hi. What is your training command and actual training code (.py)? It seems that you are training discrete motion prior (stage1) using the stage2 training script?
Thanks for replying to me.
sh scripts/train.sh CodeTalker_s1 config/vocaset/stage1.yaml vocaset s1
Hi. It seems that the script "train.sh" cannot correctly work for the stage1/stage2 if condition in your bash shell. I think a simple way is just to replace the training code in train.sh for different stages, for example, just comment out L14-22 in train.sh, and
When you are training stage 1, add the following code below L22:
TRAIN_CODE=train_vq.py
TEST_CODE=test_vq.py
When you are training stage 2, add the following code below L22:
TRAIN_CODE=train_pred.py
TEST_CODE=test_pred.py
Anyway, you need to make sure that you are using train_vq.py/test_vq.py for stage 1, train_pred.py/test_pred.py for stage 2.
It is a pretrained moel weights of wav2vec2 released by facebook. If it cannot be automatically downloaded, you can download these files manually and change the path to your local wav2vec2-base-960h folder.
if [ "${stage}" = "s1" ]; then
Yes! I encountered the same error and solved it with this method