Open turian opened 1 year ago
I think the problem is that I kept platform-specific build constraints in the environment.yml
. I updated the file in https://github.com/kkoutini/PaSST/commit/c57eb20a2f3eba0f253aa14e42d6dfb078e3d15a
Let me know if this doesn't solve the issue.
Yeah I'm on that git hash already.
joseph@Josephs-MacBook-Air ~/d/PaSST (main)> git checkout c57eb20 && mamba env create -f environment.yml (base)
Note: switching to 'c57eb20'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at c57eb20 update environment
Retrieving notices: ...working... done
pkgs/main/noarch No change
pkgs/r/osx-arm64 No change
pkgs/main/osx-arm64 No change
pkgs/r/noarch No change
conda-forge/osx-arm64 4.7MB @ 192.4kB/s 24.7s
conda-forge/noarch 10.7MB @ 344.3kB/s 31.5s
Looking for: ['_libgcc_mutex=0.1', '_openmp_mutex=4.5', '_pytorch_select=0.1', 'appdirs=1.4.4', 'audioread=2.1.9', 'blas=1.0', 'brotlipy=0.7.0', 'bzip2=1.0.8', 'c-ares=1.17.1', 'ca-certificates=2020.12.5', 'cached-property=1.5.2', 'cached_property=1.5.2', 'certifi=2020.12.5', 'cffi=1.14.5', 'chardet=4.0.0', 'colorama=0.4.4', 'cryptography=3.4.6', 'cycler=0.10.0', 'decorator=4.4.2', 'docopt=0.6.2', 'ffmpeg=4.3.1', 'freetype=2.10.4', 'gettext=0.19.8.1', 'gitdb=4.0.5', 'gitpython=3.1.14', 'gmp=6.2.1', 'gnutls=3.6.13', 'h5py=3.1.0', 'hdf5=1.10.6', 'idna=2.10', 'importlib-metadata=3.7.3', 'importlib_metadata=3.7.3', 'intel-openmp=2020.2', 'joblib=1.0.1', 'jpeg=9d', 'jsonpickle=1.4.1', 'kiwisolver=1.3.1', 'krb5=1.17.2', 'lame=3.100', 'lcms2=2.12', 'ld_impl_linux-64=2.35.1', 'libblas=3.9.0', 'libcblas=3.9.0', 'libcurl=7.75.0', 'libedit=3.1.20191231', 'libev=4.33', 'libffi=3.3', 'libflac=1.3.3', 'libgcc-ng=9.3.0', 'libgfortran-ng=9.3.0', 'libgfortran5=9.3.0', 'libgomp=9.3.0', 'liblapack=3.9.0', 'libllvm10=10.0.1', 'libnghttp2=1.43.0', 'libogg=1.3.4', 'libopenblas=0.3.12', 'libopus=1.3.1', 'libpng=1.6.37', 'librosa=0.8.0', 'libsndfile=1.0.31', 'libssh2=1.9.0', 'libstdcxx-ng=9.3.0', 'libtiff=4.2.0', 'libvorbis=1.3.7', 'libwebp-base=1.2.0', 'libzlib=1.2.11', 'llvm-openmp=11.1.0', 'llvmlite=0.36.0', 'lz4-c=1.9.3', 'matplotlib-base=3.3.4', 'mkl=2020.2', 'mkl-service=2.3.0', 'munch=2.5.0', 'ncurses=6.2', 'nettle=3.6', 'ninja=1.10.2', 'numba=0.53.0', 'numpy=1.20.1', 'olefile=0.46', 'openblas=0.3.12', 'openh264=2.1.1', 'openjpeg=2.4.0', 'openssl=1.1.1k', 'packaging=20.9', 'pandas=1.2.3', 'pillow=8.1.2', 'pip=21.0.1', 'pooch=1.3.0', 'py-cpuinfo=7.0.0', 'pycparser=2.20', 'pyopenssl=20.0.1', 'pyparsing=2.4.7', 'pysocks=1.7.1', 'pysoundfile=0.10.3.post1', 'python=3.7.10', 'python-dateutil=2.8.1', 'python_abi=3.7', 'pytz=2021.1', 'readline=8.0', 'requests=2.25.1', 'resampy=0.2.2', 'scikit-learn=0.24.1', 'scipy=1.6.1', 'setuptools=49.6.0', 'six=1.15.0', 'smmap=3.0.5', 'sqlite=3.34.0', 'threadpoolctl=2.1.0', 'tk=8.6.10', 'tornado=6.1', 'typing_extensions=3.7.4.3', 'urllib3=1.26.4', 'wrapt=1.12.1', 'x264=1!161.3030', 'xz=5.2.5', 'zipp=3.4.1', 'zlib=1.2.11', 'zstd=1.4.9']
Could not solve for environment specs
Encountered problems while solving:
- nothing provides requested _libgcc_mutex 0.1**
- nothing provides requested _openmp_mutex 4.5**
- nothing provides requested intel-openmp 2020.2**
- nothing provides requested libgcc-ng 9.3.0**
- nothing provides requested libgfortran-ng 9.3.0**
- nothing provides requested libgfortran5 9.3.0**
- nothing provides requested libgomp 9.3.0**
- nothing provides requested libstdcxx-ng 9.3.0**
- nothing provides requested mkl 2020.2**
- nothing provides requested mkl-service 2.3.0**
- nothing provides requested python 3.7.10**
- nothing provides python 3.7.* needed by python_abi-3.7-1_cp37m
The environment can't be solved, aborting the operation
@kkoutini still having this issue :(
Hi Joseph, I don't have an apple silicon device at hand to generate an alternative environment.yml file, but I think you can get the repo running like this:
conda create -n ba3l python=3.8
conda activate ba3l
# MPS acceleration is available on MacOS 12.3+
pip3 install torch torchvision torchaudio
check if torch is installed properly:
import torch
import math
# this ensures that the current MacOS version is at least 12.3+
print(torch.backends.mps.is_available())
# this ensures that the current current PyTorch installation was built with MPS activated.
print(torch.backends.mps.is_built())
pip3 install timm==0.4.12
At this point inference should work on your machine, you can test it using the (HEAR repo)[https://github.com/kkoutini/passt_hear21]:
pip install -e 'git+https://github.com/kkoutini/passt_hear21@0.0.19#egg=hear21passt'
then test the inference like this:
import torch
from hear21passt.base import load_model, get_scene_embeddings, get_timestamp_embeddings
device = torch.device("mps")
model = load_model().to(device) seconds = 15 audio = torch.ones((3, 32000 seconds))0.5 embed, time_stamps = get_timestamp_embeddings(audio, model) print(embed.shape) embed = get_scene_embeddings(audio, model) print(embed.shape)
- If you want to use the main repo for fine-tuning, then install custom dependencies for the main repo
```bash
# custom dependencies
pip3 install -e 'git+https://github.com/kkoutini/ba3l@v0.0.2#egg=ba3l'
pip3 install -e 'git+https://github.com/kkoutini/pytorch-lightning@v0.0.1#egg=pytorch-lightning'
pip3 install -e 'git+https://github.com/kkoutini/sacred@v0.0.1#egg=sacred'
I think now you can run experiments as described in the main repo
I clone the repo. As per the README:
But then the next mambo command fails :\
with
This is on an OSX Apple Silicon machine