Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readlink & Optimizer_Type errors when preparing the audio and running training script #22

Closed
qunliu opened this issue Oct 20, 2021 · 4 comments

Comments

@qunliu
Copy link

qunliu commented Oct 20, 2021

Thanks for sharing your great work!

Following the steps in the ReadMe, I have these error messages when preparing the audio and running the training script:

image

image

How do I solve the issues?

I am running the code on a machine with macOS Big Sur.

Also do you have ONNX version of your models to share? The main reason I was running the training code is trying to convert your PyTorch models to ONNX models, it'd help us a lot if you already have them available!

Thanks!

@qiuqiangkong
Copy link
Collaborator

Hi, just pull the latest code. The ./scripts/4_train/musdb18/train.sh is replaced by ./scripts/4_train/musdb18/configs/accompaniment-vocals,resunet_subbandtime.yaml. You will find the 'optimizer_type' flag.
Sorry but there is no ONNX supported now.

@qunliu
Copy link
Author

qunliu commented Oct 21, 2021

Thanks for your quick reply, however I am still getting the same errors following the steps. I noticed the only change was a version change in setup.py, did I miss anything else?

@qunliu
Copy link
Author

qunliu commented Oct 21, 2021

Oh, replacing with this line: TRAIN_CONFIG_YAML="scripts/4_train/musdb18/configs/vocals-accompaniment,unet.yaml" to
TRAIN_CONFIG_YAML="scripts/4_train/musdb18/configs/accompaniment-vocals,resunet_subbandtime.yaml" in the train.sh file fixes the "Optimizer_Type" error.

Now I am getting this error message:
"AssertionError: The directory ./workspaces/bytesep/evaluation_audios/musdb18 is empty!"

I think is related to readlink issue above, I am still trying to figure it out...

@qunliu
Copy link
Author

qunliu commented Oct 21, 2021

Okay, replacing: MUSDB18_DATASET_DIR=readlink -f $MUSDB18_DATASET_DIR with MUSDB18_DATASET_DIR=greadlink -f $MUSDB18_DATASET_DIR also fixes the readlink issue.

Note the 'readlink' is replaced with 'greadlink' above, and you may use "brew install coreutils" to get the correct toolset installed, see this link for details: https://stackoverflow.com/questions/1055671/how-can-i-get-the-behavior-of-gnus-readlink-f-on-a-mac

@qunliu qunliu closed this as completed Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants