onsets-and-frames icon indicating copy to clipboard operation
onsets-and-frames copied to clipboard

Error while trying to retrain the model with MAPS dataset

Open carlosholivan opened this issue 4 years ago • 2 comments

I'm trying to train the model with MAPS dataset with the command:

python train.py with logdir=runs/model iterations=1000000

and

python train.py

But I got the following error:

INFO - train_transcriber - Running command 'train'
INFO - train_transcriber - Started run with ID "3"
ERROR - train_transcriber - Failed after 0:00:02!
Exception originated from within Sacred.
Traceback (most recent calls):
  File "/home/user/anaconda3/lib/python3.8/site-packages/sacred/commands.py", line 40, in _non_unicode_repr
    repr_string, isreadable, isrecursive = pprint._safe_repr(objekt, context,
TypeError: _safe_repr() missing 1 required positional argument: 'sort_dicts'

I installed the dependencies with:

pip install -r requirements.txt

I checked the version of sacred and it's 0.7.4

carlosholivan avatar Oct 06 '20 11:10 carlosholivan

IIRC I had that error, too. It's not related to the maps set but rather a change in the function signature of pprint._safe_repr which seems to expect another argument at the end ( i think i set this to True and it worked)

gergol avatar Oct 14 '20 13:10 gergol

I also used sacred version 0.7.4. It seems that that version is not compatible with python 3.8, which added the sort_dicts argument. Sacred might have fixed the issue in their newer versions but their README doesn't list python 3.7 as of version 0.8.1. Can you try with Python 3.7?

jongwook avatar Oct 22 '20 04:10 jongwook