Spaces:
Runtime error
Runtime error
fix demo issues
Browse files
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
GenAU/src/modules/clap/open_clip/bpe_simple_vocab_16e6.txt.gz filter=lfs diff=lfs merge=lfs -text
|
GenAU/src/models/genau_ddpm.py
CHANGED
|
@@ -25,7 +25,7 @@ from pytorch_lightning.utilities.rank_zero import rank_zero_only
|
|
| 25 |
# requires latest versin of torch
|
| 26 |
from torch.utils.flop_counter import FlopCounterMode
|
| 27 |
|
| 28 |
-
from src.modules.conditional.conditional_models import
|
| 29 |
from src.utilities.model.model_util import (
|
| 30 |
exists,
|
| 31 |
default,
|
|
|
|
| 25 |
# requires latest versin of torch
|
| 26 |
from torch.utils.flop_counter import FlopCounterMode
|
| 27 |
|
| 28 |
+
from src.modules.conditional.conditional_models import CLAPAudioEmbeddingClassifierFreev2
|
| 29 |
from src.utilities.model.model_util import (
|
| 30 |
exists,
|
| 31 |
default,
|
GenAU/src/modules/conditional/conditional_models.py
CHANGED
|
@@ -26,8 +26,12 @@ from src.modules.audiomae.sequence_gen.sequence_input import (
|
|
| 26 |
from src.tools.download_manager import get_checkpoint_path
|
| 27 |
import numpy as np
|
| 28 |
from src.modules.audiomae.sequence_gen.model import Prenet
|
| 29 |
-
import laion_clap
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
"""
|
| 33 |
The model forward function can return three types of data:
|
|
|
|
| 26 |
from src.tools.download_manager import get_checkpoint_path
|
| 27 |
import numpy as np
|
| 28 |
from src.modules.audiomae.sequence_gen.model import Prenet
|
|
|
|
| 29 |
|
| 30 |
+
try:
|
| 31 |
+
import laion_clap
|
| 32 |
+
except ImportError:
|
| 33 |
+
print("[Warnning] laion_clap not found. Please install it from")
|
| 34 |
+
pass
|
| 35 |
|
| 36 |
"""
|
| 37 |
The model forward function can return three types of data:
|
requirements.txt
CHANGED
|
@@ -44,5 +44,7 @@ huggingface_hub==0.28.1
|
|
| 44 |
taming-transformers-rom1504==0.0.6
|
| 45 |
warmup_scheduler==0.3
|
| 46 |
ruamel.yaml==0.18.6
|
|
|
|
|
|
|
| 47 |
# git+https://github.com/LAION-AI/CLAP.git
|
| 48 |
# sentence_transformers==2.7.0
|
|
|
|
| 44 |
taming-transformers-rom1504==0.0.6
|
| 45 |
warmup_scheduler==0.3
|
| 46 |
ruamel.yaml==0.18.6
|
| 47 |
+
flash-attn==2.3.0
|
| 48 |
+
-e pip uninstall -y apex
|
| 49 |
# git+https://github.com/LAION-AI/CLAP.git
|
| 50 |
# sentence_transformers==2.7.0
|