techfreakworm commited on
Commit
5ab6428
·
unverified ·
1 Parent(s): 99302bc

fix(deps): add torchaudio + pin transformers<5

Browse files

DiffSynth 2.0.7 imports:
- torchaudio (blanket import in diffsynth.core.data.operators)
- SiglipVisionTransformer from transformers.models.siglip (renamed/removed in
transformers 5.x; works fine in 4.45 - 4.57)

Without these pins, both local venv setup and the HF Space build pulled
transformers 5.x via DiffSynth's own pyproject (which lists 'transformers'
unbounded), and the import chain broke at app boot.

Files changed (1) hide show
  1. requirements.txt +2 -0
requirements.txt CHANGED
@@ -4,8 +4,10 @@ gradio==5.50.0
4
  # Locally, install it ad-hoc if you want to test the @spaces.GPU decorator path.
5
  diffsynth @ git+https://github.com/modelscope/DiffSynth-Studio.git
6
  torch>=2.4
 
7
  safetensors>=0.4.5
8
  huggingface-hub>=0.27
 
9
 
10
  # ControlNet preprocessors
11
  controlnet-aux>=0.0.9
 
4
  # Locally, install it ad-hoc if you want to test the @spaces.GPU decorator path.
5
  diffsynth @ git+https://github.com/modelscope/DiffSynth-Studio.git
6
  torch>=2.4
7
+ torchaudio>=2.4 # DiffSynth blanket-imports torchaudio in diffsynth.core.data.operators
8
  safetensors>=0.4.5
9
  huggingface-hub>=0.27
10
+ transformers>=4.45,<5.0 # DiffSynth 2.0.7 imports SiglipVisionTransformer (removed in transformers 5.x)
11
 
12
  # ControlNet preprocessors
13
  controlnet-aux>=0.0.9