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

centos执行python create_virtual_human.py --config default.yaml报错TypeError #75

Open
rainfall4689 opened this issue Jan 3, 2024 · 0 comments

Comments

@rainfall4689
Copy link

操作系统是centos7,执行python create_virtual_human.py --config default.yaml报错:
TypeError: function takes exactly 8 arguments (2 given)
麻烦问下,是什么原因,怎么解决呢?

下面是日志
[root@localhost PaddleBoBo-0.1]# python3 create_virtual_human.py --config default.yaml
[01/02 22:10:55] ppgan INFO: Found /root/.cache/ppgan/GPEN-512.pdparams
Traceback (most recent call last):
File "/home/root/python/paddlebobo/PaddleBoBo-0.1/create_virtual_human.py", line 1, in
from PaddleTools.GAN import FOM
File "/home/root/python/paddlebobo/PaddleBoBo-0.1/PaddleTools/GAN.py", line 6, in
wav2lip_predictor = Wav2LipPredictor(face_det_batch_size = 2,
File "/usr/local/python3.9/lib/python3.9/site-packages/ppgan/apps/wav2lip_predictor.py", line 49, in init
self.faceenhancer = FaceEnhancement()
File "/usr/local/python3.9/lib/python3.9/site-packages/ppgan/faceutils/face_enhancement/face_enhance.py", line 37, in init
model_weights_path = get_path_from_url(GPEN_weights)
File "/usr/local/python3.9/lib/python3.9/site-packages/ppgan/utils/download.py", line 85, in get_path_from_url
if tarfile.is_tarfile(fullpath) or zipfile.is_zipfile(fullpath):
File "/usr/local/python3.9/lib/python3.9/tarfile.py", line 2773, in is_tarfile
t = open(name)
File "/usr/local/python3.9/lib/python3.9/tarfile.py", line 1792, in open
return func(name, "r", fileobj, **kwargs)
File "/usr/local/python3.9/lib/python3.9/tarfile.py", line 1891, in bz2open
t = cls.taropen(name, mode, fileobj, **kwargs)
File "/usr/local/python3.9/lib/python3.9/tarfile.py", line 1840, in taropen
return cls(name, mode, fileobj, **kwargs)
File "/usr/local/python3.9/lib/python3.9/tarfile.py", line 1703, in init
self.firstmember = self.next()
File "/usr/local/python3.9/lib/python3.9/tarfile.py", line 2615, in next
raise e
File "/usr/local/python3.9/lib/python3.9/tarfile.py", line 2588, in next
tarinfo = self.tarinfo.fromtarfile(self)
File "/usr/local/python3.9/lib/python3.9/tarfile.py", line 1291, in fromtarfile
buf = tarfile.fileobj.read(BLOCKSIZE)
File "/usr/local/python3.9/lib/python3.9/bz2.py", line 171, in read
return self._buffer.read(size)
File "/usr/local/python3.9/lib/python3.9/_compression.py", line 68, in readinto
data = self.read(len(byte_view))
File "/usr/local/python3.9/lib/python3.9/_compression.py", line 103, in read
data = self._decompressor.decompress(rawblock, size)
TypeError: function takes exactly 8 arguments (2 given)

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