ValueError: x and y can be no greater than 2D, but have shapes (144,) and (144, 500, 144)

A couple of questions. Exactly what dd you change and where? What line is generating the error message you pasted?