MazCodes commited on
Commit
94c3549
·
verified ·
1 Parent(s): 9426218

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -43,3 +43,4 @@ app/frontend/public/ir/Narrow[[:space:]]Bumpy[[:space:]]Space.wav filter=lfs dif
43
  app/frontend/public/ir/Nice[[:space:]]Drum[[:space:]]Room.wav filter=lfs diff=lfs merge=lfs -text
44
  app/frontend/public/ir/Scala[[:space:]]Milan[[:space:]]Opera[[:space:]]Hall.wav filter=lfs diff=lfs merge=lfs -text
45
  app/frontend/public/interface.png filter=lfs diff=lfs merge=lfs -text
 
 
43
  app/frontend/public/ir/Nice[[:space:]]Drum[[:space:]]Room.wav filter=lfs diff=lfs merge=lfs -text
44
  app/frontend/public/ir/Scala[[:space:]]Milan[[:space:]]Opera[[:space:]]Hall.wav filter=lfs diff=lfs merge=lfs -text
45
  app/frontend/public/interface.png filter=lfs diff=lfs merge=lfs -text
46
+ utils/vendor/wheels/antlr4_python3_runtime-4.9.3-py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
app/core/config.py CHANGED
@@ -43,11 +43,14 @@ class ProjectConfig:
43
 
44
  # Writable paths live under user_data_dir (diverges from project_root in frozen mode);
45
  # read-only code/assets stay under project_root.
 
 
 
46
  self.paths: Dict[str, Path] = {
47
  "models": self.user_data_dir / "models",
48
  "models_config": self.user_data_dir / "models" / "config",
49
  "models_pretrained": self.user_data_dir / "models" / "pretrained",
50
- "models_fine_tuned": self.user_data_dir / "models" / "fine_tuned",
51
  "data": self.user_data_dir / "data",
52
  "logs": self.user_data_dir / "logs",
53
  "output": self.user_data_dir / "output",
 
43
 
44
  # Writable paths live under user_data_dir (diverges from project_root in frozen mode);
45
  # read-only code/assets stay under project_root.
46
+ fine_tuned_override = os.environ.get("FRAGMENTA_FINE_TUNED_DIR")
47
+ fine_tuned_dir = Path(fine_tuned_override) if fine_tuned_override else self.user_data_dir / "models" / "fine_tuned"
48
+
49
  self.paths: Dict[str, Path] = {
50
  "models": self.user_data_dir / "models",
51
  "models_config": self.user_data_dir / "models" / "config",
52
  "models_pretrained": self.user_data_dir / "models" / "pretrained",
53
+ "models_fine_tuned": fine_tuned_dir,
54
  "data": self.user_data_dir / "data",
55
  "logs": self.user_data_dir / "logs",
56
  "output": self.user_data_dir / "output",
requirements.txt CHANGED
@@ -1,34 +1,56 @@
1
  --extra-index-url https://download.pytorch.org/whl/cu128
2
 
3
- Flask>=2.3.0
4
- Flask-CORS>=4.0.0
5
- requests>=2.28.0
 
 
 
6
 
 
7
  torch>=2.5,<=2.8
8
  torchvision<0.24
9
  torchaudio>=2.5,<=2.8
10
- transformers>=4.30.0
11
- diffusers>=0.20.0
12
- accelerate>=0.20.0
13
- peft>=0.4.0
14
- datasets>=2.14.0
15
- huggingface-hub>=0.16.0
16
 
17
- librosa>=0.10.0
18
- soundfile>=0.12.0
19
- scipy>=1.10.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  numpy==1.23.5
21
  pandas==2.0.2
22
 
 
 
 
23
  setuptools<70
24
- tqdm>=4.65.0
25
- psutil>=5.9.0
26
- omegaconf>=2.3.0
27
- click>=8.1.0
28
- Pillow>=9.0.0
29
- python-dotenv>=1.0.0
30
 
31
- pywebview>=4.4.1
 
32
  Pycairo ; sys_platform == 'linux'
33
  PyGObject<3.49 ; sys_platform == 'linux'
34
- flash-attn>=2.8.3 ; sys_platform == 'linux'
 
1
  --extra-index-url https://download.pytorch.org/whl/cu128
2
 
3
+ # --- Web stack ---
4
+ # Flask 3.x is fine; cap below the next major to avoid surprise breakage.
5
+ Flask>=2.3.0,<4.0
6
+ # Flask-CORS jumped to 6.x with API changes; cap below the next major.
7
+ Flask-CORS>=4.0.0,<7.0
8
+ requests>=2.28.0,<3.0
9
 
10
+ # --- PyTorch (CUDA 12.8 wheels) ---
11
  torch>=2.5,<=2.8
12
  torchvision<0.24
13
  torchaudio>=2.5,<=2.8
 
 
 
 
 
 
14
 
15
+ # --- HuggingFace stack ---
16
+ # transformers 5.x and huggingface-hub 1.x are major rewrites that break
17
+ # stable-audio-tools' import paths (e.g. T5EncoderModel, AutoTokenizer).
18
+ # Stay on the 4.x / 0.x lines that SAO was written against.
19
+ transformers>=4.41.0,<5.0
20
+ huggingface-hub>=0.23.0,<1.0
21
+ # safetensors 0.8.0rc0 is a pre-release; pip occasionally selected it under
22
+ # the old loose pin. Cap below 1.0 and avoid rc tags.
23
+ safetensors>=0.4.3,<1.0
24
+ diffusers>=0.27.0,<1.0
25
+ accelerate>=0.30.0,<2.0
26
+ peft>=0.10.0,<1.0
27
+ # datasets 4.x dropped some legacy loaders; stay on 3.x/2.x.
28
+ datasets>=2.18.0,<4.0
29
+
30
+ # --- Audio / DSP ---
31
+ # numba and scipy interact tightly. numba 0.61+ requires Python>=3.10 and
32
+ # narrows the scipy window; pinning both ranges stops pip from backtracking
33
+ # through 6+ scipy versions on every install.
34
+ librosa>=0.10.0,<0.12
35
+ soundfile>=0.12.0,<0.14
36
+ scipy>=1.10.0,<1.14
37
+ numba>=0.59,<0.61
38
  numpy==1.23.5
39
  pandas==2.0.2
40
 
41
+ # --- Build / runtime utilities ---
42
+ # setuptools<70 is required because stable-audio-tools' build chain pulls in
43
+ # a few packages that still use deprecated setuptools APIs.
44
  setuptools<70
45
+ tqdm>=4.65.0,<5.0
46
+ psutil>=5.9.0,<8.0
47
+ omegaconf>=2.3.0,<3.0
48
+ click>=8.1.0,<9.0
49
+ Pillow>=9.0.0,<13.0
50
+ python-dotenv>=1.0.0,<2.0
51
 
52
+ # --- Desktop / native ---
53
+ pywebview>=4.4.1,<7.0
54
  Pycairo ; sys_platform == 'linux'
55
  PyGObject<3.49 ; sys_platform == 'linux'
56
+ flash-attn>=2.8.3 ; sys_platform == 'linux'
stable-audio-tools/setup.py CHANGED
@@ -6,35 +6,43 @@ setup(
6
  url='https://github.com/Stability-AI/stable-audio-tools.git',
7
  author='Stability AI',
8
  description='Training and inference tools for generative audio models from Stability AI',
9
- packages=find_packages(),
10
  install_requires=[
 
11
  'alias-free-torch==0.0.6',
12
- 'auraloss==0.4.0',
13
- 'descript-audio-codec==1.0.0',
14
  'einops',
15
  'einops-exts',
16
- 'ema-pytorch==0.2.3',
17
- 'encodec==0.1.1',
18
- 'gradio>=5.20.0',
19
  'huggingface_hub',
20
- 'importlib-resources==5.12.0',
21
  'k-diffusion==0.1.1',
22
- 'laion-clap==1.1.4',
23
- 'local-attention==1.8.6',
24
- 'pandas==2.0.2',
25
- 'prefigure==0.0.9',
26
- 'pytorch_lightning==2.1.0',
27
  'PyWavelets==1.4.1',
28
  'safetensors',
29
  'sentencepiece==0.1.99',
30
  'torch>=2.5,<=2.8',
31
  'torchaudio>=2.5,<=2.8',
32
- 'torchmetrics==0.11.4',
33
  'tqdm',
34
  'transformers',
35
- 'v-diffusion-pytorch==0.0.2',
36
- 'vector-quantize-pytorch==1.14.41',
 
 
 
 
 
 
37
  'wandb==0.15.4',
38
- 'webdataset==0.2.100'
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  ],
40
  )
 
6
  url='https://github.com/Stability-AI/stable-audio-tools.git',
7
  author='Stability AI',
8
  description='Training and inference tools for generative audio models from Stability AI',
9
+ packages=find_packages(),
10
  install_requires=[
11
+ # Inference path (always loaded by Fragmenta)
12
  'alias-free-torch==0.0.6',
 
 
13
  'einops',
14
  'einops-exts',
 
 
 
15
  'huggingface_hub',
 
16
  'k-diffusion==0.1.1',
 
 
 
 
 
17
  'PyWavelets==1.4.1',
18
  'safetensors',
19
  'sentencepiece==0.1.99',
20
  'torch>=2.5,<=2.8',
21
  'torchaudio>=2.5,<=2.8',
 
22
  'tqdm',
23
  'transformers',
24
+
25
+ # Training subprocess (train.py); top-level imports must resolve
26
+ 'auraloss==0.4.0',
27
+ 'descript-audio-codec==1.0.0',
28
+ 'ema-pytorch==0.2.3',
29
+ 'pandas==2.0.2',
30
+ 'prefigure==0.0.9',
31
+ 'pytorch_lightning==2.1.0',
32
  'wandb==0.15.4',
33
+ 'webdataset==0.2.100',
34
+
35
+ # Lazy-loaded by certain model configs (kept for compatibility with
36
+ # configs other than SAO 1.0 / Small):
37
+ 'encodec==0.1.1',
38
+ 'laion-clap==1.1.4',
39
+ 'local-attention==1.8.6',
40
+ 'vector-quantize-pytorch==1.14.41',
41
+
42
+ # Dropped (Fragmenta does not exercise these paths):
43
+ # 'gradio>=5.20.0' - run_gradio.py only; Fragmenta uses React
44
+ # 'v-diffusion-pytorch==0.0.2' - zero imports in this codebase
45
+ # 'torchmetrics==0.11.4' - zero imports in this codebase
46
+ # 'importlib-resources==5.12.0' - stdlib in Python 3.9+
47
  ],
48
  )
utils/vendor/wheels/antlr4_python3_runtime-4.9.3-py3-none-any.whl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0944bf551a20f0dd5fa4fcd5d893b8622a672fd5108f72b26e2b7f689719c30f
3
+ size 144590
utils/vendor/wheels/argbind-0.3.9-py2.py3-none-any.whl ADDED
Binary file (11.8 kB). View file
 
utils/vendor/wheels/encodec-0.1.1-py3-none-any.whl ADDED
Binary file (45.9 kB). View file
 
utils/vendor/wheels/julius-0.2.7-py3-none-any.whl ADDED
Binary file (22 kB). View file
 
utils/vendor/wheels/pathtools-0.1.2-py3-none-any.whl ADDED
Binary file (8.88 kB). View file
 
utils/vendor/wheels/progressbar-2.5-py3-none-any.whl ADDED
Binary file (12.1 kB). View file
 
utils/vendor/wheels/proxy_tools-0.1.0-py3-none-any.whl ADDED
Binary file (2.94 kB). View file
 
utils/vendor/wheels/randomname-0.2.1-py3-none-any.whl ADDED
Binary file (89.3 kB). View file
 
utils/vendor/wheels/wget-3.2-py3-none-any.whl ADDED
Binary file (9.69 kB). View file