Talking-Face-Generation-DAVS icon indicating copy to clipboard operation
Talking-Face-Generation-DAVS copied to clipboard

SyntaxError: invalid token

Open c1a1o1 opened this issue 6 years ago • 2 comments

E:\Users\Raytine\Anaconda3\python.exe F:/future/Talking-Face-Generation-DAVS-master/ptest_all.py --test_root './shuju/audio' --test_type 'audio' --test_audio_video_length 99 --test_resume_path CHECKPOINT_PATH Traceback (most recent call last): File "F:/future/Talking-Face-Generation-DAVS-master/ptest_all.py", line 11, in import Test_Gen_Models.Test_Video_Model as Gen_Model File "F:\future\Talking-Face-Generation-DAVS-master\Test_Gen_Models\Test_Video_Model.py", line 12, in import network.IdentityEncoder as IdentityEncoder File "F:\future\Talking-Face-Generation-DAVS-master\network\IdentityEncoder.py", line 46 self.add_module('block' + str(01), BasicBlock(3, 32, name="01", conv_std=0.025253814, kernel_size=7, stride=2, padding=3)) ^ SyntaxError: invalid token

c1a1o1 avatar Jul 24 '18 08:07 c1a1o1

This project is written in python 2.7 and I notice you are using python 3. I am not sure whether this caused the problem but it should be running fine in python 2.7 with PyTorch 0.2 environment. Sorry that I did not add this to the requirements before.

Hangz-nju-cuhk avatar Jul 24 '18 13:07 Hangz-nju-cuhk

For me , the code is running fine in python 2.7 with pytorch 0.4 environment.

xiaoyun4 avatar Jul 24 '18 15:07 xiaoyun4