From 740d350cb21cdd0ff968dcfd059245ab0fcec517 Mon Sep 17 00:00:00 2001 From: Ke Chen Date: Wed, 19 Apr 2023 13:47:43 -0700 Subject: [PATCH] fix pypi dependences --- pyproject.toml | 2 +- src/laion_clap/__init__.py | 2 +- src/laion_clap/unit_test.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a1744de..9d913bd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=61.0"] build-backend = "setuptools.build_meta" [project] name = "laion_clap" -version = "1.1.3" +version = "1.1.4" authors = [ { name="Ke Chen", email="knutchen@ucsd.edu" }, { name="Yusong Wu" }, diff --git a/src/laion_clap/__init__.py b/src/laion_clap/__init__.py index 43420fe..96d4b61 100644 --- a/src/laion_clap/__init__.py +++ b/src/laion_clap/__init__.py @@ -2,4 +2,4 @@ import sys dir_path = os.path.dirname(os.path.abspath(__file__)) sys.path.append(dir_path) -from hook import CLAP_Module \ No newline at end of file +from .hook import CLAP_Module \ No newline at end of file diff --git a/src/laion_clap/unit_test.py b/src/laion_clap/unit_test.py index d754468..f138c62 100644 --- a/src/laion_clap/unit_test.py +++ b/src/laion_clap/unit_test.py @@ -20,7 +20,7 @@ def float32_to_int16(x): x = np.clip(x, a_min=-1., a_max=1.) return (x * 32767.).astype(np.int16) -model = laion_clap.CLAP_Module(enable_fusion=True) +model = laion_clap.CLAP_Module(enable_fusion=False) model.load_ckpt() # Directly get audio embeddings from audio files