-
Notifications
You must be signed in to change notification settings - Fork 80
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
TypeError: __init__() takes 3 positional arguments but 7 were given #47
Comments
You can use the old release version of SadTalker v0.0.1, and change the checkpoint_dir = 'checkpoints/' |
Thank you so much, but seemingly SadTalker v0.0.2 and v0.0.1 have different directory structure. Which version's structure should I follow? Because just placing SadTalker v0.0.1 (after renaming to SadTalker) under |
The sadtalker I used is v.0.0.1. The files in the folder "src" are copied from v.0.0.1, except for "utils". |
Thank you so much for your help. After the weekends, I'm back at work and now came a lot more than before. I think all I need is properly mixing files, some from v0.0.1 and others from v0.0.2. I am encountering these kinds of errors on and on, confused which file to use for the same functionality. So if you have time, would you run |
Actually I succeeded in inferencing, but the output sucks. What about yours? |
Glad to hear that. |
That's interesting. Do you mind sharing the code (the SadTalker folder you are using itself without checkpoints) by any means - ex. via Google drive or email? I want to make clean-code version of this repository such that many young learners perform their best in talking face generation task. Of course credit will also go to you too. Anyways, appreciate your help even for a stranger. THANKS! |
I've change the code of inference.py : def reenactment(generator, data):
def audio_reenactment(generator, data, audio_path):
}
def attribute_edit(generator, data):
def intuitive_edit(generator, data):
def parse_args(): def main():
if name == 'main': ` |
key point is
|
I tried
python inference.py --config configs/inference.yaml --audio_path=audio/hama_8.wav --image_source=image/justin.jpeg --cross_id --if_extract --output_dir=./docs/demo/output --inversion_option=optimize
for generating talking faces with driving audio.But the terminal raises the following error:
Tracking back the error messages, I realized that, in line 111 of
inference.py
, Audio2Coeff class is taking 6 arguments while the constructor of Audio2Coeff (line 27 intest_audio2coeff.py
- path : ./third_part/SadTalker/src) is taking only 3 arguments.Other than the inconsistent number of arguments, I don't understand why the error message says '7 were given', not '6 were given'.
�One more thing I realized is that even the constructor doesn't take 3 arguments. Actually it takes only two excluding self argument. Any explanation?
I'll be so glad if you help me with this.
Thank you for providing such a great work!
The text was updated successfully, but these errors were encountered: