How to Enable Uniform Pitch Distribution

Home Forums DeepFaceLab Development How to Enable Uniform Pitch Distribution

  • This topic has 1 reply, 2 voices, and was last updated 1 week, 1 day ago by chrisross.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1104
    deepfakery
    Keymaster

      You can enable uniform pitch in DeepFaceLab by making a minor code modification to the file SampleGeneratorFace.py

      Step 1: Navigate to My_DeepFaceLab_Directory/_internal/DeepFaceLab/samplelib/
      Step 2: Make a backup copy of the file SampleGeneratorFace.py
      Step 3: Open the file SampleGeneratorFace.py in an IDE or text editor
      Step 4: Modify line 66
      Original Code:
      s_yaw = -pyr[1]
      New Code:
      s_yaw = -pyr[0]
      Step 5: Save the file.
      Step 6: In the trainer, enable Uniform Yaw (uniform_yaw). The console output will still display “uniform yaw” however the code modification will use pitch instead.
      Step 7: To switch back to pitch, either revert the code, or change the filename and use your backup.

      #11370
      chrisross
      Participant

        Any tips on when should this be enabled, the switch from yaw to pitch during training?

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.