0% found this document useful (0 votes)
42 views2 pages

Condatinstall

The script is encountering a ConfigAttributeError due to a missing 'checkpoint' key in the configuration file. To resolve this, users should locate a complete configuration file from the SadTalker GitHub repository and ensure it includes the 'checkpoint' key with the correct structure for model paths. Users are advised to adapt their configuration file accordingly, replacing placeholder paths with actual paths to the required pre-trained model weights.

Uploaded by

Sree M
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views2 pages

Condatinstall

The script is encountering a ConfigAttributeError due to a missing 'checkpoint' key in the configuration file. To resolve this, users should locate a complete configuration file from the SadTalker GitHub repository and ensure it includes the 'checkpoint' key with the correct structure for model paths. Users are advised to adapt their configuration file accordingly, replacing placeholder paths with actual paths to the required pre-trained model weights.

Uploaded by

Sree M
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Okay, we've made further progress!

The script is now loading the configuration file, but it's


encountering a omegaconf.errors.ConfigAttributeError: Missing key checkpoint. This means that the
video.yaml (or whichever configuration file you are now using) does not contain a top-level key
named checkpoint that the _verify_checkpoint_paths method in modern_talking_head.py is
expecting.

To resolve this, you need to ensure that your configuration file includes a checkpoint key and that it is
correctly structured.

Here's how to proceed:

1. Go back to the SadTalker GitHub repository: https://github.com/OpenTalker/SadTalker

2. Look for a sample or default configuration file: Since video.yaml might not be the complete
configuration, search for other .yaml files in the src/config directory or any other config
directories you can find within the repository. Look for files that might serve as the main
configuration for SadTalker.

3. Examine the _verify_checkpoint_paths method in modern_talking_head.py: Open this file


and look at the _verify_checkpoint_paths method (around line 88 in the traceback). It's likely
expecting self.sadtalker_config.checkpoint to be a dictionary or a list containing paths to
various model checkpoints.

4. Find a configuration file with a checkpoint key: Once you find potential configuration files,
open them and look for a section or key named checkpoint. Examine its structure to
understand what kind of information it should contain (e.g., paths to face model, audio
model, etc.).

5. Adapt or use the correct configuration file:

o If you find a complete configuration file: Replace the contents of your current
configuration file (likely in src/config/) with the contents of this correct file.

o If you need to create or modify your existing file: Add a top-level checkpoint key with
the expected structure based on the example configuration files you find. It might
look something like this:

YAML

checkpoint:

face_model: path/to/face_model.pth

audio_model: path/to/audio_model.pth

# ... other checkpoints ...

Important: You will need to replace the placeholder paths with the actual paths to the pre-trained
model weights that SadTalker requires. These weights are usually downloaded separately or might be
specified in the SadTalker documentation.

In summary, the error indicates that your configuration file is missing the checkpoint key that the
script needs to know where to find the pre-trained models. You need to find a complete or example
configuration file from the SadTalker project and use that as a basis for your src/config/video.yaml
(or whatever you have named it).
Start by carefully exploring the GitHub repository for configuration examples. The names and
structures of other .yaml files should give you a good idea of what is expected in the main
configuration.

You might also like