GithubHelp home page GithubHelp logo

aicrowd / music-demixing-challenge-starter-kit Goto Github PK

View Code? Open in Web Editor NEW
133.0 11.0 44.0 5.1 MB

Starter kit for getting started in the Music Demixing Challenge.

License: MIT License

Python 94.64% Shell 5.36%
unmixing music starter-kit music-separation

music-demixing-challenge-starter-kit's People

Contributors

faroit avatar mpariente avatar skbly7 avatar stefanuhlich-sony avatar vrv18 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

music-demixing-challenge-starter-kit's Issues

Better error handling

we assume that the sample rates of the signals and the length of the references and estimates are the same. However often, users might not be aware of this and it would make sense to warn them already in the local test submission.

we have:

reference, _ = sf.read(reference_file)
estimate, _ = sf.read(estimate_file)

I think we should add

  • a check of the sample rates (the second argument _) these should the same (int(reference_rate) == int(estimate_rate))
  • a check of the shape of the files (reference.shape == estimate.shape)

Struggling to get setup

Hi,

I'm having trouble making a test submission using the repo.

I am working in a fresh nvcr.io/nvidia/cuda:11.3.0-cudnn8-runtime-centos8 docker image. Following that I have:

  • Installed GCC, git, nano via Yum.
  • Installed miniconda.
  • Generated SSH key and added it to my profile.
  • Git cloned the repo & installed requirements.
  • Changed the aicrowd.json to my username.
  • Run the below:
# Add AIcrowd git remote endpoint
git remote add aicrowd [email protected]:errorfixrepeat/music-demixing-challenge-starter-kit.git
git push aicrowd master

This gives me the error:

Enumerating objects: 186, done.
Counting objects: 100% (186/186), done.
Delta compression using up to 24 threads
Compressing objects: 100% (87/87), done.
Writing objects: 100% (186/186), 5.09 MiB | 1.79 MiB/s, done.
Total 186 (delta 90), reused 186 (delta 90)
remote: Resolving deltas: 100% (90/90), done.
remote: GitLab: LFS objects are missing. Ensure LFS is properly set up or try a manual "git lfs push --all".
To gitlab.aicrowd.com:errorfixrepeat/music-demixing-challenge-starter-kit.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:errorfixrepeat/music-demixing-challenge-starter-kit.git'

The format of the wav file is unknown.

I get a RuntimeError when I run the fourth Try out random prediction codebase present in test.py. in Setup.
I found that the format of the wav file in data/test was unknown.
I opened this wav file in audacity, but it showed up as a file of unknown format.
Is this wav file the correct one?
Sorry if this is my mistake.
The full text of the error is below.

> python3 test.py
Mixture file is present at following location: /home/shun/aicrowd/music-demixing-challenge-starter-kit/data/test/Mu - Too Bright/mixture.wav
Traceback (most recent call last):
  File "/home/shun/aicrowd/music-demixing-challenge-starter-kit/evaluator/music_demixing.py", line 142, in run
    self.evaluation()
  File "/home/shun/aicrowd/music-demixing-challenge-starter-kit/evaluator/music_demixing.py", line 129, in evaluation
    self.prediction(mixture_file_path=self.get_music_file_location(music_name),
  File "test.py", line 52, in prediction
    x, rate = sf.read(mixture_file_path)  # mixture is stereo with sample rate of 44.1kHz
  File "/home/shun/.local/share/virtualenvs/music-demixing-challenge-starter-kit-dMCFg2FA/lib/python3.8/site-packages/soundfile.py", line 256, in read
    with SoundFile(file, 'r', samplerate, channels,
  File "/home/shun/.local/share/virtualenvs/music-demixing-challenge-starter-kit-dMCFg2FA/lib/python3.8/site-packages/soundfile.py", line 629, in __init__
    self._file = self._open(file, mode_int, closefd)
  File "/home/shun/.local/share/virtualenvs/music-demixing-challenge-starter-kit-dMCFg2FA/lib/python3.8/site-packages/soundfile.py", line 1183, in _open
    _error_check(_snd.sf_error(file_ptr),
  File "/home/shun/.local/share/virtualenvs/music-demixing-challenge-starter-kit-dMCFg2FA/lib/python3.8/site-packages/soundfile.py", line 1357, in _error_check
    raise RuntimeError(prefix + _ffi.string(err_str).decode('utf-8', 'replace'))
RuntimeError: Error opening '/home/shun/aicrowd/music-demixing-challenge-starter-kit/data/test/Mu - Too Bright/mixture.wav': File contains data in an unknown format.

Traceback (most recent call last):
  File "test.py", line 64, in <module>
    submission.run()
  File "/home/shun/aicrowd/music-demixing-challenge-starter-kit/evaluator/music_demixing.py", line 148, in run
    raise e
  File "/home/shun/aicrowd/music-demixing-challenge-starter-kit/evaluator/music_demixing.py", line 142, in run
    self.evaluation()
  File "/home/shun/aicrowd/music-demixing-challenge-starter-kit/evaluator/music_demixing.py", line 129, in evaluation
    self.prediction(mixture_file_path=self.get_music_file_location(music_name),
  File "test.py", line 52, in prediction
    x, rate = sf.read(mixture_file_path)  # mixture is stereo with sample rate of 44.1kHz
  File "/home/shun/.local/share/virtualenvs/music-demixing-challenge-starter-kit-dMCFg2FA/lib/python3.8/site-packages/soundfile.py", line 256, in read
    with SoundFile(file, 'r', samplerate, channels,
  File "/home/shun/.local/share/virtualenvs/music-demixing-challenge-starter-kit-dMCFg2FA/lib/python3.8/site-packages/soundfile.py", line 629, in __init__
    self._file = self._open(file, mode_int, closefd)
  File "/home/shun/.local/share/virtualenvs/music-demixing-challenge-starter-kit-dMCFg2FA/lib/python3.8/site-packages/soundfile.py", line 1183, in _open
    _error_check(_snd.sf_error(file_ptr),
  File "/home/shun/.local/share/virtualenvs/music-demixing-challenge-starter-kit-dMCFg2FA/lib/python3.8/site-packages/soundfile.py", line 1357, in _error_check
    raise RuntimeError(prefix + _ffi.string(err_str).decode('utf-8', 'replace'))
RuntimeError: Error opening '/home/shun/aicrowd/music-demixing-challenge-starter-kit/data/test/Mu - Too Bright/mixture.wav': File contains data in an unknown format.

README submission template for mediocre submissions

Hello!

Not to be too down on myself - I'm happy with my work and progress - but my place in the leaderboard is pretty low (lower than 30) - i.e. it may not be too interesting of a model to be published, etc. Do I necessarily need to fill the special submission README?

https://github.com/AIcrowd/music-demixing-challenge-starter-kit/blob/master/README_SUBMISSION_TEMPLATE.md

Is it only for the top 10 submissions that will be included in the final writeup/summary?

Error cloning repo

Hi

When I try to clone the repo, I get an error when it gets to the data/test/Mu - Too Bright/bass.wav file

fatal error: unexpected signal during runtime execution
[signal 0xb code=0x1 addr=0xb01dfacedebac1e pc=0xca0b0]

I have already seen the posts that suggest trying git lfs pull, which I have tried without joy. See below:

fatal error: still in list

runtime stack:
runtime.throw(0x495d50, 0xd)
/usr/local/go/src/runtime/panic.go:527 +0x90
runtime.mHeap_AllocSpanLocked(0x6b0ea0, 0x80, 0xc820110000)
/usr/local/go/src/runtime/mheap.go:590 +0x40c
runtime.mHeap_Alloc_m(0x6b0ea0, 0x80, 0x700100000000, 0xc81fff77ff)
/usr/local/go/src/runtime/mheap.go:425 +0x1ac
runtime.mHeap_Alloc.func1()
/usr/local/go/src/runtime/mheap.go:484 +0x41
runtime.systemstack(0x700008dc6e88)
/usr/local/go/src/runtime/asm_amd64.s:278 +0xab
runtime.mHeap_Alloc(0x6b0ea0, 0x80, 0x10100000000, 0xc82001d220)
/usr/local/go/src/runtime/mheap.go:485 +0x63
runtime.largeAlloc(0x100000, 0xc800000001, 0x1)
/usr/local/go/src/runtime/malloc.go:745 +0xb3
runtime.mallocgc.func3()
/usr/local/go/src/runtime/malloc.go:634 +0x33
runtime.systemstack(0xc820021500)
/usr/local/go/src/runtime/asm_amd64.s:262 +0x79
runtime.mstart()
/usr/local/go/src/runtime/proc1.go:674

Git version is 2.31.1 on macOS 10.15.7.

Any help would be much appreciated.

Cheers

Matt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.