Skip to content

Reshape batch data in data_util #3

@jenchen13

Description

@jenchen13

After quantizing and converting midi files to npy using generate_audio.ipynb, I try to start training but data_utils cannot reshape my data into the appropriate shape for training. I believe that data_util.pad() is trying to reshape the data into a much larger dimension than possible. How do I fix this issue?

File ".StyleNet/data_util.py", line 43, in batch
input_batch, output_batch, seq_len = self.pad(input_batch, output_batch)
File ".StyleNet/data_util.py", line 96, in pad
sequence_X = np.reshape(sequence_X, [int(current_batch*mini_batches), int(max_lens), self.input_size])
ValueError: cannot reshape array of size 43400 into shape (217,200,176)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions