`TypeError: 'NoneType' object is not callable` during test script

#59
by mprtcz - opened

Hi, I tried to run the model with the script provided in the readme and this is what I got:

>python3 test.py 
/.../.venv/lib/python3.12/site-packages/diffusers/models/lora.py:393: FutureWarning: `LoRACompatibleLinear` is deprecated and will be removed in version 1.0.0. Use of `LoRACompatibleLinear` is deprecated. Please switch to PEFT backend by installing PEFT: `pip install peft`.
  deprecate("LoRACompatibleLinear", "1.0.0", deprecation_message)
Traceback (most recent call last):
  File "/.../test.py", line 4, in <module>
    model = ChatterboxTTS.from_pretrained(device="cuda")
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/.../.venv/lib/python3.12/site-packages/chatterbox/tts.py", line 180, in from_pretrained
    return cls.from_local(Path(local_path).parent, device)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/.../.venv/lib/python3.12/site-packages/chatterbox/tts.py", line 165, in from_local
    return cls(t3, s3gen, ve, tokenizer, device, conds=conds)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/.../.venv/lib/python3.12/site-packages/chatterbox/tts.py", line 126, in __init__
    self.watermarker = perth.PerthImplicitWatermarker()
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not callable
(.venv) 1 ~/chatterbox-tts []

Any ideas what this may be? I did the install as described in the readme.

Sign up or log in to comment