davidADSP / GDL_code

The official code repository for examples in the O'Reilly book 'Generative Deep Learning'

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error : def load_music() in utils/loaders.py

t04925yy opened this issue · comments

def load_music(data_name, filename, n_bars, n_steps_per_bar):
    file = os.path.join("./data", data_name, filename)

    with np.load(file, encoding='bytes', allow_pickle=True) as f:       #Fix this line.
        data = f['train']

You have to add "allow_pickle=True" to use this function.