DCASE-REPO / DESED_task

Domestic environment sound event detection task
MIT License
126 stars 66 forks source link

Questions about Apple Silicon (M1 Pro) not being able to run the project #57

Closed telltao closed 1 year ago

telltao commented 2 years ago

Hello, I am a beginner, but I want to participate in this project, I have a problem: I don't know whether this project can be run under M1 Pro?
My Environment configuration;

In order to run on M1 arm64 pytorch, I installed the adapter arm64 tensorflow link: https://developer.apple.com/metal/tensorflow-plugin/

Test the following To prove that PyTorch is correct I executed it from https://github.com/pytorch/examples/blob/master/mnist/main.py

python main.py

image

The output is Test set: Average loss: 0.0287, Accuracy: 9908/10000 (99%)

There is nothing wrong with my Pytorch, right ?

I executed recipes/dcase2022_task4_baseline/conda_create_environment.sh ,Dependencies are installed.

But I execute train_sed.py console output

  /opt/homebrew/Caskroom/miniforge/base/envs/dcase2022/bin/python /Users/myUser/Desktop/workspace/python/DESED_task/recipes/dcase2022_task4_baseline/train_sed.py

  Process finished with exit code 138 (interrupted by signal 10: SIGBUS)

Is there anyone who can help me, I want to know what the problem is that I can't run this project?

turpaultn commented 2 years ago

I got a similar problem on my Mac having an M1 chip (written segmentation fault in my case). What's weird is that my 2021 environment (which is more or less the same) is working. It needs time to investigate, but it definitely seems it is a problem with the conda environment.

We do not plan to support OSX environment, if you find a nice way or make a conda create environment working do not hesitate to share it :)

telltao commented 2 years ago

Thank you very much for your answer. I think this might be the result of my related version. I've been trying to solve this problem. By the way, your current M1 Mac can run this project, right? If it works, then it's my version, and I need to find the dependencies. Can you list the ConDA, PyCharm, Python versions on your M1? Or do you run PIP List and Conda List in a project on an M1 computer?

telltao commented 1 year ago

Thank you, I raised an issue that does not support the OSX environment and I am closing it now.